BAPI Extension Values

Iam changing  a contract  and updating the tables using  BAPI  BAPI_CUSTOMERCONTRACT_CHANGE.
Here iam facing the probelm while passing the BAPI Extension values.
Can you please advice how we need to pass the entire item data into VALUEPARTx fields .
Please find my code here :
W_EXTENSIONIN-STRUCTURE = 'BAPE_VBAP'.
  W_ADDITIONAL-ZZ_KUNNR1 = W_FINAL-ZZ_KUNNR1.
  W_ADDITIONAL-ZZ_KUNNR2 = W_FINAL-ZZ_KUNNR2.
  W_ADDITIONAL-ZZ_KUNNR3 = W_FINAL-ZZ_KUNNR3.
  W_ADDITIONAL-ZZ_KUNNR4 = W_FINAL-ZZ_KUNNR4.
  W_ADDITIONAL-ZZ_KUNNR5 = W_FINAL-ZZ_KUNNR5.
  W_ADDITIONAL-ZZ_KUNNR6 = W_FINAL-ZZ_KUNNR6.
  W_ADDITIONAL-ZZ_KUNNR7 = W_FINAL-ZZ_KUNNR7.
  W_ADDITIONAL-ZZ_KUNNR8 = W_FINAL-ZZ_KUNNR8.
  W_ADDITIONAL-ZZ_KUNNR9 = W_FINAL-ZZ_KUNNR9.
  W_ADDITIONAL-ZZ_MONDEPOT = W_FINAL-ZZ_MONDEPOT.
  W_ADDITIONAL-ZZ_TUEDEPOT = W_FINAL-ZZ_TUEDEPOT.
  W_ADDITIONAL-ZZ_WEDDEPOT = W_FINAL-ZZ_WEDDEPOT.
  W_ADDITIONAL-ZZ_THUDEPOT = W_FINAL-ZZ_THUDEPOT.
  W_ADDITIONAL-ZZ_FRIDEPOT = W_FINAL-ZZ_FRIDEPOT.
  W_ADDITIONAL-ZZ_SATDEPOT = W_FINAL-ZZ_SATDEPOT.
  W_ADDITIONAL-ZZ_SUNDEPOT = W_FINAL-ZZ_SUNDEPOT.
  W_ADDITIONAL-ZZ_BANKDEPOT = W_FINAL-ZZ_BANKDEPOT.
  W_ADDITIONAL-ZZ_SCH_ADHOC_DEP = W_FINAL-ZZ_SCH_ADHOC_DEP.
  CONCATENATE W_FINAL-VBELN
              W_FINAL-POSNR
              W_ADDITIONAL
              INTO W_EXTENSIONIN-VALUEPART1.
  APPEND W_EXTENSIONIN TO IT_EXTENSIONIN.
But here the total line item data is not coming into the VALUEPART1 filed.
How we will distribute the line item data into  VALUEPARTx fields .
Please advice?
Edited by: vinay raj on Feb 15, 2011 5:53 PM

Nope, you don't need to pass it to value-part2... Basically the quote from SAP help is pretty straight forward...
If for example, you have 10 fields in BAPI_VBAP making a total of 242 char... Last field is 3 character... You have to basically fill value-part1 with all but two character of BAPI_VBAP... AND then fill the remaining 2 characters in VALUE-PART2... Max has a pretty simple method to do this by filling from 31st position all the characters in BAPI_VBAP...
If you are not comfortable with this approach, Then you can create two structures,
STRUCTURE 'A' with two fields 30 characters and second field with 960 characters.. Move your BAPI_VBAP to the second field and structure name to first field... Once the move is complete, move the entire structure to BAPIPAREX...
If your system is unicode compliant, check out this wiki link for character conversion
http://wiki.sdn.sap.com/wiki/display/SI/UCCHECK(UnicodeComplaince)-CommonErrorsand+Solutions

