Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MKPF-XBLNR, Which is correct Exit/BADI, among the following list?

Hi Experts,

AM looking to pouplate the <i><b>MKPF-XBLNR field in MB1C</b></i> Tx with Delivery# (actually, SAP populates it with Material Slip value). so, pls. let me know that,

among the follow exits/badis, which is the correct one?


Transaction Code - MB1C Other Goods Receipts

Enhancement/ Business Add-in Description


MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.

MBCF0011 Read from RESB and RKPF for print list in MB26

MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1

MBCF0009 Filling the storage location field

MBCF0007 Customer function exit: Updating a reservation

MBCF0006 Customer function for WBS element

MBCF0005 Material document item for goods receipt/issue slip

MBCF0002 Customer function exit: Segment text in material doc. item

Business Add-in

MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check

MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn

MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data

MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens

MB_DOC_BADI_INTERNAL BAdIs when Creating a Material Document (SAP Internal)

MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF

MB_DOCUMENT_BADI BAdIs when Creating a Material Document MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR

MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7

MB_CIN_LMBMBU04 posting of gr

MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables

ARC_MM_MATBEL_WRITE Archive AddOn-Specific Data for MM_MATBEL

ARC_MM_MATBEL_CHECK Check AddOn-Specific Criteria for MM_MATBEL

MB_BATCH_MASTER Setting of Batch Data at Goods Movement

No.of Exits: 8

No.of BADis: 15

</b> <i></i></b></i>


Former Member replied



1) execute Tcode SE18.

2) Specify a definition Name : ZBADI_SPFLI

3) Press create

4) Choose the attribute tab. Specify short desc for badi.. and specify the type :

multiple use.

5) Choose the interface tab

6) Specify interface name: ZIF_EX_BADI_SPFLI and save.

7) Dbl clk on interface name to start class builder . specify a method name (name,

level, desc).

Method level desc

Linese;ection instance methos some desc

8) place the cursor on the method name desc its parameters to define the interface.

Parameter type refe field desc

I_carrid import spfli-carrid some

I_connid import spefi-connid some

9) save , check and activate…adapter class proposed by system is

ZCL_IM_IM_LINESEL is genereated.


1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.

2) Specify aname for implementation ZIM_LINESEL

3) Specify short desc.

4) Choose interface tab. System proposes a name fo the implementation class.

ZCL_IM_IMLINESEL which is already generarted.

5) Specify short desc for method

6) Dbl clk on method to insert code..(check the code in “AAA”).

7) Save , check and activate the code.

Some useful URL

Now write a sample program to use this badi method..

Look for “BBB” sample program.


data : wa_flights type sflight,

it_flights type table of sflight.

format color col_heading.

write:/ 'Flight info of:', i_carrid, i_connid.

format color col_normal.

select * from sflight

into corresponding fields of table it_flights

where carrid = i_carrid

and connid = i_connid.

loop at it_flights into wa_flights.

write:/ wa_flights-fldate,


wa_flights-price currency wa_flights-currency,






*& Report ZBADI_TEST *

*& *



tables: spfli.

data: wa_spfli type spfli,

it_spfli type table of spfli with key carrid connid.

*Initialise the object of the interface.

data: exit_ref type ref to ZCL_IM_IM_LINESEL,

exit_ref1 type ref to ZIF_EX_BADISPFLI1.

selection-screen begin of block b1.

select-options: s_carr for spfli-carrid.

selection-screen end of block b1.


select * from spfli into corresponding fields of table it_spfli

where carrid in s_carr.


loop at it_spfli into wa_spfli.

write:/ wa_spfli-carrid,





hide: wa_spfli-carrid, wa_spfli-connid.


at line-selection.

check not wa_spfli-carrid is initial.

create object exit_ref.

exit_ref1 = exit_ref.

call method exit_ref1->lineselection


i_carrid = wa_spfli-carrid

i_connid = wa_spfli-connid.

clear wa_spfli.

2) Check the table MSEG, in some field the delivery number is there ? check all the fields for a particular GR, based on what reference doc it is getting created, there should be some link with the delivery.

Take the help of a functionla guy in this regard.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question