Update EKKO table for the custom field through BAPI

Hi Experts,
I need to create an Custom field in EKKO table through Include Structure.
Now I have to update that custom field in my program.
I have gone through the following but could not solve my question.
Update EKKO table
User Exit for ME21 PO Creation at the time of saving--Urgent
I don't need to update when I hit the save button or any thing
I have the PO's which needs to be updated with that field...
Any suggestions would be greatly helpful.
Thanks,
Chaithanya...
<removed_by_moderator>
Edited by: Julius Bussche on Jul 7, 2008 10:47 PM

Hi Patrick,
Sorry Patrick you are right.. The structure is at header level.
I have made the changes still I could not achieve it.
I have made the following
In EKKO table I have append the structure with a custom field ZZBUY.
Now I have also appended BAPI_TE_MEPOHEADER and BAPI_TE_MEPOHEADERX with the custom field
ZZBUY.
Here is my program
Data: wa_bapi_poheader  type BAPIMEPOHEADER,
         wa_bapi_poheaderx type BAPIMEPOHEADERX.
Data: it1_bapi_poheader  like BAPI_TE_MEPOHEADER,
         it1_bapi_poheaderx like BAPI_TE_MEPOHEADERX.
CALL FUNCTION 'BAPI_PO_GETDETAIL1'
  EXPORTING
    PURCHASEORDER            = wa_DATA-ebeln
*   ACCOUNT_ASSIGNMENT       = ' '
*   ITEM_TEXT                = ' '
*   HEADER_TEXT              = ' '
*   DELIVERY_ADDRESS         = ' '
*   VERSION                  = ' '
*   SERVICES                 = ' '
  IMPORTING
    POHEADER                 = wa_bapi_poheader
*    POEXPIMPHEADER           =
  TABLES
    RETURN                   = it_bapireturn
it1_bapi_poheader-ZZBUY = 'X'.
it1_bapi_poheaderx-ZZBUY = 'X'.
it_extensionin-structure = 'BAPI_TE_MEPOHEADER'.
it_extensionin-valuepart1 = it1_bapi_poheader.
append it_extensionin.
Clear  it_extensionin.
it_extensionin-structure = 'BAPI_TE_MEPOHEADERX'.
it_extensionin-valuepart1 = it1_bapi_poheaderx.
append it_extensionin.
Clear  it_extensionin.
   CALL FUNCTION 'BAPI_PO_CHANGE'
     EXPORTING
       PURCHASEORDER                = wa_data-ebeln
       POHEADER                     = wa_bapi_poheader
       POHEADERX                    = wa_bapi_poheaderx
*      POADDRVENDOR                 =
*      TESTRUN                      =
*      MEMORY_UNCOMPLETE            =
*      MEMORY_COMPLETE              =
*      POEXPIMPHEADER               =
*      POEXPIMPHEADERX              =
*      VERSIONS                     =
*      NO_MESSAGING                 =
*      NO_MESSAGE_REQ               =
*      NO_AUTHORITY                 =
*      NO_PRICE_FROM_PO             =
*    IMPORTING
*      EXPHEADER                    =
*      EXPPOEXPIMPHEADER            =
     TABLES
       RETURN                       = it_bapireturn
*      POITEM                       =
*      POITEMX                      =
*      POADDRDELIVERY               =
*      POSCHEDULE                   =
*      POSCHEDULEX                  =
*      POACCOUNT                    =
*      POACCOUNTPROFITSEGMENT       =
*      POACCOUNTX                   =
*      POCONDHEADER                 =
*      POCONDHEADERX                =
*      POCOND                       =
*      POCONDX                      =
*      POLIMITS                     =
*      POCONTRACTLIMITS             =
*      POSERVICES                   =
*      POSRVACCESSVALUES            =
*      POSERVICESTEXT               =
       EXTENSIONIN                  = it_extensionin
