Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Screen Painter

Former Member
0 Likes
996

Hi,

My requirement was to add extra table fields to the Operation Overview of standard transction CA02(Change).I added those fields using table overview .But now when i see those fields in CA03 (Display) transaction,i get those newly added field in the change mode.I want these fields in display mode like other fields in CA03 Transaction.

4 REPLIES 4
Read only

Former Member
0 Likes
846

hi

You can try with the code

in BPO.

Loop at screen .

if screen-name = 'fieldname'.

screen-input = 0.

endif.

endloop.

Read only

0 Likes
846

Put condition if sy-tcode = ca02 then loop at screen and set input 1 and when sy-tcode = ca03 then set input 0. This will solve

Read only

venkat_o
Active Contributor
0 Likes
846

Hi, <li>Use meaningful subject. <li>Try this way.


IF sy-tcode = 'CA02'.
  LOOP AT SCREEN.
    IF screen-name EQ 'ITAB-MATNR'.
      screen-input = '1'.
      MODIFY SCREEN.
      CLEAR screen. "Clearing screen header.
    ENDIF.
  ENDLOOP.
 elseif sy-tcode = 'CA03'.
  LOOP AT SCREEN.
    IF screen-name EQ 'ITAB-MATNR'.
      screen-input = '0'.
      MODIFY SCREEN.
      CLEAR screen. "Clearing screen header.
    ENDIF.
  ENDLOOP.    
ENDIF.
Thanks Venkat.O

Read only

Former Member
0 Likes
846

For this problem SAP has recommended to implement Note 139902.This note has some manual steps..like

1. Include the fields in the table control by using the Screen Painter: Select screen 1400 with Transaction SE51 in program SAPLCPDI. In the layout display, position the cursor on the table control of the operation overview. Allow the Tablecontrol elements to be displayed.

A list is displayed which looks more or less like this:

Column Split table column Heading for the table column

36 PLPOD-AENAM *PLPOD-AENAM

37 PLPOD-VPLNR *PLPOD-VPLNR

38 PLPOD-VPLAL *PLPOD-VPLAL

39 PLPOD-USR00 *PLPOD-USR00 <==== new fields

40 PLPOD-USR01 *PLPOD-USR01 <==== new fields

You can include the user-defined fields you use at the end of the list.

The included fields must be provided with attributes. Press 'Attributes'.

It is important that you complete the fields correctly for the modification groups:

***Field 1 Field 2 Field 3 Field 4

Options (1) (2) I USR

(1) Number the columns of the table control with this field sequentially. The value with which you continue the numbering results itself from looking at the value in the attributes for the last already available field.

(2) Depending on the user field here, you must enter:

User-defined field Value

PLPOD-USR00 U0

PLPOD-USR01 U1

PLPOD-USR10 U10

...

Please clarify me underline part....