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 in posting a accounting document using BAPI BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
427

Hi All,

I 'm able to post a document using BAPI ' BAPI_ACC_DOCUMENT_POST ' but the problem i face is the header text is not getting updated for the document that is getting posted. Even though i'm populating the header text in the parameters i'm passing to the BAPI.

Any pointers to this would be highly appreciated.

Regards,

Chaitanya

1 REPLY 1
Read only

former_member182371
Active Contributor
0 Likes
278

Hi,

put a break in subroutine FORM fill_acchd

and execute the bapi.

Here you have:


  CLEAR gs_acchd.
  MOVE-CORRESPONDING gs_aw TO gs_acchd.

  gs_acchd-usnam = gs_bapi_acchd-username.
  gs_acchd-awsys = gs_bapi_acchd-obj_sys.
  gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
  gs_acchd-glvor = gs_bapi_acchd-bus_act.
  gs_acchd-tcode = sy-tcode.
  gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.

Check if there is something wrong there.

Best regards