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

FB01 with multiple lin items

Former Member
0 Likes
991

Hello,

i have written code for FB01 posting with call transaction.

I am retrieving req data from BKPF and BSEG tables and posting the line items wiht reversal of posting key.

My issue is - Each line item generating one document number like wise for 154 line items my program creating a54 documnet numbers. But i need it with single document number with all the line items with reversal of posting key.

please help.

thanks

Hello,

i have written code for FB01 posting with call transaction.

I am retrieving req data from BKPF and BSEG tables and posting the line items wiht reversal of posting key.

My issue is - Each line item generating one document number like wise for 154 line items my program creating a54 documnet numbers. But i need it with single document number with all the line items with reversal of posting key.

please help.

thanks

3 REPLIES 3
Read only

Former Member
0 Likes
710

Moderator message - Welcome to SCN. Instead of creating a new document, why not just reverse the existing one(s). Rob

Read only

Former Member
0 Likes
710

Hi,

refer one field as END OF FiILE, populate value for the same.

When you have value for this EOF post the document.

Thanks

Vinod

Read only

Former Member
0 Likes
710

You can also use Function Module CALL_FB08 for reversal.