*      EXTENSIONOUT                 =
*      POEXPIMPITEM                 =
*      POEXPIMPITEMX                =
*      POTEXTHEADER                 =
*      POTEXTITEM                   =
*      ALLVERSIONS                  =
*      POPARTNER                    =
*      POCOMPONENTS                 =
*      POCOMPONENTSX                =
*      POSHIPPING                   =
*      POSHIPPINGX                  =
*      POSHIPPINGEXP                =
*      POHISTORY                    =
*      POHISTORY_TOTALS             =
*      POCONFIRMATION               =
It gives me messages saying that
Please also populate interface parameter POHEADERX
No data changed
Where am I going wrong..
Waiting for your replies....
Thanks,
Chaitanya

Similar Messages

  • What to know the master table for the following fields

    I want to know the master table for the following fields.
    Company code ( BUKRS )
    Chart of depreciation ( AFAPL)
    Main Asset Number  (ANLN1)
    Asset Sub Number ( ANLN2 )
    Asset Class ( ANLKL )

    hi,
    1) t001 (<b>for assets T093C</b>)
    2) t096
    3 and 4) anla
    5) anka
    rgds Andreas
    Message was edited by:
            Andreas Mann

  • How long does it take for the custom field created in SFDC to show up in the field mapping list?

    How long does it take for the custom field created in SFDC to show up in the field mapping list? I hit the refresh field button, but it is not showing up after 5 min. Do I just need to have patience? 

    Hi,
    What do you have to do to the field in SFDC to make it accessible so that it shows up in the Eloqua field mapping area as a field to be mapped?   

  • How to chage the display name in SC browser for the custome fields?

    Hi,
    I created 2 custom fields for Shopping cart in SRM. How to chage the display name in SC browser for this custome fields?
    Thanks
    Kevin

    Hi Kevin,
    when you have defined your customer fields, you have created new fields in the CUF structures. The labels displayed on the SC screen come from the data element you have assigned to those cust fields in the include structure.
    If you have used a std data element, then you can change its translation (attention, this will impact all structures, tables... abap objects using this data element).
    If you have created a Z data element, then adapt its description accordingly.
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • Tables for the following fields

    what are the tables for the fields cartonization,intro month,supply end month,delete month and non-colloboration.All are from MM.

    hI,
    Go to table DD03T.
    See the Contents of the Table(CtrlShiftF10)
    In DDTEXT give Your Field Description
    Like totalAmount*
    Then Press F8.
    You will get all the fields related to it.
    Regards
    Sandipan

  • How to add F4 help for the custom field of a custom table

    Hi All,
    How to add F4 help to the custom table field? in the table maintainance when user clicks on F4 i want to provide possible values for this field I am trying to write the code in the screen of table maintainace like the following
    PROCESS ON VALUE-REQUEST.
      FIELD ZTEST_MAH_F4-KUNNR MODULE zVALUE_kunnr .
    But when i am double clicking on module it's giving options to create include program but after that it's giving user is currently editing the table i am not getting this can some body clarify my doubt it's gr8 if some body give some examp code
    Thanks&Regards
    mahesh

    Hi,
    Create a subroutine under the event and call the following FM
    1. Select all the related data into an itab, for ex i_kunnr
    2.    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
        DDIC_STRUCTURE         = ' '
           retfield               = 'KUNNR'
        PVALKEY                = ' '
           dynpprog               = sy-repid
           dynpnr                 = '1000'
           dynprofield            = <selection screen field>
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
           value_org              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
          TABLES
           value_tab              = <b>i_kunnr</b>
        FIELD_TAB              =
           return_tab             = < return table >
        DYNPFLD_MAPPING        =
         EXCEPTIONS
           parameter_error        = 1
           no_values_found        = 2
           OTHERS                 = 3

  • F4 Help For the Custom Fields

    Hi Experts
    I have added few custom fields in custom includes (INCL_EEW* )  
    Those fields are like (LAND1, BLAND) from the T005S.
    I have used the same Data element for these fields.
    But I didnu2019t get any F4 help for these fields in the screen?
    These fields having the Value table for these elements?
    Do I need to do anything, to get the F4 help for these fields?
    Can anybody suggest me?
    Thank you,
    Bharathi

    Hi Baarti,
    Go through the following links,
    F4 help and drop down menu to Customer fields in Manage business partner
    Supplier Relationship Management (SAP SRM)
    Re: F4 for customer table fields
    Hope this helps.
    Thanks,
    Pradeep

  • Table for the enhanced fields

    Hi Experts,
    i enhanced the the data source 0FI_AP_4 with the four fields BUSAB,MWSKZ,TXJCD,FWSTE
    now i need to write code in CMOD to populate these fields in to RSA3, but i dont know from which tables these fields will get populated........
    can you please give me the tables from which these fields will get populated
    BUSAB - Accounting clerck - Table ?
    MWSKZ - Tax code - Table ?
    TXJCD - Jurisdiction code - Table ?
    FWSTE - Tax amount - Table ?
    Thank you

    Hi,
    You can follow the various approach to identify the table to populate the fields.
    1. Use Tcode SE11 and go to where used list to find desired table from the list of table.
    2. Use FI trasnsaction code to check FI document in R/3 (If you are not sure which code to be used please take the help of functional consultant) and press F1 -> go to technical help -> and you can find the proper FIELD/TABLE relationship.
    Dev

  • Required Table for the following fields.

    Hi All,
    I am searching for a table which containing the following all fields can anybody help me if you know
    Cost centre: KOSTL,
    Activity Type: LSTAR
    Fixed Activity Price in the transaction KP27.

    Cost centre: KOSTL,  table is CSKS
    Activity Type: LSTAR table is  CSLA,
    further if u want
    se11->datatype-> enter ur field name -> click where used list button (3rdbutton from left)-> check table fields-> press enter...
    Ramesh.

  • SRM Portal - Search help for a custom field

    Hi,
    I have added a custom field to the SRM Portal (5.0) shopping cart, by adding the field to structures INCL_EEW_PD_ITEM_CSF INCL_EEW_PD_ITEM_CSF_SC.
    However, I need to filter the search help for that custom field, based on values & relationships stored in a Z table.
    Is this possible? How? Please help.
    Thank You.

    Currently, my idea would be to create a search help for the custom field & filter the values in a search help exit. However, would I be able to get other field values (standard) from SRM into my search help exit?

  • BSP: F4 Help For a custom field...

    Hi All,
    I need to display search help for a custom field in one of my custom view.
    Search Help for the custom field is already implemented.. but how can i use it in BSP View!.
    In the standard CRM_IC application i couldn't find any similar search help scenario, coz it is calling some standard methods like ShowF4KeyAndValueHelp3,
    ICWCShowF4HelpExtern by passing the structure and field name!.
    I think these standard methods will work only with the fields which have value help table at the data element level. As the custom field that i m using does not have any value help i cant go for this method i guess!.
    Any Help/Hint?..
    Thank You,
    sudeep v d.

    Hello Sudeep,
    Here are some more helpful links .Please refer them .
    Re: Inputfield value for a tableView from a help window
    /people/thomas.jung3/blog/2005/08/22/bsp-value-input-help-popups-version-30
    F4 help using javascript
    Please let me know the feedback.
    Warm Regards,
    Rakesh Kumar Verma

  • How to update the Customer field value of PO Item under the Delivery Address Tab?

    Hi Friends,
         i tried to update the Customer field Using Bapi_PO_change.I passed the PO Order no,POADDRDELIVERY data with Item no,Adrees no,Customer no.But i am getting no data changed message from return table.I attached the screen shots.So please suggest me the helpful information for resoving this issue.
    Thanks,
    Dinesh

    Thank you friends,
                My Problem was resolved.In my case i have passed the customer value in BAPI_PO_CHANGE POITEM Table with updated customer value.
    Thanks,
    Dinesh

  • Wht r the standard tables for vendor customer and sales order report/

    Hi wht r the standard tables for vendor and customer reports and is how in normal we cannot use them for vendor reporting and etc ?

    Hi
    Customer is related to Sales Module
    So for a customer we fetch the reports of Sales orders , Deliveries and Billing doc's
    CUstomer and Vendor related tables with important fields:
    KNA1: Customer Master-General(KUNNR,NAME1,LAND1)
    KNB1: Customer Master(Company Code)(KUNNR,BUKRS,PERNR)
    KNC1: Customer Master Data (Transaction Figures)(KUNNR,BUKRS,GJAHR)
    KNVK: Customer Master Contact Partner(PARNR,KUNNR,NAME1)
    KNVV: Customer Master sales data(KUNNR,VKORG,VTWEG,KDGRP)
    KNBK: Customer Bank Details(KUNNR,BANKS,BANKL,BANKN)
    KNVH: Customer Hierarchy (HITYP,KUNNR,VKORG,VTWEG,SPART)
    KNVP: Customer Master Partner Functions(KUNNR,PARVW,KUNN2)
    KNVS: Customer Shipment data(KUNNR,VSTEL,TRANS)
    KNVI: Customer Tax data(KUNNR,ALAND,TATYP)
    LFA1: Vendor Master-General (LIFNR,NAME1,ORT01)
    LFB1: Vendor Master(Company Code)(LIFNR,BUKRS,PERNR)
    LFC1: Vendor Master (Transaction Figures)(LIFNR,BUKRS,GJAHR)
    Sales related Tables for a customer
    VBAK: Sales Document(Header Data) (VBELN, KUNNR)
    VBAP: Sales Document(Item Data) (VBELN,POSNR,MATNR,ARKTX,CHARG)
          Enquiry, Quotation, Sales Order are differentiated based on Doc.
          Type(VBTYP field) in VBAK,VBAP Tables( for Enquiry VBTYP = A,
          for Quotation 'B' & for Order it is 'C'.)
    LIKP: Delivery Table (Header Data)(VBELN,LFART,KUNNR,WADAT,INCO1)
    LIPS: Delivery Table (Item Data)(VBELN,POSNR,WERKS,LGORT,MATNR,VGBEL)
          (LIPS-VGBEL = VBAK-VBELN, LIPS-VGPOS = VBAP-POSNR)
    VTTK: Shipment Table (Header Data)(TKNUM)
    VTTP: Shipment Table (Item Data)( TKNUM,TPNUM,VBELN)
          (VTTP-VBELN = LIKP-VBELN)
    VTFA: Shipping Document Flow(TKNUM,VBELV,VBELN)
    VTPA: Shipping Partners data(VBELN,PARVW,KUNNR,PERNR)
    VTTS: Stages in Shipment(TKNUM,TSNUM,TSTYP)
    VTSP: Transport Stage/Shipment Item Allocation(TKNUM,TSNUM,TPNUM)
    VEKP: Handling Unit: Header(Packing)(VENUM,VSTEL)
    VEPO: Handling Unit: Item (Packing)(VENUM,VEPOS,VBELN)
    VBRK: Billing Table(Header Data)(VBELN,FKART,BELNR)
    VBRP: Billing Table(Item Data)(VBELN,POSNR,FKIMG,NETWR,VGBEL,VGPOS)
          (VBRP-AUBEL = VBAK-VBELN, VBRP-VGBEL = LIKP-VBELN)
          Apart from these tables there are lot of other tables which starts with
          ‘V’, but we use the following tables frequently.
    VBUK: All Sales Documents status & Admn. Data(Header)(VBELN,VBTYP)
          VBTYP= ‘C’(Sales Order) VBTYP=’J’(Delivery) VBTYP=’M’(Invoice) 
    VBUP: Sales Documents status & Admn. Data(Item)(VBELN,POSNR)
    VBEP: Sales Doc. Schedule Lines Data(VBELN,POSNR,EDATU,WMENG)
    VBKD: To get sales related Business data like Payment terms etc.(VBELN,ZTERM)
    VBFA: sales document flow data(VBELV,VBELN,POSNV,VBTYP)
    VBPA: Partner functions Data(VBELN,PARVW,KUNNR,LIFNR)
    VEDA: Contract Data(VBELN,VPOSN)
    VEDAPO: Contract Data(VBELN,VPOSN)
    Vendor related MM tables
    EBAN-- Pur.Reqn. Data (BANFN,BNFPO,BADAT,MATNR)
    EBKN-- Purchase Requisition Account Assignment(BANFN,BNFPO,VBELN)
    EINA—- Purchase Info.Record (General Data)(INFNR,MATNR,LIFNR)
    EINE-- Purchase Info.Record (Pur.Orgn Data )(INFNR,EKORG)
    ELBK-- Vendor Evaluation Header Data(LIFNR,EKORG,KLASS)
    EKKO-- Purchase Order Data (Header)(EBELN,BSTYP,BSART)
    EKPO-- Purchase Order Data (Item)(EBELN,EBELP,MATNR)
           RFQ and PO are differentiated by Doc Type(BSTYP)in EKKO table.
           For RFQ it is ‘A’ and for PO it is ‘F’.
    MKPF-- GRN Data (Header) (EBELN,BLDAT,BUDAT,XBLNR,BKTXT)
    MSEG-- GRN Data (Item)(MBLNR,BWART,LIFNR,MATNR,EBELN)
           Apart from this there are lot of tables which begin with 'M'& 'E', but we
           use the following very often.
    EKBE--PO History Data (EBELN,EBELP,BELNR,BLDAT,MATNR,VGABE)
    EKBZ--PO History with delivery Costs(EBELN,BELNR,LIFNR,XBLNR)
    EKET--Schedule lines data of a PO (EBELN,EINDT,SLFDT)
    EKES--Vendor Confirmations Data(EBELN,EBTYP,EINDT,XBLNR)
    Reward points if useful
    Regards
    Anji

  • R/3 tables for the fields of  0fi_gl_40

    How to find the r/3 tables for the fields of the datasource 0FI_GL_40.For example this datasource has ANLN1(Asset),ANLN2(Asset Subnumber) and AUFNR(Order)
    fields.Is there any tcode or table that gives the r/3 tables for the the fields of the above datasource?

    Sometimes the help really does provide the information
    http://help.sap.com/saphelp_nw70/helpdata/EN/88/3c36861f874739a916df63ab6d7ca0/content.htm

  • Field name and table name for the value field

    hi,
        i requred the  value field  for  which the quantity that is not delivered in purchase order, so please tell  me which field i have to go for the value field.
    thanks and regards.

    Hi,
    There is no direct field to get the PO Open qty(undelivered Qty).
    Take the PO quantity for each Item from EKPO-MENGE.
    For each PO Item there will be multiple GR(good's receipts) 's in MSEG table.
    So pass EBELN and EBELP for MSEG table and Take all the GR Quantities(ERFMG) field and sum up .(have to take care of the Movement type also, becasue there will be some returns and GI's).
    Substract the GR qty from PO qty you will get the UNDELIVERED QTY of A PO.
    Regards,
    Anji

Maybe you are looking for

  • Sharepoint 2013 Active Directory Import- Manager field not updating

    Hi,   SharePoint 2013 Active directory import  -Manager field not updating Concern/Issue-  We are using SharePoint and configured the Active Directory Import .First import it seems everything is working fine and OOB Organization chart  built using Us

  • How can I plott data from a text file in the same way as a media player using the pointer slide to go back and fort in my file?

    I would like to plott data from a text file in the same way as a media player does from a video file. I'm not sure how to create the pointer slide function. The vi could look something like the attached jpg. Please, can some one help me? Martin Attac

  • Acrobat Pro V8 problem with rotating PDFs

    I have CS3 suite with Acrobat Pro V8.1.2 running on OSX 10.5.4. I rotate PDFs for our printer (photographic Lightjet430 laser printer using postershop) it saves time, and it also makes things easier for us in general. Now I sometimes rip the PDFs int

  • Burn cd and DVD

    Hi everybody I am new in mac world. I have got and Powermac and mac osx tiger installed and Ilife 05. As I dont know to much about mac. I would like to know how to burn cds and dvds on mac. Is there any special burn software build in the mac osx tige

  • Never had problems until today

    Windows Vista 32bit Internet Explorer 7.0 Flash Player 10.1 In the past I would install the flash player and it worked fine (only trouble I ever had.. everytime I restarted my computer I would have to uninstall and re-install the flash player)..but n