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: 

Need to update XREF2 and XREF3 fields while creating Invoice using BAPI_INCOMINGINVOICE_CREATE

Former Member
0 Kudos

Hi Friends,

We are trying to create a Invoice using the FM BAPI_INCOMINGINVOICE_CREATE.

Now we need to update the fields XREF2 and XREF3 of BSEG which is not present in the BAPI parameters.

The client will pass the values in extension table BAPIPAREX. Now we are trying to update the XREF2 and XREF3 using a FI Substitution,  but I am not able to read the Extension Table value in the Substitution.

TA

Regards,

Gaurav

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Read 2149315 - BAPI_INCOMINGINVOICE_CREATE and customer fields

Hint: And then use another BAPI or some tricks as exporting information to memory so substitution user-exit will be able to access it?

Regards,

Raymond

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

Read 2149315 - BAPI_INCOMINGINVOICE_CREATE and customer fields

Hint: And then use another BAPI or some tricks as exporting information to memory so substitution user-exit will be able to access it?

Regards,

Raymond

Former Member
0 Kudos

Please try this FM - EXIT_SAPLV60B_002 for update XREF1 AND XREF2.

Thanks,

Kalyan.

0 Kudos

Hi Kalyan,

Thanks for the reply but this FM is not getting called when trying to post the invoice using BAPI.

I am going to try what Raymond suggested.

Any other pointers would be helpful.

Thanks.

0 Kudos

Hi Gaurav,

Please check BADI ACC_DOCUMENT and method CHANGE.

The method has the extension parameter and parameter C_ACCHD have fields XREF2 and XREF3. Please check if it can be used.

Thanks

-Learner