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

Problem with BAPI bapi_acc_document_post

Former Member
0 Likes
781

Hi,

I have to modify a development which uses the BAPI bapi_acc_document_post to create documents, and the thing is that they want to add the field "Planning Level" (BSEG-FDLEV) but i cant find it in any of the structures that this BAPI uses.

Any idea of how to do this?

Slds,

Roberto

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
571

Hi,

You have to use parameter 'EXTENSION2' , and you can fill the structure in the BADI ACC_DOCUMENT. If you look at the sample code using the menu path Goto> Sample code you would get some idea on how to do it basically you ahve to pass the structure that you wnat to fill in the structure field of parameter: EXTENSION2 and then map it to the value in the BAPI.

Parameter C_ACCIT would have the field that you want to fill.

Regards,

Himanshu

2 REPLIES 2
Read only

Former Member
0 Likes
572

Hi,

You have to use parameter 'EXTENSION2' , and you can fill the structure in the BADI ACC_DOCUMENT. If you look at the sample code using the menu path Goto> Sample code you would get some idea on how to do it basically you ahve to pass the structure that you wnat to fill in the structure field of parameter: EXTENSION2 and then map it to the value in the BAPI.

Parameter C_ACCIT would have the field that you want to fill.

Regards,

Himanshu

Read only

Former Member
0 Likes
571

Hi

I think this field is not availble in the BAPI.

But to post the document u can use the standard prorgam RFBIBL00, in this program the field

FDLEV is available.

Regards,

Raghu.