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: 

FM or BAPI to change accounting document

0 Kudos

Hi,

I need to find a function module or BAPI which I can use to change the payment method on an accounting document line item (BSEG-ZLSCH). I have searched Google and these forums and have tried using FI_DOCUMENT_CHANGE but I got an error saying it couldn't find the document to change, I don't think I gave it enough information but I'm not sure what else I could pass to it. I've also looked at BAPI_DOCUMENT_CHANGE2 but couldn't work out how to use it.

So, could anyone tell me what I need to pass to FI_DOCUMENT_CHANGE apart from:

I_AWTYP = BKPF

I_AWKEY = accounting doc number

I_AWORG = company code

I_KUNNR = customer number

I_BUZEI = acc doc item no

T_ACCCHG-FDNAME = ZLSCH

T_ACCCHG-NEWVAL = C

Or tell me another FM or BAPI to use?

I want to avoid doing a recording if possible.

Thanks,

Gill

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check This Forum : Link: [;

Thanks,

Pradeep.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Check This Forum : Link: [;

Thanks,

Pradeep.

0 Kudos

Thank you so much.

I solved this by using FM FI_ITEMS_MASS_CHANGE.