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

issue with BAPI_ACC_DOCUMENT_POST

former_member383962
Participant
0 Likes
1,376

Hello Experts,

I tried to post GL using "BAPI_ACC_DOCUMENT_POST" But, i don't know how to fill senderlosys, senderccde, sendDocNo., and Sender FY.

in a below image u can see that the 1st record contains all the details of sender. But in a second record there is no values for a sender details...

i fetched second record using the above BAPI.

Image: BKPF Table

any suggestions please...

Thanks in advance...

3 REPLIES 3
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,125

Did you try using filling the below mentioned fields in header

  • AWTYP (OBJ_TYPE) Reference transaction
    Sender ID
  • AWKEY (OBJ_KEY) Reference key
    Source document number
    The reference key is made up of:
  • AWREF Reference document number (10 digits)
    Source document number
  • AWORG Reference organizational unit (10 digits)
    Number range ID (if required)
  • AWSYS (OBJ_SYS) Logical system
    Logical system of source document
Read only

former_member383962
Participant
0 Likes
1,125

Hello nabheet.madan3 ,

Thanks for your response.

i'm using

Data: DOC_HEADER LIKE BAPIACHE09.

This DOC_HEADER doesn't contains any of the fields as you mentioned above.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,125

I forgot did you try filling the below mentioned with source information what was the result? This is what i got from documentation of header structure please you also go thorught

  • OBJ_TYPE Sender identification
  • OBJ_KEY Reference number of source document
  • OBJ_SYS Logical system of source document