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

Former Member
0 Likes
488

Hi All,

My requirement is to update the Quotations using BAPI,

i found one BAPI "BAPI_QUOTATION_CREATEFROMDATA2" to update the Quotations, but my problem is i have to update some Zfields at both Header level and Item Level, how i have to update these fields, can i copy this BAPI to ZBAPI or can i use EXTENSIONIN tables option, if i use this one please let me know how to fill this tab for both Header level and Item level?

thanks in Advance

Thanks & regards,

Sreedhar

3 REPLIES 3
Read only

Former Member
0 Likes
445

Hi,

You need to use the EXTENSIONIN structure to extend the BAPI, You need to add the same z fields to this structure which you have in the Transactions. we have a good documentaion about this BAPI extension with an example, just see the documentation, you will get how to extend this one ..

http://help.sap.com/saphelp_nw04/helpdata/en/c3/40999d8b8911d396b70004ac96334b/content.htm

Regards

Sudheer

Read only

Former Member
0 Likes
445

Hi,

There is a field called STRUCTURE in EXTENSIONIN

Pass the name of the STructure(HEADER or ITEM) to this field and pass the corresponding values to VALUEPART1,2,34 etc and append the records.

The exact posting should be done by a BADI Implementation. you have to search using the Keyword CL_EXITHANDLER in SAPMV45A program to know the correct BADI name.

Hope this helps.

Regards,

Anji

Read only

0 Likes
445

Hi Anji,

BADI is required to implement the Extension logic? i found the BADI but what i have to do in this BADI, since i dont have any IDEA on BADI