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

BSEG-PERNR on BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
1,449

Hello Experts,

I am creating an upload program to post Invoice using BAPI_ACC_DOCUMENT_POST. The file which the Upload Program process has a field for "Personal Number (BSEG-PERNR). However the BAPI_ACC_DOCUMENT_POST does not have the field BSEG-PERNR in any of it's structures. Can anybody please let me know how can I populate this field?

I greatly appreciate your help.

Thanks.

Do I have to use 'Extension' for this? Has anybody already implemented something like this? Please let me know.

Thanks.

Edited by: dev a on Apr 26, 2010 11:08 AM

Hello Experts,

I am creating an upload program to post Invoice using BAPI_ACC_DOCUMENT_POST. The file which the Upload Program process has a field for "Personal Number (BSEG-PERNR). However the BAPI_ACC_DOCUMENT_POST does not have the field BSEG-PERNR in any of it's structures. Can anybody please let me know how can I populate this field?

I greatly appreciate your help.

Thanks.

Do I have to use 'Extension' for this? Has anybody already implemented something like this? Please let me know.

Thanks.

Edited by: dev a on Apr 26, 2010 11:08 AM

3 REPLIES 3
Read only

Former Member
0 Likes
907
Read only

Former Member
0 Likes
907

Use extension1 structure for your requirement.

Eg.

clear wa_extension.
concatenate wa_acc_item-item_no wa_acc_item-<pernr> into wa_extension-field1.
append wa_extension to it_extension.

Implement the BTE "RWBAPI01" (Which uses the function module :SAMPLE_INTERFACE_RWBAPI01) , to read the extension1 data and update in the structure ACCIT-PERNR. Copy the function module mentioned above, do the coding as per your requirement and assign this function module to the BTE.

Regards

Vinod

Read only

Former Member
0 Likes
907

Hi,

u can copy the standard bapi as a custom (Z****), then u can add the structure with that field and do the necessary code using input parameters.

Thanks