cancel
Showing results for 
Search instead for 
Did you mean: 

Would like to post process order confirmations from a VB program using BAPI

Former Member
0 Kudos

I don't have a background in BAPI's, but I am trying to learn. Please believe I have NO problem with doing additional reading, so any suggestions are welcome, but I have a pressing need.

I would like to be able to post process order confirmations from a legacy application, but I'm not sure which BAPI to call. Using the SAP GUI, we use the CORK (ours is called ZDCORK) and we select the order, enter a qty, and execute. This triggers the backflush operations and overhead absorption. What I want to do is trigger the same outcome.

I wasn't trained in production execution (just finance).

Do I populate a table as one of the parameters to the BAPI? Can someone point me to a working example?

Can anyone recommend a BAPI book to start with, and do these books actually explain how to use the parameters? I bought and read the book published in 1999 which deals with proframming in VB and usingh SAP (Professional VB SAP R/3 Programming by Oleg Ovanesyan) but the information is dated since many of the tools used in the book (SAP Assistant and the DCOM component) are not available now.

Accepted Solutions (1)

Accepted Solutions (1)

madlercm
Active Contributor
0 Kudos

Hi Michael,

First, I think that the BAPI that you are looking for is: BAPI_PRODORDCONF_CREATE_HDR

Second,

I don't think that in the framework of such a forum it can be explained in detail how to use BAPIs; nevertheless, here are some highlights:

A BAPI is an executable piece of code that can be called from either an external program within SAP (Z program), or called from an external system either via RFC, or as a web service (depends on your NetWeaver release).

As such, it has input (import) data that you transfer when you call it, and output (export) data that you recieve when it ended processing.

More detailed information, documentation, and a description of the import/export parameters, as well as error handling, one can find in SAP by calling transaction BAPI.

Regards,

Mario

Answers (0)