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

bapi for kb31

Former Member
0 Likes
614

DEAR ALL

hi

BAPI_ACC_STAT_KEY_FIG_POST

how can i call this bapi in abap prog to upload kb31 data..

can u send me the sample code?

regds,

jp

2 REPLIES 2
Read only

Former Member
0 Likes
457

hi,

get the data from file into an internal table say itab using Function module GUI_UPLOAD.

Then put a loop statement on internal table itab .

And call BAPI in this loop.. endloop. statement.

Read only

Former Member
0 Likes
457

Hi Patel,

BAPI_ACC_STAT_KEY_FIG_POST

The Import parameters are

1.DOC_HEADER

2.IGNORE_WARNINGS(optional)

-->The DOC_HEADER structure contains the document header data.

-->The CO_AREA field must contain the controlling area in which you are to post.

-->For an external number range, the DOC_NO field is specified for the document number.

-->The fields DOCDATE (document date) and POSTGDATE (posting date) are optional. For empty fields, the system enters the current date.

-->The OBJ_KEY enables you to specify the number and organization of a reference document (each with 10 characters ). The OBJ_TYPE type field is defined for the object type of the reference document of the sending system.

-->USERNAME is mandatory field

Tables Parameters

1.DOC_ITEMS

2.RETURN

3.CUSTOMER_FIELDS

The document item data is transferred to the DOC_ITEMS table.You pass values you want to upload based on the requirement.

You take the Header details in one Internal table and the item details in other table.

Suppose you have structue like this

CO_AREA

DOCDATE

POSTGDATE

DOC_NO

USERNAME

VAL_PERIOD

VAL_FISYEAR

You upload the data in your file in to this table.For your bapi structure you pass these values.

Award points if useful...

Thanks,

Ravee..