cancel
Showing results for 
Search instead for 
Did you mean: 

showing dealer code and description in selection-screen(display only)

aris_hidalgo
Contributor
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Instead of IF screen-group1 = 'id1'.

it should be IF screen-group1 = 'ID1'.

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Use Event AT SELECTION-SCREEN OUTPUT.

Loop at Screen.

if screen-name eq 'Field name of description'.

screen-input = 0.

modify screen.

endif.

endloop.

Former Member
0 Kudos

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

aris_hidalgo
Contributor
0 Kudos

Hi guys,

If its not mucyh can you give me some brief example on how to do that. Thanks a lot guys!

sbhutani1
Contributor
0 Kudos

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>

Former Member
0 Kudos

PARAMETERS: TEST1(10) MODIF ID SC1,

TEST2(10) MODIF ID SC2,

TEST3(10) MODIF ID SC1,

TEST4(10) MODIF ID SC2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'SC1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

ENDLOOP.

Simha_
Employee
Employee
0 Kudos

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>

aris_hidalgo
Contributor
0 Kudos

Hello guys,

Again, thank you for all your help. I want to do is that in the selection screen. The dealer code would be be displayed as well as its description.

example:

Dealer : dl0001 'this is dealer 1'

SO :

Date:

both SO and Date are select options.Thanks!

Former Member
0 Kudos

Hi,

Once the code I have given disables the Dealer desc,

AT SELECTION SCREEN.

SELECT to get the dealer description and populate the desc field.

That should be good enough.

Regards,

Ravi

Former Member
0 Kudos

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

aris_hidalgo
Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi viraylab,

1. Give in CAPITAL

(then it will work , i just tried it)

2.

if screen-group1 = '<b>ID1</b>'.

regards,

amit m.

Former Member
0 Kudos

----


  • 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.

sbhutani1
Contributor
0 Kudos

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>