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: 

BAPI_ACC_DOCUMENT_POST Header details

Former Member
0 Kudos
267

Hi all

Im using BAPI_ACC_DOCUMENT_POST to post docs for Tcode FB01.

Im giving the Document type as 'SA'. Though I am populating the HEADER_TXT of DOCUMENTHEADER, when i test the BAPI, the following error is coming in the RETURN table

<b>"For document type SA, an entry is required in field Doc. Hdr Text"</b>

The rest of the header details are

BUS_ACT = RFBU

USERNAME = ARUN

HEADER_TXT = TEST BAPI

COMP_CODE = 1004

DOC_DATE = 10/23/2007

PSTNG_DATE = 10/23/2007

FISC_YEAR = 2007

FIS_PERIOD = 10

DOC_TYPE = SA

Can any one guide me pls

Regards

Arun

4 REPLIES 4

Former Member
0 Kudos
100

How exactly do you fill in the header text?

Rob

0 Kudos
100

Hi Rob....

I filled it as in theres a "Details View/Edit" button. clicked that and inside i fillled the required columns.

In HEADER_TXT, i entered TEST_BAPI

after fillin other required columns, press F3 and then F8

I am jus executing the BAPI, not yet included it in any program

Isn't this the way to fill..or am i doing somthing wrong??

Arun

null

0 Kudos
100

That should be OK - you might find it easier to work out errors if you just put it into a program.

Rob

0 Kudos
100

Hi Rob

will try as you have said n see. thanks

Arun