cancel
Showing results for 
Search instead for 
Did you mean: 

Relation between BAPI and transaction

Former Member
0 Kudos

Hi,

In transaction VA42 (Sales contract change) there is an option called CREATE WITH REFERENCE..It's a button.

Does anyone know how this button is linked to the BAPI

bapi_contract_createfromdata or bapi_contract_changefromdata. Maybe there will be a field which has to be filled with an 'X'. I couldn't find it. Does anyone have any idea about this

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

At this time BAPIs do not support "Creation with reference function". However, one can update document flow by specifying reference documents. This can be acomplished by FM BAPI_SALESDOCUMENT_COPY (has not been released yet).

Former Member
0 Kudos

You can also update the doc flow records (VBFA entries) by filling in the REF_DOC related fields in the line item structure before calling the BAPI_***_CREATEFROMDATA.

Former Member
0 Kudos

I was recently asked to look into something simliar (in VA02 to change an existing Sales Document) but ended up having to use BDC as BAPI didn't seem to provide functionality...

Former Member
0 Kudos

Hi Vijay,

The BAPIs you have mentioned have nothing to do in specific with the push button or menu option to create from reference. You may also note that there are other BAPIs (for quotation, salesorder etc) which also use this 'createfromdata'. Infact, 'createfromdata' is a common method that is applicable to many business objects.

Hope this clarifies your doubt regarding 'createfromdata'. Just don't go by the name..

Pavan.