Similar Messages

  • How to use BAPI extension for updating field which is not in BAPI stracture

    I am doing a conversion for control cycle create. The data is maintained in DB Table "PKHD". i have to update 12 fields threre through BAPI "BAPI_KANBANCC_CREATE". there are 11 fields in BAPI structure. but 1 field called"BERKZ" is not there . How can i update it through EXTENSION.

    Hi ,
    in the bapi extension check one structure with name BAPIPAREX will available..
    you need to pass custom structure in that..
    ands conactenate 12 field of your structure and pass in to value1 in bapirex structure and append.
    go to se11 and enter >bapiparex> check where it is used -->see the zprogram and check how it is used the add your code according to that..
    Regards,
    Prabhudas

  • BAPI Extension BAPI_ACTIVITYCRM_CREATEMULTI

    Hi Experts,
    I have one query regarding the bapi - BAPI_ACTIVITYCRM_CREATEMULTI.
    i want to add some more fields in TABLES of this BAPI.
    In TABLES of this BAPI there is a table named as : EXTENSIONIN. I have tried to add some data in this field which should be reflected in the table CRMD_ACTIVITY_I.
    Do anybody have any idea regarding BAPI Extension ??

    Please check this link >>
    SAP help covers this decision making rather extensively here:
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/3f6d016d0711d396a50004ac96334b/frameset.htm
    Cheers,
    Ashish

  • BAPI Extension for Purchase requisition

    Hi All,
    I have to add a custom field in EBAN  and have to enhance PR BAPI to include that additional field. What steps shud I follow?
    how can I use BAPI Extensions?
    Any help will be rewarded.
    Regards,
    Pragya

    Hi,
    I am told that I have to use BAPI extension structures to add the field to BAPI.
    But I am not sure how to proceed once I have created the BAPI extension structure.
    also I am not sure of the user exit that I will have to use further?
    Please help.
    Regards,
    Pragya

  • EXTENSION_IN in case of BAPI extension for BP

    I am using BAPI "BAPIBUSISM007_CREATEFROMDATA" to create Business partner for IS Media 4.7.
    BAPI is working fine, But I have added some Zfields in table BUT000. How to use the table parameter EXTENSION_IN to create Business partner along with all Zfields.
    Regards
    Aman

    The note explains the use of EXTENSION_IN wrt to Sales order. You have to apply the same concept to Business Partners.
    There have been similar queries posted in the forum. You can search the forum for the text "BAPI Extensions" and you will find a lot of useful threads.
    -Kiran
    *Please reward useful answers.

  • Sales Order BAPI Extension

    Hi,
        We would like to pass custom fields data to Custom screens in VA01 Standard Sales Order. For that we are extending standard BAPI BAPI_SALESORDER_CREATEFROMDAT2 using EXTENSION parameter. We have appended custom structures to VBAKKOZ. VBAKKOZX, BAPE_VBAK,BAPE_VBAKX and able to pass information from portal upto 480 characters using
    valuepart1 and valuepart2.
    But when we are trying to extend it further, standard sales order BAPI
    BAPI_SALESORDER_CREATEFROMDAT2 is going to dump at :
             CALL METHOD cl_abap_container_utilities=>fill_container_c
                            EXPORTING
                               im_value     = da_bape_vbap
                            IMPORTING
                               ex_container =
    ch_parex+lenstruc(da_length_bape_vbap)
                            EXCEPTIONS
                               illegal_parameter_type = 1
                               OTHERS                 = 2.
    We need to extend it up to 900 chars.
    Any help on this will be greatly apprecited.
    Thanks
    Kalyan

    I found shortly after posting my message that the notes had not been correctly applied as the Notes Assistant ended with an error, and the error that resulted in this failure had not been corrected.  The basis folks failed to inform me that this error had occured in applying the notes.  I discovered it through testing.  Had you applied the notes and run into the same error?
    When we subsequently corrected for this, the issue with lenstruc went away and everything appears to be OK.  The real problem was that due to the error in the Notes Assistant the updated version of LVBAKTOP with the definition of lenstruc did not get activated.  It was left in a state where it needed an SSCR key to be applied manually, which should all have been handled automatically with SNOTE.
    Once this was done and the source was activated, the original error went away.  The two notes seem to have solved the original Unicode issue as well.
    We still have this update in the development area only since the CRM enhancements that caused the original problem with an append to the VBAK structure are also still in development.   We will be testing those changes together before moving everything up.  If there are any further issues that come up, I'll let you know.
    What I am wondering is if you had a similar problem applying the above notes, since the problem went away for us when the notes to handle the Unicode conversion were properly applied.
    Brian
    Edited by: Brian Sammond on Jul 24, 2008 10:55 AM

  • Getting error when passing custom fields to BAPI extension

    Hi ,
    I have problem with standard BAPI_PO_CREATE1 bapi function.
    ERROR DETAILS
    when FM:- BAPI_PO_CREATE1 first time executed  getting error  "Check item number 30 in table EXTENSIONIN" and PO not creating.
    when using function key reverse(cntl+f12) in BAPI_PO_CREATE1 in same execution ,po document  creating ,but data is not papulating custom field.
    CODE USING IN MY PROGRAM
    DATA : 
           ltab_extensionin TYPE TABLE OF bapiparex,
           wa_extensionin TYPE bapiparex,
           wa_BAPI_TE_MEPOITEM type BAPI_TE_MEPOITEM.
    wa_bapi_te_mepoitem-po_item = wa_itab-item.
    wa_bapi_te_mepoitem-zvsart  = wa_itab-ship_type.
    move 'BAPI_TE_MEPOITEM' to wa_extensionin-structure.
    move wa_BAPI_TE_MEPOITEM to  wa_extensionin-VALUEPART1 .
    APPEND wa_extensionin TO ltab_extensionin.
       CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = wa_pohead
          poheaderx        = wa_poheadx
          testrun          = ' '
        IMPORTING
          exppurchaseorder = v_po_number
        TABLES
          return           = itab_return
          poitem           = itab_poitem
          poitemx          = itab_poitemx
          poschedule       = itab_posched
          poschedulex      = itab_poschedx
          poshipping       = itab_poshipping
          poshippingx      = itab_poshippingx
          extensionin      = ltab_extensionin.
    Could one of u help me ?? .
    Regards,
    Nayak

    Hi,
    Try populating the ltab_extensionin as the code given below:
    Maybe it can help you.
    Constants: c_flag_bape_vbak TYPE  char10 VALUE  'BAPE_VBAK', " Constant
                     c_flag_bape_vbakx TYPE char10 VALUE  'BAPE_VBAKX'," Constant
      wa_bape_vbap-vbeln             = space.
       wa_bape_vbap-posnr            = wa_order_items_in-in_linenumber.
       MOVE c_flag_bape_vbak TO wa_extensionin-structure.
       MOVE c_flag_bape_vbap TO wa_extensionin-structure.
       CALL METHOD cl_abap_container_utilities=>fill_container_c
         EXPORTING
           im_value       = wa_bape_vbap
         IMPORTING
           ex_container = wa_extensionin-valuepart1.
       APPEND wa_extensionin TO it_extensionin.
       CLEAR : wa_extensionin.
       MOVE c_flag_bape_vbapx TO wa_extensionin-structure.
       wa_extensionin-valuepart1+0(10) = space.
       wa_extensionin-valuepart1+10(6) = wa_order_items_in-in_linenumber.
       wa_extensionin-valuepart1+80(3) = abap_true.
       APPEND wa_extensionin TO it_extensionin.
       CLEAR : wa_extensionin.
    Regards,
    Shweta

  • How to get Meta Data Extension value?

    Hello,
    I created a new property in KM and set "Meta Data Extension" field that points to some bundle class file for Labels for this property.
    How can I get the value of this "Meta Data Extension" field or, to be more exactly, this bundle class in my property renderer code?
    I'll be very much appreciated for your help.

    Hello Sergei,
    IMetaName getLabel will give you the label out your bundle file if you've set the metadata extension and the bundle key in the metadata property configuration. There is no API that exposes the metadata extension information. It's only used inside the property configuration service.
    For more information about how tho customize labels of KM attributes see the documentation:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm">Changing Labels for Properties</a>
    Regards
    Lars

  • BAPI Extension - Sales Order(VBAK, VBAP)

    Hi all,
              Please help me in the issue .  I have added user custom fields for sales order va01 in header and item . i am using bapi for creating sales order . I need do use Extensionin struture for updating table vbak and vbap. Can anyone brief the procedure for acheiving the same.
    Thanks in advance,

    Hi Eric,
    Extensions for VBAK, VBAP can be filled like this:
    CLEAR e_extension.
    e_extension-structure     = 'BAPE_VBAK'.   ---> For VBAK
    e_extension-valuepart1+10 = VAL1
    e_extension-valuepart1+46 = VAL2.
    e_extension-valuepart1+56 = VAL3.
    e_extension-valuepart1+59 = VAL4
    APPEND e_extension TO t_extension.
    The same for VBAP
    CLEAR e_extension.
    e_extension-structure     = 'BAPE_VBAP'.   ---> For VBAP
    e_extension-valuepart1+10 = VAL1
    e_extension-valuepart1+46 = VAL2.
    e_extension-valuepart1+56 = VAL3.
    e_extension-valuepart1+59 = VAL4
    APPEND e_extension TO t_extension.
    CALL FUNCTION 'BAPI_SALESORDER...."
        TABLES
          extensionin        = t_extension.
    Hope this helps.
    Ernesto
    Edited by: Ernesto Caballero on Feb 24, 2010 3:03 PM

  • BAPI extension

    Hi all,
    I am dealing with VD02 transaction, the screen of which is enhanced with one more tab in the std screen. The screen field is ZZOSC, which has been added to KNA1 table. Now, i want to update the ZZOSC field value based on a logic. I have found a bapi BAPI_CUSTOMER_EDIT which has all the required fields except ZZOSC. How can i add this field to the bapi above? Is the use of bapi the right way for solving this or i should go for badi or user exits? Name of the badi will be additionally helpful. Preferably, provide a solution through the use of BAPIs. Relevant solutions will be rewarded for sure.
    Vishwanath

    Hi all,
    I am dealing with VD02 transaction, the screen of which is enhanced with one more tab in the std screen. The screen field is ZZOSC, which has been added to KNA1 table. Now, i want to update the ZZOSC field value based on a logic. I have found a bapi BAPI_CUSTOMER_EDIT which has all the required fields except ZZOSC. How can i add this field to the bapi above? Is the use of bapi the right way for solving this or i should go for badi or user exits? Name of the badi will be additionally helpful. Preferably, provide a solution through the use of BAPIs. Relevant solutions will be rewarded for sure.
    Vishwanath

  • How to display BAPI decimal values into webdynpro!

    Hi All,
    I have a problem to display decimal values from R/3 system to webdynpro table.
    Iam using structure there declared all the varaibles as decimal 15,2 .
    But I am not able to disply the decimal values intable  of webDynpro.
    Please help me for this.
    Thanks in advance.
    BHI

    Hi,
        as u r importing RFC model all the datatypes in java side  corresponding to r/3 are also created .
    see in the dictonary of ur project .simple and structure type are created and u can use it.
    and u r storing the  data in some model node so when u r using table control rightclick on table and select structure binding it will display the context in ur view and from there u can select the attributes u want to display.
    if u r copying data of modelnode to value node u can also select structure binding option in wizard which set the datatype for the attributes .
    thanks,
    yashpal

  • CREATING MATERIAL MASTER USING BAPI-GROSS_WT VALUE IS NOT SEEN

    HI GUYS,
    I AM  CREATING MATERIAL MASTER USING BAPI_MATERIAL_SAVEDATA.I AM LOADING THE  VALUES FROM A FLAT FILE .
    THE VALUE FOR  GROSS_WT IS NOT SEEN WHEN THE MATERIAL IS CREATED.
    THE BAPI_MARM STRUCTURE HAD THE FILED BRGEW(GROSS_WT).
    I AM ABLE TO LOAD NET WT CORRECTLY BUT AM NOT ABLE TO LOAD GROSS WT.
    ANY SUGGESTIONS AS TO WHY THIS IS HAPPENING AND PROVIDE ME WITH A  SOLUTION.
    THANKS.

    Error: The numeric material number 1000000 was transferred without leading zeros for material: 1000000
    From next timepost only related code to make it look better.
    Use conversion exit for MATNR field.

  • No BAPI return values in DELPHI

    Hello,
    I'm having a trouble receiving the result of a BAPI in Delphi.
    When i test the business object BUS7011 inside SAP, the function CheckCollision returns two tables COLLISIONRECORDS and RETURN with several records each, but when i send the same data with a Delphi program using the DCOM BAPI OCX I get no result. No error either.
    Any ideas what can be the problem?
    I'm testing this to replace an old program that uses the Transaction OCX to simulate a batch input, this method doesn't seem to work anymore in ECC 6.0.
    Thanks in advance, Gabriel
    PD: I have also tested it using the SAPRFC test script,  with the same results. EXTERNALRECORDS is OK but RETURN and COLLISIONRECORDS are empty
    Message was edited by:
            Gabriel Roman

    My bad, the problem seems to be with authorizations. I was testing the BAPI with a dialog user and the Delphi program was using a "system" user. Those two had different authorizations. I added RFC authorization to the dialog user and used it with the Delphi program and it works as expected, now to find the missing role.
    Bye, Gabriel

  • Sales Order Change BAPI Extension for Customer Fields

    Hello!
    I am working on customer field enhancement for BAPI_salesorder_change. The extensionin parameter has more than 1000 characters (fields in the structure BAPE_VBAP) and hence, the two fields that I added to VBAP (using append structure) are not getting the data.
    I have followed all the steps that was given in the documentation to fill extensionin like adding the fields to VBAPKOZ and BAPE_VBAP. This is the logic I have used to fill EXTENSIONIN:
    BAPE_VBAP-VBELN = P_order.
    BAPE_VBAP-POSNR = i_vbap-posnr.
    BAPE_VBAP-ZZSTART_DT = sy-datum.
    BAPE_VBAP-ZZdnload_DT = sy-datum.
    T_EXTEN-STRUCTURE = 'BAPE_VBAP'.
    *T_EXTEN+30 = BAPE_VBAP.
    T_EXTEN-valuepart1 = bape_vbap.
    T_EXTEN-valuepart2 = bape_vbap+240(240).
    T_EXTEN-valuepart3 = bape_vbap+480(240).
    T_EXTEN-valuepart4 = bape_vbap+720(240).
    APPEND T_EXTEN.
    Clear t_exten.
    BAPE_VBAPX-VBELN = P_order.
    BAPE_VBAPX-POSNR = i_vbap-posnr.
    BAPE_VBAPX-ZZSTART_DTX = 'X'.
    BAPE_VBAPX-ZZdnload_DTX = 'X'.
    T_EXTEN-STRUCTURE = 'BAPE_VBAPX'.
    T_EXTEN-valuepart1 = bape_vbapx.
    APPEND T_EXTEN.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = p_order
    order_header_inx = ORDER_HEADERX
    tables
    return = T_RETURN
    *ORDER_ITEM_IN = T_LINE
    *ORDER_ITEM_INX = T_LINEX
    EXTENSIONIN = T_EXTEN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    I guess there is 960 character limitation for BAPIPAREX structure but I would like to know if there is a way to work around it.
    Thanks to all for your time.

    Found BAPI myself...... BAPI_SALESORDER_CHANGE

  • IS/M BAPI EXTENSION

    Hi,
    I need to create a bp updating some custom fields I have created in an append structure to table JGTBP00.
    I'm using BAPIBUSISM007_CREATEFROMDATA but I cannot map corresponding fields in input structure.
    I've tried using EXTENSION_IN, but it requires to implement BADI ISM_BP_BAPI that doesn't contain my custom fields in output structure.
    Is there any other way to achieve it?
    Regards,
           Filomena

    Yes. All M Audio interfaces work very well with Macs running Lion and Logic Pro 9. It all just depends on what specs you're looking for in an interface. Assuming the FireWire solo meeting your demands in terms of sample rate, bit depth, and ins and outs, go for it!!
    Cheers,
    Electrik

Maybe you are looking for

  • BeX Analyzer Aggregation - display line item and header amounts in same row

    Hi Experts, I've a requirement in which I'm looking for help. Consider that I've one DSO with line item detail and I wish to display on a report for each line item (in the same row) the value of the header which has to be the sum of all line items fo

  • How do Print TXT file in JAVA...?

    Dear sir, i have a program for printing txt file.... i tried below program.. 1. This code executed without exception... but its not printing.... when i saw print buffer, file is add but not printing 2. Please help me out.... or give me some clue....

  • Flash learning interaction and Course Builder extensions for CC products?

    Hi all, Could anyone advise me where I could get extension Flash learning interaction for Flash CC and Course Builder for Dreamweaver CC? Sometimes their use and after stopping the development of eLearning Suite I anywhere on the Adobe site found the

  • Combine Sales Orders into one invoice.

    05.11.2008 Hi friends, My invoices are order related. When I try to combine Sales Orders they are split because of different Assignment No., Reference No., Different Partners, Division and Payment Reference. The Sales Orders have same Payer, Payment

  • Lenovo Win7 PC G550 Veriface issues

    I have a problem with the veriface login system in low light. It cannot get good enough resolution to recognise me. Is there a simple solution fir this or do I need to simply turn off Veriface?