ME_BAPI_PO_CUST ExtensionIn

Hi All ,
I have extended CI_EKPODB and CI_EKPODBX with 4 custom fields . When using this BAPI from ECC system it updates the table EKPO ..but when the BAPI gets called from SRM sysatem where we have implemantation to push these values to ECC using BBP_PO_CREATE_BACK the PO gets created but custom values  does not gets updated . Do i need to to implement the method MAP2I_EXTENSIONIN to make it work ..All the fields coming from SRM are character fields was confused whther still we need mapping .. Or what is the exact use of MAP21_ExtensionIn methode .
Anjan
Edited by: Anjaneya Bhardwaj on Nov 10, 2011 10:27 AM

Hi All ,
Any updates on this ....
Thanks,
Anjaneya

Similar Messages

  • Pass ZFIELD in MKPF table using BAPI_GOODSMVT_CREATE using EXTENSIONIN

    Hi Friends,
    I have to pass value to ZFIELD in table MKPF using BAPI_GOODSMVT_CREATE.
    there is one structure EXTENSIONIN in BAPI.
    Please give a example for filling this struture and passing filed to BAPI and to database.
    Regards,
    Madan

    champs Please give some idea

  • Purchase Order (BAPI_PO_CREATE! -- EXTENSIONIN)

    Hi people!!
    I want to create purchase order with the BAPI BAPI_PO_CREATE1, but i have to populated some fields of EKKO table that they are´nt in BAPI and i have to used the EXTENSIONIN structure.
    Some example?
    This Bapi saved this fields with EXTENSIONIN or
    do i have to do something more?
    Sorry, but my english is very short and very poor,
    Thanks and kind regards,...

    Hi Juan,
    To use the extension in structure:
    Declare a local structure (say 'mystruct') with the type of the structure that contains the fields you want to add (it may be declared in the dictionary).
    Declare another local structure (say 'mystructx') with the same fields name but with types CHAR1 (they are flags).
    Fill mystruct with the values you want.
    Fill mystructx with 'X' when you want to modify the corresponding fields.
    you will have to fill 2 lines in EXTENSIONIN for header, and 2 lines for each item :
    <u>First line :</u>
    STRUCTURE : the name of the type of mystruct.
    VALUEPART1 : the 240 first characters of mystruct
    VALUEPART2 : the 240 following characters of mystruct (of blank if mystruct is not long enough)
    VALUEPART3 : the 240 following characters of mystruct (of blank if mystruct is not long enough)
    VALUEPART4: the 240 following characters of mystruct (of blank if mystruct is not long enough)
    <u>Second line :</u>
    STRUCTURE : the name of the type of mystructx.
    VALUEPART1 : the 240 first characters of mystructx
    VALUEPART2 : the 240 following characters of mystructx (of blank if mystruct is not long enough)
    VALUEPART3 : the 240 following characters of mystructx (of blank if mystruct is not long enough)
    VALUEPART4: the 240 following characters of mystructx (of blank if mystruct is not long enough)
    Hope that helps.
    Tell if you want examples.

  • Problem in MARA extension BAPI 'BAPI_MATERIAL_SAVEDATA' - EXTENSIONIN

    Dear All,
    Im trying to update Z fields in MARA using the BAPI 'BAPI_MATERIAL_SAVEDATA'
    The appends to MARA & BAPI_TE_MARA are done.
    There are lots of appends & it now exceeded 960 characters.
    My Z fields are in the position 974  to 984.
    EXTENSIONIN has 4 Value parts (VALUEPART1, VALUEPART2, VALUEPART3 & VALUEPART4) each of length char240.
    So the Maximum Zextension updates possile are 240*4 = 960.
    Please let me know update Z fields that are higher than 960.
    Thanks in Advance.
    Regards,
    Prabhu Selvaraj.

    Hi Prabhu,
    Can you please provide your code snippet ?
    Regards
    HM

  • Extensionin populated, however doesn't work

    Hi everyone,
    I'm using SHP_OBDLV_SPLIT_DECENTRAL FM to split outbound delivery (inbound process). It works fine. It comes into SAP with already populated EXTENSIONIN segment (which can be populated the way we want). Currently I have as below:
    STRUCTURE     BAPI_TE_LIKP
    VALUEPART1     8000020134ITISTESTOFROUTINE
    And structure BAPI_TE_LIKP
    VBELN     VBELN_VL     CHAR     10     0     Delivery
    .APPEND     APPDLIKP          0     0     Append for BAPI_TE_LIKP
    LIFEX     LIFEX     CHAR     35     0     External Identification of Delivery Note
    Is there anything wrong with above as it doesn't update field LIFEX of new delivery. Do I have to include MANDT field , do I have to tick Key check box or append another EXTENSIONIN segment with structure BAPI_TE_LIKPX ?
    Thanks and regards,
    DV

    Atreides wrote:
    } catch (Exception e9) {
    }Anything anyone can think of that could be goign wrong here? Any help would be very appreciated!,
    AtreidesNever ever silently catch execptions. Insert
    e9.printStackTrace(System.err);into your catch block. Then at least you'll know what the problem is.

  • HELP bout EXTENSIONIN in BAPI_PO_CHANGE

    I want to use 'BAPI_PO_CHANGE' to update PO items by passing EXTENSIONIN in unicode system ECC6.0. I have update the structure of BAPI_TE_MEPOITEMX and CI_EKPODBX.
    Here's my code, no error, but the value didn't change.Is anything wrong with my code?
    Thanks.
    DATA:
      it_extensionin TYPE STANDARD TABLE OF BAPIPAREX,
      wa_extensionin TYPE BAPIPAREX,
      BAPI_TE_MEPOITEM LIKE BAPI_TE_MEPOITEM,
      BAPI_TE_MEPOITEMX LIKE BAPI_TE_MEPOITEMX.
      BAPI_TE_MEPOITEM-ZZ_COMM_STO_NUM = '111'.
      wa_extensionin-structure = 'BAPI_TE_MEPOITEM'.
      wa_extensionin-valuepart1(5) = '00010'.
    *that's the value i want to update
      wa_extensionin-valuepart1+5(10) = BAPI_TE_MEPOITEM-ZZ_COMM_STO_NUM.
      wa_extensionin- valuepart1+15(10) = ''.
      wa_extensionin-valuepart1+25(8) = ''.
      wa_extensionin-valuepart1+33(8) = ''.
      wa_extensionin-valuepart1+41(8) = ''.
      wa_extensionin-valuepart1+49(8) = ''.
      wa_extensionin-valuepart1+57(1) = ''.
      APPEND wa_extensionin to it_extensionin.
      wa_extensionin-structure = 'BAPI_TE_MEPOITEMX'.
      wa_extensionin-valuepart1(5) = '00010'.
      wa_extensionin-valuepart1+5(1) = 'X'.
      wa_extensionin-valuepart1+6(1) = ''.
      wa_extensionin-valuepart1+7(1) = ''.
      wa_extensionin-valuepart1+8(1) = ''.
      wa_extensionin-valuepart1+9(1) = ''.
      wa_extensionin-valuepart1+10(1) = ''.
      APPEND wa_extensionin to it_extensionin.
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          PURCHASEORDER = '4100000533'
        TABLES
          RETURN        = IT_RETURN
          EXTENSIONIN   = it_extensionin.
    Edited by: yang Aiolos on Oct 10, 2008 2:54 AM
    Edited by: yang Aiolos on Oct 10, 2008 2:59 AM

    Hi..
    I am not sure if you have missed something in the extension structure.... what you can do is check by trial and error method by passing values to other fields also.. many times it so happens that you may need to pass values  to some particular fields to update values of some other field....
    regards,
    Madan...

  • Use of ExtensionIn

    Hi all,
    I want to publish a customer field in EKPO by using the extensionin for BAPI_PO_CREATE  or BAPI_PO_CHANGE
    My customer field on Purchase Order Position is populated within structure CI_EKPODB, the name is ztest and the field is numeric(6).
    How do I have to fill in data within extensionin structure to pass the data directly in the customer field described above?
    Best regards
    Andreas

    since you have only one field. only pass that value to valupar1. check sample code below.
    Sample code to populate EXTENSIONIN & EXTENSIONINX tables & call BAPI_MATERIAL_SAVEDATA.
    *& Report  Z_VMA_MARA_EXT
    *& written by : Vivek Amrute.Tested on ECC6 : 20/11/2008
    *& Updating values of custom fields added to MARA.
    REPORT  z_vma_mara_ext.
    TABLES : mara, marc.
    DATA :  rex LIKE bapiparex OCCURS 0 WITH HEADER LINE,
    rexx LIKE bapiparexx OCCURS 0 WITH HEADER LINE,
    header LIKE bapimathead OCCURS 0 WITH HEADER LINE,
    makt1 LIKE bapi_makt OCCURS 0 WITH HEADER LINE,
    zbapiret2 LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    PARAMETERS : material LIKE mara-matnr,
    val1 TYPE aktvt,
    val2 TYPE actname_kk,
    val3 TYPE aktvt,
    new_desc TYPE maktx.
    header-material = material.
    rex-structure = 'BAPI_TE_MARA'.
    CONCATENATE material val1 val2 val3 INTO  rex-valuepart1 RESPECTING BLANKS.
    APPEND rex.
    rexx-structure = 'BAPI_TE_MARAX'.
    CONCATENATE material 'XXX' INTO  rexx-valuepart1 RESPECTING BLANKS.
    APPEND rexx.
    makt1-langu = 'E'.
    makt1-langu_iso = 'EN'.
    makt1-matl_desc = new_desc.
    APPEND makt1.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata            = header
      IMPORTING
        return              = zbapiret2
      TABLES
        materialdescription = makt1
        extensionin         = rex
        extensioninx        = rexx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • Urgent: Bapi_po_change Extensionin Parameter...

    Hi ,
    I want to update a Zfield created in Database using BAPI_PO_CHANGE.
    It would be more helpfull. IF any one can give a sample code for that ...
    i have done the coding but the field is not getting updated ..
    It will helpfull..if i can get the steps and any additional things to be done ....
    i have used Extensionin parameter....

    Hi Gokul,
    Check the following link on Bapi_po_change, It's a sample program.
    http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
    reward points if helpful.

  • ES_BADI_ME_BAPI, ME_BAPI_PO_CUST, and Contracts

    We've turned on the ME_BAPI_PO_CUST BAdI for POs and the MEOUT_BAPI_CUST_01 BAdI for SAGs in the ES_BADI_ME_BAPI enhancement spot. 
    As SAP promises, these BAdI's do "play nice" with BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_SAG_CHANGE, and BAPI_SCHEDULE_MAINTAIN.
    Is there an equivalent enhancement spot/BAdI for contracts, i.e. an enhancement spot/BadI that will play nice with BAPI_CONTRACT_CHANGE?
    If not, is there an old style BAdI invoked by BAPI_CONTRACT_CHANGE?
    Thanks in advance ...

    I'm pretty sure that for contracts, the enhancement spot is PUR_SPOT_SE_PURGCONTR and the BAdI is PUR_SE_PURGCONTRCRTRC

  • Custom fields updation in EBAN Table for bapi_pr_create - Extensionin

    Hi all,
    My requirement is PR creation by BAPI_PR_CREATE Function Module .
    for pr item level customer added 10 fields in the EBAN table append structure CI_EBANDB. .
    i am creating PR by using Funcation module BAPI_PR_CREATE.
    In this Function Module I have to pass the structure name and field values in the EXTENTIONIN .
    what is the structure name I have to pass and how populate data in to the EBAN table.
    after that i have to create PR and updating 10 two custom field values in the EBAN Table.
    how to proceed for updating the customer field values in the eban table.
    thanks in advance.
    sri

    In the Extensionin pass the values
    Structure - EBAN
    VALUEPART1 - Pass the value for customer fields.
    Please reward if useful.

  • EXTENSIONIN PARAMETER IN BAPI_RESERVATION_CREATE1

    Hi Experts,
    I need the extension structure name to use when I have custom fields during the creation of a reservation via the BAPI, BAPI_RESERVATION_CREATE1.
    The thing is I am creating the reservation from srm, but for my cuf fields to be displayed, I need to pass them through the BAPI extension structure. I have tried all sorts of structures and they do not work.
    I need your help guys.
    Thabo.
    Edited by: Thabo Matsepe on Nov 25, 2008 1:10 PM

    Hi,
    In the EXTENSIONIN param Structure should be BAPI_TE_XXXXX(Which has the custom fields) .
    If you don't know one in se11 search with BAPI_TE_* , I am sure you will one which has ur fields.
    And then in Value part1 should have your data.
    For Ex. you want to send company code , asset no.
    first4 will be your comp code , Next 12 will ur Asset no .
    Please revert back if more help required.
    Also Check for similar work
    [Thread|https://forums.sdn.sap.com/click.jspa?searchID=19143539&messageID=6381845]
    Rhea.
    Edited by: rhea on Nov 25, 2008 3:31 PM
    Edited by: rhea on Nov 25, 2008 3:31 PM

  • BAPI for PO Create/Change with use of EXTENSIONIN table

    Hello,
    We are using SRM extended classic scenario which copies PO's from SRM to ECC via function module BBP_PO_INBOUND.  This function module does mappings and then calls either BAPI_PO_CREATE1 or BAPI_PO_CHANGE.  I have added field YYVSBED (char2) to structure CI_EKKODB.  When BAPI's are called this field is present in ExtensionIn structure.  While debugging the processing, I can see that it being processed, however, it does not get posted in database.
    Any suggestions are very welcome.
    Thank you.
    Natasha

    Internally the BAPI uses the the MEPO...-Structures .  Your data is lost  at the move-corresponding from the BAPI-Structure to the related MEPO... structure . If your target-field is an EKPO-Field you have to check if there is a field in the MEPOITEM -structure . 
    If you use the CI_EKPODB  to extend the EKPO with your custom field, the BAPI would work, because this is included in EKPO and MEPOITEM   .
    Best regards Josef

  • Problems in the EXTENSIONIN Parameter of BAPI_PO_CREATE1

    Hello Experts,
    I have a cfeild in the table EKKO and want to fill it.
    I have try it over the EXTENSIONIN Parameter of BAPI_PO_CREATE1, but it doesn't work.
    The strucurtes BAPI_TE_MEPOHEADER and BAPI_TE_MEPOHEADERX has also the required customerfields included
    Some Ideas? why it doesn'works ?
    Thanx in Advance
    REPORT  Z_BAPI_PO_CREATE1.
    DATA: LS_POHEADER   TYPE TABLE OF BAPIMEPOHEADER WITH HEADER LINE  .
    DATA: LS_POHEADERX  TYPE TABLE OF BAPIMEPOHEADERX WITH HEADER LINE.
    DATA: LT_RETURN     type TABLE OF BAPIRET2.
    DATA: LT_POITEM     TYPE TABLE OF BAPIMEPOITEM  WITH HEADER LINE.
    DATA: LT_POITEMX    type TABLE OF BAPIMEPOITEMX WITH HEADER LINE .
    DATA: LT_ACCOUNT    type TABLE OF BAPIMEPOACCOUNT WITH HEADER LINE .
    DATA: LT_ACCOUNTX   TYPE TABLE OF BAPIMEPOACCOUNTX WITH HEADER LINE .
    DATA: LT_ADDRDELIV  type BAPIMEPOADDRDELIVERY .
    *********************Setze HEADER**************************
    LS_POHEADER-DOC_TYPE      = 'Z028'.
    LS_POHEADER-CREAT_DATE    = '01032006'.
    LS_POHEADER-ITEM_INTVL    = '00001'.
    *LS_POHEADER-VENDOR       = '0021000000'.
    LS_POHEADER-SUPPL_PLNT    = '4700' .
    LS_POHEADER-PURCH_ORG     = '2700' .
    LS_POHEADER-PUR_GROUP     = '701' .
    LS_POHEADER-CURRENCY      = 'EUR' .
    APPEND LS_POHEADER .
    *********************Setze HEADERX**************************
    LS_POHEADERX-DOC_TYPE    = 'X' .
    LS_POHEADERX-CREAT_DATE  = 'X' .
    LS_POHEADERX-ITEM_INTVL  = 'X' .
    LS_POHEADERX-SUPPL_PLNT  = 'X' .
    *LS_POHEADERX-VENDOR     = 'X' .
    LS_POHEADERX-PURCH_ORG   = 'X' .
    LS_POHEADERX-PUR_GROUP   = 'X' .
    LS_POHEADERX-CURRENCY    = 'X' .
    APPEND LS_POHEADERX .
    *********************Setze ITEMS**************************
    LT_POITEM-PO_ITEM                     = '00001' .
    LT_POITEM-MATERIAL                    = '023JK513' .
    LT_POITEM-PLANT                       = '4700' .
    LT_POITEM-STGE_LOC                    = '7001' .
    LT_POITEM-QUANTITY                    = '1' .
    LT_POITEM-PO_UNIT                     = 'PC' .
    LT_POITEM-ACCTASSCAT                  = 'K' .
    LT_POITEM-PERIOD_IND_EXPIRATION_DATE  = 'D' .
    APPEND LT_POITEM .
    *********************Setze ITEMSX**************************
    LT_POITEMX-PO_ITEM        = '00001' .
    LT_POITEMX-PO_ITEMX       = 'X' .
    LT_POITEMX-MATERIAL       = 'X' .
    LT_POITEMX-PLANT          = 'X' .
    LT_POITEMX-STGE_LOC       = 'X' .
    LT_POITEMX-QUANTITY       = 'X' .
    LT_POITEMX-PO_UNIT        = 'X' .
    LT_POITEMX-PERIOD_IND_EXPIRATION_DATE = 'X' .
    LT_POITEMX-ACCTASSCAT                  = 'X' .
    APPEND LT_POITEMX .
    *********************Setze ACCOUNTPARAMETER**************************
    LT_ACCOUNT-COSTCENTER = '1301000001' .
    LT_ACCOUNT-PO_ITEM    = '00001' .
    APPEND LT_ACCOUNT .
    LT_ACCOUNTX-COSTCENTER = 'X' .
    LT_ACCOUNTX-PO_ITEM    = '00001' .
    APPEND LT_ACCOUNTX .
    DATA:       ls_bapi_te_po_header    type          BAPI_TE_MEPOHEADER,
                ls_bapi_te_po_headerx    type          BAPI_TE_MEPOHEADERX,
                ls_bapi_extension       type          BAPIPAREX,
                it_bapi_extension       type table of BAPIPAREX           WITH HEADER LINE.
    ********************Setze EXTENSIONIN**************************
    ls_bapi_extension-structure     = 'BAPI_TE_MEPOHEADER' .
    *ls_bapi_te_po_header-po_number  = '' .
    ls_bapi_te_po_header-cfield    = '8204' .
    ls_bapi_extension-valuepart1    = ls_bapi_te_po_header .
    append ls_bapi_extension to it_bapi_extension .
    clear ls_bapi_extension .
    ls_bapi_extension-structure     = 'BAPI_TE_MEPOHEADERX' .
    *ls_bapi_te_po_header-po_number  =  '' .
    ls_bapi_te_po_headerx-cfield    = 'X' .
    ls_bapi_extension-valuepart1     = ls_bapi_te_po_headerx .
    append ls_bapi_extension to it_bapi_extension .
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        POHEADER    = LS_POHEADER
        POHEADERX   = LS_POHEADERX
      TABLES
        RETURN      = LT_RETURN
        POITEM      = LT_POITEM
        POITEMX     = LT_POITEMX
        POACCOUNT   = LT_ACCOUNT
        POACCOUNTX  = LT_ACCOUNTX
        EXTENSIONIN = it_bapi_extension
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

    Hello,
    thank you for your response
    The Problem was on the BADI below:
    it wasn't implemented.
    BAPI_PO_CREATE1->PERFORM move_data_in ->PERFORM move_extensionin->PERFORM move_container_in->CALL BADI lr_badi->map2i_extensionin
    CALL BADI lr_badi->map2i_extensionin
            EXPORTING
              im_container = im_container
              im_name      = im_name
              im_error     = lf_exit
            CHANGING
              ch_struc     = ch_struc.
    Best Regards

  • Pass values to EXTENSIONIN or BAPIPAREX from WebDynpro

    Hi,
    I am facing problem in passing my custom field values to EXTENSIONIN (BAPIPAREX) in BAPI_PO_CREATE1. Could any one please tell me how to pass values.
    Thanks
    Vijay

    Hi lvrat,
    A control reference can be passed between VIs, as shown by this example. Additionally, this example describes how to do custom user events, and how to queue them. As far as pros/cons, I recommend passing the control reference, as this will get you the best performance.
    Cheers!
    TJ G

  • 'BAPI_GOODSMVT_CREATE'  for ExtensionIN in documentation tab no structures

    Hello Friends,
    I am doing GR posting with BAPI 'BAPI_GOODSMVT_CREATE' but i need to enhance this BAPI to add some custom field with the help of EXTENSIONIN... kindly help me if any one have already work on that.
    For this bapi in the documentation tab there are no axulliray structures given as i early worked with bapi_po_create1 where they provided the structure names in the bapi documentation based on that i filled all the necessary data.
    If you can send to some sample code it would be highly appreciate.
    Thanks.

    Hi,
    I think that SAP Note 143580 - Information on SD BAPIs and customer enhancement concept will help you
    Regards,
    Eduardo
    PD: I'm sorry, I forgot the SAP Note 700795 - Enhancement category of BAPI enhancement structures
    Edited by: E_Hinojosa on Nov 9, 2010 6:29 PM

Maybe you are looking for

  • Smoother scrolling in Acrobat 9 Pro?

    Hi there, scrolling through a document in Acrobat using the blue part on the scrollbar seems to be a bit jerky compared to for example scrolling through a webpage in Firefox using the scrollbar. Anyone got any tips on how to improve the smoothness (n

  • How fast/powerful are the brand new 8 core Mpros 3 GHZ

    can you compare them to the QUAD 2.5? any one who has one could you give me some opinions is it worth the buy or will waiting prove more satisfactory

  • Lead time on purchase order

    Hi all For ordering spare parts, could you please confirm from where the lead time is picked up on the order ? From the PIR or the material master ? Thanks in advance!

  • Error while doing SL to SL

    Dear All, I am new to WM. I am trying the transation. In that i am trying to Transfer posting Storage location To Storage Location Mvt 311 But system is giving error meassage Storage bin WM2 922 TR-ZONE does not exist (check your entry) What i have t

  • HT4623 my i phone will not work error 3194

    My Ipnone will not work error 3194