Application Development and Automation 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: 
Read only

Submit Command ?

Former Member
0 Likes
1,302

Hi..

I am submitting RBDSEMAT(transaction BD10) in my program with the necessary material number, message type,logical system.

SUBMIT RBDSEMAT WITH MATSEL IN R_MATNR

WITH MESTYP = 'ZGMAT1'

WITH LOGSYS = ' '

AND RETURN.

Now I want to capture all the materials which will not be submitted by this T-Code ie. materials that are not sent properly due to some erors.

What shall I code for that.

Thank you

6 REPLIES 6
Read only

Former Member
0 Likes
975

1. Create a screen variant for BD10 initial transaction and use option USING SELECTION-SET <variant>.

2. Loop the r_matnr and execute SUBMIT comamnd for each material individually.

Regards,

Prasanth

Read only

0 Likes
975

Hi..

Thank You Prasanth.

But I cant capture the error materials when I use mass operation with submit command?

There is no way other than the one provided by you.

Thank You

Read only

0 Likes
975

Hi

I am using

SUBMIT RBDSEMAT WITH SELECTION-TABLE LIT_RSPARAMS

AND RETURN.

inside my Loop -Endloop ie for every material.

I want a scenario such that even if the selection-screen validation fails then also it should continue the processing for the other materials and I will capture that wrong material in my error table.

How can I achieve this?

Thank You

Read only

Former Member
0 Likes
975

Hi,

you can try by copying standard program

and populate error tab and export to ur calling

program.

Regards

Amole

Read only

Former Member
0 Likes
975

Subhash,

Now this has happen in the RBDMSEMAT program, it should populate the error log and there is a statement IF REQUESTED in abap, explore the same.

Reward if helfpul.

Regards

Read only

Former Member
0 Likes
975

Hi,

You can use SUBMIT [job_options]

[AND RETURN].

Using this U can set program in Background mode.

and after determining steps u can come to know if The communication IDOC is send or not.

For E.g Ull get messages like

01.09.2006 06:10:17 Job started

01.09.2006 06:10:17 Step 001 started (program RBDSEMAT, variant &0000000000000, user ID Zzzzz)

01.09.2006 06:10:17 0 master IDocs set up for message type MATMAS

01.09.2006 06:10:17 0 communication IDoc(s) generated for message type MATMAS

01.09.2006 06:10:17 Job finished

using this u can determin if IDOCs are send or not..

Hope it helps

Regards

Atul