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 PO & GR ?

NR_Ranasingh
Participant
0 Likes
612

Hi .

I have a requirement like below .

Read the file from APPLICATION SERVER and then create PO through BAPI and then create GR for those through BAPI . and all this will be in BACKGROUND JOB .

first i Craeted PO through BAPI , For that which gives error , i will run BDC session for ME21N for creating PO manually. then I will go for GR through BAPI.

My doubt is how to create GR for those PO which are done Through SESSION methods (ERROR RETURN by BAPI_PO )

if BAPI for GR returns any error then so i need to run BDC SESSION again for GR in MIGO, ??

is it possible through the same program,

so how i can validate those record BAPI_GR ??

Pls suggest the ways to solve this ?

3 REPLIES 3
Read only

Former Member
0 Likes
525

If you get Error in BDC session, need not to run BAPI_GR for that.

If you get error in BAPI_GR you need to GR again for those after correcting the data.

--

Reddy

Read only

0 Likes
525

BUt how to do that.?

If i get error in BAPI_GR then how to make GR for those Records.. Through BDC_Session or what ?

Not getting Idea ..

Read only

NR_Ranasingh
Participant
0 Likes
525

i solved it