Sei sulla pagina 1di 29

Step 1.

Create data elements

J_1BTAXSI5IN
J_1BTAXSI5OUT
J_1BTAXSI4IN
J_1BTAXSI4OUT
Step 2 Change tables

Table J_1BATL5

Field TAXSIT replace date element J_1BTAXSI5 by J_1BTAXSI5IN


Add new field TAXSITOUT right below the field TAXSIT
Field Data element
TAXSITOUT J_1BTAXSI5OUT

Create foreign key for new field TAXSITOUT:


J_1BATL4A

Field TAXSIT replace date element J_1BTAXSI4 by J_1BTAXSI4IN


Add new field TAXSITOUT right below the field TAXSIT
Field Data element
TAXSITOUT J_1BTAXSI4OUT

Create foreign key for new field TAXSITOUT:


Step 3. Change Views

J_1BATL5V

In the TAB View Fields push the button Table fields, double-click on J_1BATL5, and mark the field:
TAXSITOUT
Move the new entry from the bottom between the lines for the field TAXSIT and DESCRIP.
Maintain behind the field TXT the following new entry:

View Field Table Field P


TXT1 J_1BTAXSITPIST TXT R
J_1BATL4V

In the TAB View Fields push the button Table fields, double-click on J_1BATL4A, and mark the field:
TAXSITOUT
Move the new entry from the bottom between the lines for the field TAXSIT and DESCRIP.
Maintain behind the field TXT the following new entry:

View Field Table Field P


TXT1 J_1BTAXSITCOFT TXT R
Step 4. Regenerate maintenance view

View J_1BATL5V:
Call transaction SE54 for maintenance view J_1BATL5V and select 'Generated Objects' (Radiobutton).
Press 'Create/Change' button. Press 'Change' button (F2) on the popup 'Reason for Change' window
select the option 'New field/sec.table in structure' and ‘Create modules’. Press enter. In the next
popup select 'Normal field' and press enter.
Attention: Select only the described options. Otherwise you can destroy the screens.
View J_1BATL4V:

Call transaction SE54 for maintenance view J_1BATL4V and select 'Generated Objects' (Radiobutton).
Press 'Create/Change' button. Press 'Change' button (F2) on the popup 'Reason for Change' window
select the option 'New field/sec.table in structure' and ‘Create modules’. Press enter. In the next
popup select 'Normal field' and press enter.
Attention: Select only the described options. Otherwise you can destroy the screens.
Step 5. Maintain text symbols

Add text symbols for the program SAPLJ_1BCUSTNEW.


Use transaction SE38. Menu: Go to->Text Elements->Text Symbols

Add text symbols 001-005:

Step 6. Change screens

6.1.Screen SAPLJ_1BCUSTNEW 0009

Click on the tab ‘Attributes’ and maintain the line and columns to maintain on screen as below:
Layout before changes:

1 – mark text of the field J_1BATL5V-DESCRIP ‘Description’ and with right mouse click delete it.
Move the field J_1BATL5V-DESCRIP on position 1 on the screenshot ‘Layout after changes’

2 – delete field J_1BATL5V-TAXSIT. Select Dictionary/Program fields (F6) and insert J_1BATL5V as
table. Select field J_1BATL5V-TAXSIT and put it to the positions 2 on the screenshot ‘Layout after
changes’. Select Dictionary/Program fields (F6) and insert J_1BATL5V as table. Select field
J_1BATL5V-TAXSITOUT and put it to the positions 7 on the screenshot ‘Layout after changes’.

3 – mark text of the field J_1BATL5V-LINE1 and with right mouse click delete it. Do the same for the
fields J_1BATL5V-LINE2; J_1BATL5V-LINE3; J_1BATL5V-LINE4. Move these fields to positions 3 on the
screenshot ‘Layout after changes’. Extend visible length of the fields to 72.

