2006 Jan 06 9:13 AM
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.
2006 Jan 06 9:16 AM
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
2006 Jan 06 9:20 AM
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.
2006 Jan 06 9:22 AM
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
2006 Jan 06 10:07 AM
Hi,
Is there any difference on Im in debug mode and not?
Thanks!!!
2006 Jan 06 10:11 AM
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
2006 Jan 06 10:14 AM
2006 Jan 06 9:25 AM
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.
2006 Jan 06 9:26 AM
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
2006 Jan 06 9:30 AM
2006 Jan 06 10:00 AM
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.
2006 Jan 06 10:57 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |