TO SET MULTIPLE RECORDS IN A SELECT-OPTION FIELD FROM AN INTERNAL TABLE ?
i have problem when i want to pass an Inetrnal Table Data with selected Articles of one Program to Selection-Screen Field of another Program.i will use Submit statement to call that program which will create IDOCS for the data in the above Selected Article Internal Table.
i.e when i execute the calling program it will displays Articles for the selection criteria then i will select specific Articles then click on user defined Execute button IDoc will be created for those selected Articles by calling RBDSEMAT ( BD10 Transaction ) and send to the recipient system.For this to do i need to send the selected Articles Data as input to BD10 Transaction so that it will generate IDocs.
Please can anyone tell me how to do this.
Tamas Nyisztor replied
I can imagine it somehow like this:
RANGES: ra_matnr FOR mara-matnr.
MOVE 'I' TO ra_mara-sign.
MOVE 'EQ' TO ra_mara-option.
LOOP AT gt_mara INTO gs_mara.
MOVE gs_mara-matnr TO ra_matnr-low.
IF NOT ra_matnr IS INITIAL.
WITH matsel IN ra_matnr