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

About Bapi

Former Member
0 Likes
472

how can i create Purchase Req.. Using Bapi..

BAPI_REQUISITION_CREATE how Can i use this babi in program ...

If u hav any sample progrom pls sent it asap ...

with regards ..

raja...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
415

Please check this code it may help u.

data: h_banfn like eban-banfn.

data: begin of req_item occurs 10.

include structure bapiebanc.

data: end of req_item.

data: begin of return occurs 10.

include structure bapireturn.

data: end of return.

form create_requisition.

clear return.

refresh return.

  • Aufruf BAPI zum Erzeugen der Bestellanforderung

call function 'BAPI_REQUISITION_CREATE'

exporting

skip_items_with_error = 'X'

importing

number = h_banfn

tables

requisition_items = req_item

return = return

exceptions

others = 0.

  • Auswertung der aufgetretenen Fehler und Fortschreiben Protokoll

loop at return.

h_errors_rq = 'X'.

move-corresponding return to prot_rq.

append prot_rq.

endloop.

endform.

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
415

lots of ex. in this thread.

Read only

Former Member
0 Likes
415

Hi Raja,

Please refer this thread :

Best regards,

Prashant

PS : Please reward all helpful answers

Read only

Former Member
0 Likes
416

Please check this code it may help u.

data: h_banfn like eban-banfn.

data: begin of req_item occurs 10.

include structure bapiebanc.

data: end of req_item.

data: begin of return occurs 10.

include structure bapireturn.

data: end of return.

form create_requisition.

clear return.

refresh return.

  • Aufruf BAPI zum Erzeugen der Bestellanforderung

call function 'BAPI_REQUISITION_CREATE'

exporting

skip_items_with_error = 'X'

importing

number = h_banfn

tables

requisition_items = req_item

return = return

exceptions

others = 0.

  • Auswertung der aufgetretenen Fehler und Fortschreiben Protokoll

loop at return.

h_errors_rq = 'X'.

move-corresponding return to prot_rq.

append prot_rq.

endloop.

endform.

Regards