Application Development 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: 

TO SET MULTIPLE RECORDS IN A SELECT-OPTION FIELD FROM AN INTERNAL TABLE ?

Former Member
0 Kudos

Hi,

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi!

I can imagine it somehow like this:

RANGES: ra_matnr FOR mara-matnr.

...

REFRESH: ra_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.

APPEND ra_matnr.

ENDLOOP.

IF NOT ra_matnr[] IS INITIAL.

SUBMIT RBDSEMAT

WITH matsel IN ra_matnr

AND RETURN.

ENDIF.

Regards

Tamá

1 REPLY 1

Former Member
0 Kudos

Hi!

I can imagine it somehow like this:

RANGES: ra_matnr FOR mara-matnr.

...

REFRESH: ra_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.

APPEND ra_matnr.

ENDLOOP.

IF NOT ra_matnr[] IS INITIAL.

SUBMIT RBDSEMAT

WITH matsel IN ra_matnr

AND RETURN.

ENDIF.

Regards

Tamá