2005 Feb 22 9:28 AM
hey
i wrote call transaction program.
Perform BDC_GROUP.(where i wrote Dynpro scr and fields)
Call transaction 'FB01' using bdcdata
mode 'N'
Update 'S'.
Write sy-subrc returns 1001 value.
why is it?
The same BDC_Group was called by BInput program it worked fine.
ambichan
hey
i wrote call transaction program.
Perform BDC_GROUP.(where i wrote Dynpro scr and fields)
Call transaction 'FB01' using bdcdata
mode 'N'
Update 'S'.
Write sy-subrc returns 1001 value.
why is it?
The same BDC_Group was called by BInput program it worked fine.
ambichan
2005 Feb 22 9:37 AM
Hi,
so pls. analyze the error message with...
DATA: itab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
CALL TRANSACTION tcode USING bdcdata MODE mod MESSAGES INTO itab.
*get text to bdc-message
if sy-subrc <> 0.
...
CALL FUNCTION 'TB_MESSAGE_BUILD_TEXT'
...
endif.
try it
Andreas
2005 Feb 22 9:55 AM
Hello Ambichan,
Please check out the following options :
1. Try calling CALL TRANSACTION in mode 'E' and also in mode 'A'. See if you do get any errors.
2. If you don't get any errors in option 1, then see the contents of the message table for the call transaction statement.
3. If you find that Option 1 is okay, and that there are no messages in the message table, then please verify if you have put some breakpoints somewhere in the code of the transaction.
Please get back with your test results (most importantly, the contents of the message table).
Regards,
Anand Mandalika.
2005 Feb 22 7:33 PM
I had a very similar problem and I believe what Anand is saying is very important.
You can;t simply rely on SUBRC alone, it's a combination of check for SUBRC and the messages you received after your BDC or CALL transaction.
2005 Mar 03 11:12 AM
Hi Jonathan and Anand!
Why don't you use the Posting_Interface way to post data? This method is quite simple, it creates a batch input transaction (or a call transaction, as you want) for a document to be posted with FB01 or FBB1.
Use FM posting_interface_start, posting_interface_document and posting_interface_end and look at their documentation (we are lucky, there is something in english!).
Good luck!
Kate
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |