on 05-12-2006 7:07 AM
Hello experts,
I need to show in the selection-screen the dealer code and description in display only mode. How can I do that? for example(Assume below is my selection-screen):
Dealer: 'Dealer Code' 'Dealer Description'
Consignment SO : select-options...
SO Creation date : select-options...
Again, thank you guys and have a nice day!
Hi,
Instead of IF screen-group1 = 'id1'.
it should be IF screen-group1 = 'ID1'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS : p_fname1 LIKE rlgrap-filename OBLIGATORY
MODIF ID gr2,
p_app LIKE rlgrap-filename OBLIGATORY
MODIF ID gr3.
SELECTION-SCREEN : END OF BLOCK blk1.
SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETERS : p_fore RADIOBUTTON GROUP rad1 USER-COMMAND pc
DEFAULT 'X' ,
p_back RADIOBUTTON GROUP rad1 .
PARAMETERS : p_fname2 LIKE rlgrap-filename OBLIGATORY
MODIF ID gr2,
p_fname3 LIKE rlgrap-filename OBLIGATORY
MODIF ID gr2,
p_app1 LIKE rlgrap-filename OBLIGATORY
MODIF ID gr3,
p_app2 LIKE rlgrap-filename OBLIGATORY
MODIF ID gr3,
p_app3 LIKE rlgrap-filename OBLIGATORY
MODIF ID gr3.
SELECTION-SCREEN : END OF BLOCK blk2.
AT SELECTION-SCREEN OUTPUT.
IF p_fore EQ c_x.
w_sscrfields_ucomm1 = c_rg1.
ELSE.
w_sscrfields_ucomm1 = space.
ENDIF.
LOOP AT SCREEN.
IF w_sscrfields_ucomm1 EQ space.
IF screen-group1 = c_gr2.
screen-active = c_zero.
ENDIF.
ELSE.
IF screen-group1 = c_gr3.
screen-active = c_zero.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use Event AT SELECTION-SCREEN OUTPUT.
Loop at Screen.
if screen-name eq 'Field name of description'.
screen-input = 0.
modify screen.
endif.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the initialization event.
Attach a MODIF ID for the Description screen.
loop at screen.
if screen-group = 'DESC'.
screep-input = 0.
endif.
endloop.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi viraylab,
If you will see the table screen there are so many attributes one of them are input and output, this table used for changing the attributes of screen elements.
If you want to make a field in display mode i.e. output mode then you have to code like this
loop at screen.
screen-name = matnr.
screen-input = 0.
screen-output = 1.
modify screen.
endloop.
if you have two fields in one group
loop at screen.
screen-group1 = DESC. (this is your group name)
screen-input = 0.
screen-output = 1.
modify screen.
endloop.
it will disable all the fields in this group
Regards
Sumit Bhutnai
<b>Ps reward points if helpful</b>
Hi Viray,
Check this code...
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: r1 RADIOBUTTON GROUP rad1 MODIF ID sc1 USER-COMMAND cli DEFAULT 'X',
r2 RADIOBUTTON GROUP rad1 MODIF ID sc1,
r3 RADIOBUTTON GROUP rad1 MODIF ID sc2,
r4 RADIOBUTTON GROUP rad1 MODIF ID sc2.
SKIP 1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECT-OPTIONS: s_ponum FOR ekpo-ebeln MODIF ID sc3.
SELECT-OPTIONS: s_date FOR sy-datum NO INTERVALS NO-
EXTENSION MODIF ID sc5.
SELECT-OPTIONS: s_prodno FOR afpo-aufnr MODIF ID sc4.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
IF r3 = 'X' OR r4 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'SC3' .
screen-input = '0'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'SC4'.
screen-output = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF r1 = 'X' .
LOOP AT SCREEN.
IF screen-group1 = 'SC4'.
screen-input = '0'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'SC3'.
screen-output = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF r2 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'SC4'.
screen-input = '0'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'SC3'.
screen-output = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Hope this helps..
Regards,
Simha.
<b>Reward Some points if it is helpful...</b>
Hi Viraylab,
Try with this piece of code,
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (20) TEXT-001 FOR FIELD DEALER.
PARAMETERS: DEALER(10) TYPE C DEFAULT 'DUMMYDEALER',
DLRDESC(20) TYPE C DEFAULT 'DUMMYDEALERCODE'.
SELECTION-SCREEN end OF LINE.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'DEALER' OR SCREEN-NAME = 'DLRDESC'.
SCREEN-INPUT = 'O'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
In place of dummy variables 'DEALER' And 'DLRDESC' put your variables.
Hope it may be useful to u.
Reward point if useful.If any doubts please post ur query.
Thanks,
Mayank
Hi Ravikumar,
Here is what I did:
----
Selection screen
----
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
parameter: p_dcode like zsoemailid-kunnr modif id id1.
SELECT-OPTIONS: s_sorder FOR vbap-vbeln modif id id2,
so_date for vbap-erdat modif id id2.
SELECTION-SCREEN END OF BLOCK b1.
----
At selection screen output
----
at selection-screen output.
loop at screen.
if screen-group1 = 'id1'.
screen-input = 0.
screen-output = 1.
modify screen.
else.
screen-input = 1.
endif.
endloop.
Unfortunately, It still doesnt work.
----
Selection screen
----
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_dcode LIKE vbak-kunnr MODIF ID ID1,
s_sorder LIKE vbak-vbeln MODIF ID ID2,
so_date LIKE vbap-erdat MODIF ID ID2.
SELECTION-SCREEN END OF BLOCK b1.
----
At selection screen output
----
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'ID1'.
screen-input = 0.
MODIFY SCREEN.
ELSE.
screen-input = 1.
ENDIF.
ENDLOOP.
Convert the modif ID into CAPITAL LETTER And use in same case in the logical condition,while check in the loop of screen table.
It ll work.
Let us know if the problem persists.
Thanks,
Mayank.
hi viraylab,
You can do this by making it display mode like below.
loop at screen.
if screen-name = (your field name).
screen-input = 0.
screen-output = 1.
modify screen.
endloop.
Regards
Sumit Bhutani
<b>Ps reward points if helpful</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.