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 does not return 0

Former Member
0 Likes
874

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

4 REPLIES 4
Read only

andreas_mann3
Active Contributor
0 Likes
718

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

Read only

Former Member
0 Likes
718

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.

Read only

0 Likes
718

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.

Read only

0 Likes
718

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