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: 

how to write records into batch input file

former_member186390
Participant
0 Kudos

Hi!!

I have two issue please help me!!

1)If i post a data to bapi bapi_acc_manual_alloc_post ,then if error are there then how to write records to a batch input file.

2) how to append work area to custom table.

suppose i have

custom table :yrepost

internal table : it_yrepost

work area : wa_repost

then how to append data from wa_repost to yrepost.

thank you

amit.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Amit

I didn't get your 1st question. Could you plz let us know your requirement in detail.

BAPI BAPI_ACC_MANUAL_ALLOC_POST returns messages ( Error/Warning/Info etc ) in RETURN table parameter. You can check RETURn table parameter for message type 'E' ( Error )

2) how to append work area to custom table.

Syntax is

INSERT INTO dbtab [CLIENT SPECIFIED] VALUES wa.

In your case it should be

INSERT INTO YREPOST VALUES wa_repost.

Hope it will help you.

Regards,

Naren

3 REPLIES 3

Former Member
0 Kudos

Hi Amit

I didn't get your 1st question. Could you plz let us know your requirement in detail.

BAPI BAPI_ACC_MANUAL_ALLOC_POST returns messages ( Error/Warning/Info etc ) in RETURN table parameter. You can check RETURn table parameter for message type 'E' ( Error )

2) how to append work area to custom table.

Syntax is

INSERT INTO dbtab [CLIENT SPECIFIED] VALUES wa.

In your case it should be

INSERT INTO YREPOST VALUES wa_repost.

Hope it will help you.

Regards,

Naren

former_member186390
Participant
0 Kudos

Hi!!

Actually i have to write a batch input file for all the errors returned by bapi,return parameters.

thanks

amit.

former_member186390
Participant
0 Kudos

thanks