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

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

Former Member
0 Likes
5,525

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,030

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,031

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

Read only

Former Member
0 Likes
3,030

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

Thanks,

Kalyan.

Read only

0 Likes
3,030

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.

Read only

0 Likes
3,030

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