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

BAPI to create Foreign Trade: data (EIKP/EIPO)

atif_bhatti
Participant
0 Likes
3,869

Hi,

I am working with a spec where I have to create(not update) Foreign trade data (EIPO/EIKP) while we create Delivery using tcode VL10D. Normally, this is done once the user adds the information under foreign trade tab and hit save button that will create an entry in EIKP and EIPO Tables. I need a BAPI or any method that gives the functionality to create Foreign trade data under delivery.

I have found FM EXPIMP_POSTING but this FM requires EXNUM so this can be used to update the foreign trade data but can't create. so I believe there is another FM that generates the EXNUM for EIKP table.

thanks

1 ACCEPTED SOLUTION
Read only

atif_bhatti
Participant
0 Likes
2,067

I have found the solution.

the following BADI triggered once the PO is entered in MIGO

  • method IF_EX_MB_MIGO_ITEM_BADI~ITEM_MODIFY.

Build error message and export it in memory.

The following BADI triggered on SAVE, post, check events.

  • method IF_EX_MB_MIGO_BADI~CHECK_ITEM.

Pass error/information message to table et_bapiret2.

That combination will solve the problem.

1 REPLY 1
Read only

atif_bhatti
Participant
0 Likes
2,068

I have found the solution.

the following BADI triggered once the PO is entered in MIGO

  • method IF_EX_MB_MIGO_ITEM_BADI~ITEM_MODIFY.

Build error message and export it in memory.

The following BADI triggered on SAVE, post, check events.

  • method IF_EX_MB_MIGO_BADI~CHECK_ITEM.

Pass error/information message to table et_bapiret2.

That combination will solve the problem.