‎2009 Jun 01 11:46 AM
Hi Experts,
i got a requirement to add 2 fields in a selection screen in single line.
just like
material no -
material group -
i have used like below
Selection screen begin of block...........
selection screen begin of line .
parameters.matnr type mara-matnr,
matkl type matkl,
selection screen end of line.
selection screen end of block.
when i execute my program .it is not showing descriptions.
i have used screen screen comment ............
but it is giving error.
please give me some idea
Thanks
Sai
‎2009 Jun 01 11:52 AM
Selection-screen begin of block A1.
selection-screen begin of line .
Selection-Screen Comment 1(10) TEXT-T01.
parameters:matnr type mara-matnr.
Selection-Screen Comment 45(15) TEXT-T02.
parameters : matkl type matkl.
selection-screen end of line.
selection-screen end of block A1.
‎2009 Jun 01 11:47 AM
sorry .
it should be
Mareial ...... material group..... like this
Thanks
Sai
‎2009 Jun 01 11:48 AM
just see slection screen statament through abapdocu transection.it wiil help you.
‎2009 Jun 01 11:49 AM
Hi
selection screen begin of line .
selection-screren Comment 1(10) text-001.
parameters.matnr type mara-matnr,
selection-screren Comment 30(10) text-002.
matkl type matkl,
selection screen end of line.
Edited by: kiran vempati on Jun 1, 2009 4:23 PM
‎2009 Jun 01 11:50 AM
hi
check out this http://www.guidancetech.com/people/holland/sap/abap/zzaut004.htm
‎2009 Jun 01 11:51 AM
Dear
This is not possible using the selection screen statement .
you design your own screen se80 and use that .
Rgds aryan
‎2009 Jun 01 11:52 AM
Selection-screen begin of block A1.
selection-screen begin of line .
Selection-Screen Comment 1(10) TEXT-T01.
parameters:matnr type mara-matnr.
Selection-Screen Comment 45(15) TEXT-T02.
parameters : matkl type matkl.
selection-screen end of line.
selection-screen end of block A1.
‎2009 Jun 01 11:53 AM
Try this...
selection-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
selection-SCREEN BEGIN OF LINE.
parameters: matnr type mara-matnr,
matkl type matkl.
SELECTION-SCREEN END OF LINE.
selection-SCREEN END OF BLOCK b1.
‎2009 Jun 01 11:56 AM
Hi Sai,
I think its Possible only in Module Pool Programming.
‎2009 Jun 01 11:58 AM
Hi,
Use the below code.
Selection-screen begin of block blk1.
selection-screen begin of line.
selection-screen comment 1(15) v_text1.
parameters: matnr type mara-matnr.
selection-screen comment 40(15) v_text2.
parameters: matkl type matkl.
selection-screen end of line.
selection-screen end of block blk1.
initialization.
v_text1 = 'Material'.
v_text2 = 'Material Group'.
Regards,
Kumar Bandanadham
‎2009 Jun 01 11:59 AM
yes.........
what GTREN said is right...
just dbl click on " text1 " and " text2 " and write ur field lable
‎2009 Jun 01 12:02 PM
Hi guys,
i already tried with same code .but it is giving me error.
thanks
Sai
‎2009 Jun 01 12:05 PM
hi guys,
Thanks u very much.
my problem got solved with chanegs to below code.
Selection-screen begin of block blk1.
selection-screen begin of line.
selection-screen comment 1(15) v_text1.
parameters: matnr type mara-matnr.
selection-screen comment 60(15) v_text2.
parameters: matkl type matkl.
selection-screen end of line.
selection-screen end of block blk1.
Thanks
Sai