Application Development 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: 

Automation of J1IS .

vij_kot
Explorer
0 Kudos

Dear All,

I am doing BDC for J1IS for automation.

after executing BDC, message table is not showing

the document number.But the document is posted sucessfully

and database table is updated and we are retreiving the doc number

from database table and displaying it .

Is it the correct way to capture from the data base table rather

than capturing from the message table ?

Also we are unable to capture error message.

Thanks and Regards

Vijay

1 REPLY 1

Former Member
0 Kudos

Hi,

How do you run the BDC? Is it using SUBMIT or CALL TRANSACTION? Because using CALL TRANSACTION, you can get the messages.

Check below sample from ABAP Keyword Documentation (F1).


DATA: BDCDATA TYPE TABLE OF BDCDATA.
DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
DATA: PROGRAM LIKE SY-REPID,
           WA_BDCDATA TYPE BDCDATA. 

WA_BDCDATA-PROGRAM  = 'SAPMS38M'. 
WA_BDCDATA-DYNPRO   = '0100'. 
WA_BDCDATA-DYNBEGIN = 'X'. 
APPEND WA_BDCDATA TO BDCDATA. 

CLEAR WA_BDCDATA. 
WA_BDCDATA-FNAM     = 'RS38M-PROGRAMM'. 
WA_BDCDATA-FVAL     = PROGRAM. 
APPEND WA_BDCDATA TO BDCDATA. 
... 
CALL TRANSACTION 'SE38'  USING BDCDATA  MODE 'N' 
                         MESSAGES INTO ITAB.

Regards,

Teddy Kurniawan