Application Development 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: 

we are receiving an error like " Enter a transaction type".

0 Kudos

can we able to post asset related transactions like purchase or transfer between plants...? When we are trying to use we are receiving an error like " Enter a transaction type". I am using BAPI "BAPI_ACC_DOCUMENT_POST"

Requirement:-

Is there any SAP NOTE to resolve this issue?

2 REPLIES 2

hsyngvural
Participant
0 Kudos

Hello,

Could you please paste the code snippet of function call.

venkateswaran_k
Active Contributor
0 Kudos

Hi

You must be using the function call as below:

  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
      documentheader = header
    IMPORTING
      obj_key        = docno
    TABLES
      accountgl      = accountgl
      currencyamount = currencyamount
      return         = return.

Make sure, in header - you are passing the parameter document type as below

header-doc_type = 'SA'.     "Pass document type below (your document type)<br>

Please share your code..

Also in accountgl

Structure - BAPIACGL09 fidld - CS_TRANS_T - Pass value 220 to this.

Venkat