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

Call transaction

Former Member
0 Likes
2,328

Hi,

I used the command below:

Call transaction tcode USING i_bdc_tab MODE 'N' MESSAGES INTO MESSTAB.

and it returned an sy-subrc = 1001. What does it(sy-subrc = 1001) mean?

Hi,

Instead of checking for <b>if sy-subrc = 0 </b>or not

better go for

<b>read table msgcol with key msgty = E'.

If sy-subrc <> 0 .</b>

If it is not error message, anywayz we can proceed.

Regards,

Sailaja.

11 REPLIES 11
Read only

Former Member
0 Likes
1,838

If the MODE addition is omitted, then the processing mode is 'A'.

If a screen is displayed in processing mode 'E' because the system reached the end of the BDC data, the system automatically switches to processing mode 'A'.

If breakpoints are set in a transaction tcod called using the CALL TRANSACTION tcod USING itab variant, these are not actually reached in 'N' mode. <b>The system tries to insert data in the Debugger screen; the call ends with SY-SUBRC = 1001</b> and the message "Batch input data is not available for screen SAPMSSY3 0131" (S 00 344).

Message was edited by: chandrasekhar jagarlamudi

Read only

Former Member
0 Likes
1,838

Hi Joseph,

1. First try with just :

Call transaction tcode

2. If that works fine, then try with :

transaction tcode USING i_bdc_tab

3. If there is error here,

then, the BDC data must be problematic.

4. 1001 - never encountered such sy-subrc,

hence difficult to say the exact error.

regards,

amit m.

Read only

suresh_datti
Active Contributor
0 Likes
1,838

Hi Joseph,

It is a Batch Input error.What Transaction are you using? Change the MODE to 'E' and look for the contents of the error messsage in your MESSTAB. BTW are you in de-bug mode?

Regards,

Suresh Datti

Read only

0 Likes
1,838

Hi,

Is there any difference on Im in debug mode and not?

Thanks!!!

Read only

0 Likes
1,838

Yes, you might get this message in De-bug even if the code is OK and the program runs fine when not in de-bug mode. This is normal and have seen it happen.

Suresh

Read only

0 Likes
1,838

Hi,

Did you checked in debug mode what is happening.

there is no problem at all with the logic developed by you. you can proceed.

check this thread..

thanks

vijay

Message was edited by: Vijay Babu Dudla

Read only

Former Member
0 Likes
1,838

hi,

I have observed the same when i was working with MM01 transaction.

Sy-subrc = 1001 when i got a message of<b> type 'S'</b> which says Material No. is automatically generated". But this is not an error message ( type E).

Regards,

Sailaja.

Read only

Former Member
0 Likes
1,838

Hi Joseph,

There might be some popup screen which is being called in between. Since you have not handled that screen in your recording that transaction is giving return code as '1001'. When you process this in A or E mode that screen gets suppressed so everything goes fine.

Also,m see this link..it might prove handy

<a href="http://www.sapfans.com/forums/viewtopic.php?t=53781&highlight=1001">sy-subrc = 1001</a>

Regards,

Raj

Message was edited by: Rajasekhar Dinavahi

Read only

Former Member
0 Likes
1,838

Hi,

In background some times it will give, but nothing is wrong with your code.

check the below thread

thanks

vijay

Message was edited by: Vijay Babu Dudla

Read only

Former Member
0 Likes
1,838

Hi,

Instead of checking for <b>if sy-subrc = 0 </b>or not

better go for

<b>read table msgcol with key msgty = E'.

If sy-subrc <> 0 .</b>

If it is not error message, anywayz we can proceed.

Regards,

Sailaja.

Read only

Former Member
0 Likes
1,838

Hi

if you get the sy-subrc 1001. it means the call transaction was not successfull and i am sure it the problem with ur ur bdctab it is not populated according to the recording or there must b a problem in the recording itself.

regards,

Lakshmikanth