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: 

Problem while Error Handling thru BAPI_PO_CREATE1

Former Member
0 Kudos

Hi,

currently im facing problem while generating error thru BAPI_PO_CREATE1

im calling bapi two times thru loop iteration,

as my data is faulty , so for 1st iteration im getting 3 error in it_return structure.

now in 2nd iteration im getting (3+3)

repeted error which is geenarated earlier(old 3 err) +(new 3 err).

im refreshing all internal table,work areas and variables, still im getting same problem,

please provide ur kind suggestion on this.

refresh : <all it>
clear  : <all wa>

Loop at it into wa.

refresh : it_return.

CALL FUNCTION 'BAPI_PO_CREATE1'

Tables = IT_RETURN

endloop.

Regards

Vivek Khobragade

3 REPLIES 3

Former Member
0 Kudos

hi,

I found that Im getting duplicates error because of passing

BAPIMEPOITEM - PREQ_NO (Purchase Requisition Number)

BAPIMEPOITEM - PREQ_ITEM (Item Number of Purchase Requisition)

. if I dont pass these then I wont get duplicates error.

but as functional told its mandatory to update it?

please have eye on it?

regards

Vivek

Former Member
0 Kudos

thanks all

0 Kudos

Hi,

Can you please let me know, how this error was solved. I am encountering the same problem now.

Thanks,

Vijay