cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice posting throught IDOC

Former Member
0 Kudos

Invoice posting is done from SRM to R/3 using IDOC. My requirement is to update the bseg-zlsch for the invoice posted based on segment in IDOC.

Please suggest how to acheive this.

Regards,

RaajaKumar V.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved by own.

Created an enhancement in "POST_DOCUMENT" and updated BSEG-ZLSCH with the required value.

jpfriends079
Active Contributor
0 Kudos

Raaja,

Try and updated fields VBRK-LAND1(Dest. Country) & VBRK-ZLSCH(Pmt Method) to get respective entry in BSEG-ZLSCH.

Thanks, JP

Former Member
0 Kudos

Actually bseg-zlsch field should be populated for the invoice posted in R/3 through IDOC. Is there any user exit or BADI to perform that action?

jpfriends079
Active Contributor
0 Kudos

Generally, a preferred Payment Method is maintain in Sales Order - Header Data - Accounting Tab in the sales order. Same flows in billing doc and subsequenlty, same flows into the respective accounting doc.

I'm not sure though. As you are interest in userexit or BADI to push your desired entiries in accounting, you can refer following discussion for further understanding:

- update zlspr and zlsch in ABAP program

Thanks, JP