cancel
Showing results for 
Search instead for 
Did you mean: 

Update customs documents from external tables

Former Member
0 Kudos

Hello,

We are facing following issue : the requirement is to be able to update the customs documents automatically with some data after the incompletion check has been executed. This update would need to trigger external custom tables and transfer for instance document numbers to the customs document evidence tab on item level . We thought we could use the BADI for default data for this, but this BADI does not allow to do updates , only at initial creation of customs document.

Does someone know if there is another BADI/ FM available which we can use to updat the customs document with external data entries, after the incompletion check has ran.

I realize this is a not straight forward process .

thanks in advance for a quick reply

Regds

Frank

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member215181
Active Contributor
0 Kudos

Hi Frank,

Your requirement is not clear to me, even after reading your exchange with Dhillipan.

Could you give an example of what sort of data is needed, and why?  And the relationship with the Incompletion Check is also not clear to me - why does the additional data need to be added AFTER the check?

Thanks for providing more information,

Dave

Former Member
0 Kudos

Hi Dave,

Some more explanation.

We are implementing a very specific IPR process ( IPR Prior to Export) for a dairy company . This process can not be supported by standard SAP IPR as designed, so we are developing a full custom made solution.

Master data for this process is maintained in external tables ( such as Finished products, Authorizations, default document data, etc...) and called via coding , using BADI for defaulting data in customs document.  The new development should trigger the correct license numbers in the document evidence tab in the customs document for customs reporting purposes.

As the efficiency of this process depends totally on maintenance of correct master data in external tables by the user, we could have situation where we have to split up the exported weights for the components among different active IPR authorizations , based on the allowed max qty. If the user has forgot to maintain a 2nd active licence in the system, the incompleteness check will give an error message saying that the license has unsufficient qty to perform the depreciation.  In that case, the development should be able to update the customs document with additional license numbers in the document evidence tab , in fact the development should run again through the defaulting data logic to update with additional data. Based on our investigation, it seems that the BADI for defaulting data is no more called, once the incompletion check has ran.                              Thanks for your feedback
Regds

Frank

former_member215181
Active Contributor
0 Kudos

Hi Frank,

Sorry for the late reply...

BAdI /SAPSLL/CUS_ECC, Method IDOC_VIEW_MODIFY, runs after the Incompletion Check, and allows you to enhance or amend the data structure that is used to fill the outbound iDoc.  Perhaps that will help you?

Regards,

Dave

Former Member
0 Kudos

Hi Frank,

At what point, should these documents be updated. Do you need this to updated when user opens the document in change mode or in a periodic schedule.

Regards

Dhilipan

Former Member
0 Kudos

Hi Dhilipan,

Appreciate your quick reply.  The document will need to be updated when the user opens the document in change mode.

So in fact, at that moment external data will need to be pulled in to update the Document Evidence tab on item level in the customs document with some additional data , in this case document numbers for document evidence purposes.

We can not wait till a periodic update has been ran, because the document must be sent to customs via EDI on a transactional basis.

Thanks for your support

Regds

Frank