4 - mark text of the field J_1BATL5V-TXT ‘PIS TS Desc.’ and with right mouse click delete it. Move the
field J_1BATL5V-TXT to position 4 on the screenshot ‘Layout after changes’. Select
Dictionary/Program fields (F6) and insert J_1BATL5V as table. Select field J_1BATL5V-TXT1 and put it
to positions 6 on the screenshot ‘Layout after changes’. Mark the text of the field J_1BATL5V-TXT 1
‘PIS TS Desc.’ and with right mouse click delete it. Maintain J_1BATL5V-TXT1 as output field.

5 – delete the box element VIM_FRAME_FIELD. Insert the new box element with name * J_1BATL5V -
LINE1. Ensure that medium text (option 2) is taken over. The changed box should be placed on
position 5 on the screenshot ‘Layout after changes’.
The attributes of the Box element should look like:
Set field J_1BATL5V-TAXLAW as ‘input required’:
Layout after changes:

Click on the tab ‘Element list’


On the Popup click on the button ‘Text’:

Enter the number of a text symbol:

Do the same steps for the screen elements listed below and maintain tooltip texts as follow:
J_1BATL5V-LINE1:

J_1BATL5V-LINE2:
J_1BATL5V-LINE3:

J_1BATL5V-LINE4:
-------------------------------------------------------------------------------------------------------------------------------
ONLY FOR RELEASE 4.6C:
Call transaction SE80 for function group J_1BCUSTNEW. Mark the node PBO modules and with right
mouse click create a new module READ_PIS_TAXSITOUT_TEXT in new include LJ_1BCUSTNEWO01.

Insert source code of the PBO-module READ_PIS_TAXSITOUT_TEXT as below:


*----------------------------------------------------------------------*
***INCLUDE LJ_1BCUSTNEWO01 .
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Module READ_PIS_TAXSITOUT_TEXT OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE read_pis_taxsitout_text OUTPUT.
IF NOT j_1batl5v-taxsitout IS INITIAL.
SELECT SINGLE txt FROM j_1btaxsitpist INTO j_1batl5v-txt1
WHERE langu = sy-langu AND
taxsit = j_1batl5v-taxsitout.
IF sy-subrc NE 0.
CLEAR j_1batl5v-txt1.
ENDIF.
ELSE.
CLEAR j_1batl5v-txt1.
ENDIF.
ENDMODULE. " READ_TAXSITOT_TEXT OUTPUT
-----------------------------------------------------------------------------------
6.2.Screen SAPLJ_1BCUSTNEW 0008

Click on the tab 'Element list'. Click on the subtab 'General attr.' mark and delete via the button
'Delete' (Schift+F2) following screen elements: *J_1BATL5V-LINE1; *J_1BATL5V-
LINE2;*J_1BATL5VLINE3;*
J_1BATL5V-LINE4;*J_1BATL5V-TXT;J_1BATL5V-LINE1;J_1BATL5V-LINE2;J_1BATL5VLINE3;
J_1BATL5V-LINE4;J_1BATL5V-TXT. See below:
Layout of the Screen SAPLJ_1BCUSTNEW 0008:

Select Dictionary/Program fields (F6) and insert J_1BATL5V as table. Select field J_1BATL5VTAXSITOUT
and chose option text small. Put this field between J_1BATL5V-TAXSIT and J_1BATL5VDESCRIP.
See attributes below:
6.3 Screen SAPLJ_1BCUSTNEW 0007

Click on the tab ‘Attributes’ and maintain the line and columns to maintain on screen as below:

Layout before changes:


1 – mark text of the field J_1BATL4V-DESCRIP ‘Description’ and with right mouse click delete it. Move
the field J_1BATL4V-DESCRIP on position 1 on the screenshot ‘Layout after changes’

2 – delete field J_1BATL4V-TAXSIT. Select Dictionary/Program fields (F6) and insert J_1BATL4Vas
table. Select field J_1BATL4V-TAXSIT and put it to the positions 2 on the screenshot ‘Layout after
changes’. Select Dictionary/Program fields (F6) and insert J_1BATL4V as table. Select the field
J_1BATL4V-TAXSIT OUT and put it to the positions 7 on the screenshot ‘Layout after changes’.

