cancel
Showing results for 
Search instead for 
Did you mean: 

Are there a BADi(s) to update documents in ERP from GTS?

dean_hinson2
Active Contributor
0 Kudos

Hello,

We have a requirement to update the feeder system document with data from GTS. Mostly, it is in regards to the Goods Receipt/Invoice. We are being asked to update this document(s) with the Entry Number assigned by Customs.

Are there BADi(s) for this?

Accepted Solutions (1)

Accepted Solutions (1)

former_member215181
Active Contributor
0 Kudos

Hi Dean,

Correct answer:

No .

Helpful answer:

Take a look at SAP Note 555746 regarding obtaining the License data for printing on SD Export documents.  The mentioned Function Module (and corresponding RFC module in GTS) has suitable code to establish the approach for your own development to obtain the Customs Entry Number for an Import Declaration.

Regards,

Dave

dean_hinson2
Active Contributor
0 Kudos

Thanks Dave.... There are times when I think SAP did a good job on GTS, and then there are times like this....

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Dean,

Check BadI : /SAPSLL/ECC_INBOUND, method POST_INBOUND_PROCESS_CUPED or POST_INBOUND_PROCESS_CUHD.

What you can do, or maybe combine it with the note mentioned by Dave, is to use the BadI for GTS->ECC call. It is triggered immediately after inbound message processing, so it would fit the situation where you recieve the MRN number from customs.

In this Badi then you can choose what to do.. either call an ECC bapi to update your ECC document or send an Idoc to ECC system with the relevant information that will then be picked up in ECC with a bg job, there are more options..

Cheers,

Branislav