3 – mark text of the field J_1BATL4V-LINE1 and with right mouse click delete it. Do the same for the
fields J_1BATL4V-LINE2; J_1BATL4V-LINE3; J_1BATL4V-LINE4. Move these fields to positions 3 on the
screenshot ‘Layout after changes’. Extend visible length of the fields to 72.

4 - mark text of the field J_1BATL4V-TXT ‘COFINS_TS_Desc. ‘ and with right mouse click delete it.
Move the field J_1BATL4V-TXT to position 4 on the screenshot ‘Layout after changes’. Select
Dictionary/Program fields (F6) and insert J_1BATL4V as table. Select the field J_1BATL4V-TXT1 and
put it to positions 6 on the screenshot ‘Layout after changes’. Mark the text of the field J_1BATL4V -
TXT 1 ‘PIS TS Desc.’ and with right mouse click delete it. Maintain J_1BATL4V-TXT1 as output field.

5 – delete the box element VIM_FRAME_FIELD. Insert the new box element with name
*J_1BATL4VLINE1. Ensure that medium text (option 2) is taken over. The changed box should be placed
on position 5 on the screenshot ‘Layout after changes’.
The attributes of the Box element should look like:
Set field J_1BATL4V-TAXLAW as ‘input required’:
Layout after changes

Click on the tab ‘Element list’


On the Popup click on the button ‘Text’:

Enter the number of a text symbol:

Do the same steps for the screen elements listed below and maintain tooltip texts as follow:

J_1BATL4V-LINE1:

J_1BATL4V-LINE2:
J_1BATL4V-LINE3:

J_1BATL4V-LINE4:

---------------------------------------------------------------------------------------------------------------------------
ONLY FOR RELEASE 4.6C:
Call transaction SE80 for function group J_1BCUSTNEW. Mark the node PBO modules and with right
mouse click create a new module READ_COFINS_TAXSITOUT_TEXT in the include
LJ_1BCUSTNEWO01.
Insert source code of the PBO-module READ_COFINS_TAXSITOUT_TEXT as below:
*&---------------------------------------------------------------------*
*& Module READ_COFINS_TAXSITOUT_TEXT OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE read_cofins_taxsitout_text OUTPUT.
IF NOT j_1batl4v-taxsitout IS INITIAL.
SELECT SINGLE txt FROM j_1btaxsitcoft INTO j_1batl4v-txt1
WHERE langu = sy-langu AND
taxsit = j_1batl4v-taxsitout.
IF sy-subrc NE 0.
CLEAR j_1batl4v-txt1.
ENDIF.
ELSE.
CLEAR j_1batl4v-txt1.
ENDIF.
ENDMODULE. " READ_COFINS_TAXSITOUT_TEXT OUTPUT
-------------------------------------------------------------------------------------------------------------------------------------

6.4.Screen SAPLJ_1BCUSTNEW 0006


Click on the tab 'Element list'. Click on the subtab 'General attr.' mark and delete via the button
'Delete' (Schift+F2) following screen elements: * J_1BATL4V-LINE1; * J_1BATL4V-LINE2;*
J_1BATL4VLINE3;*
J_1BATL4V-LINE4;* J_1BATL4V-TXT; J_1BATL4V-LINE1; J_1BATL4V-LINE2; J_1BATL4V-LINE3;
J_1BATL4V-LINE4; J_1BATL4V-TXT. See below:
Layout of the Screen SAPLJ_1BCUSTNEW 0006:

Select Dictionary/Program fields (F6) and insert J_1BATL4V as table. Select the field
J_1BATL4VTAXSITOUT and chose option text short. Put this field between J_1BATL4V-TAXSIT and
J_1BATL4VDESCRIP. See attributes below:

Potrebbero piacerti anche