Update EKKO Z field using Inbound Idoc

I have an requirement where  I have to update Z field in EKKO while creating PO using inbound Idoc.
Basic Idoc Type: PORDC103
Function module: BAPI_PO_CREATE1
Extended POHEADER and EKKO with z field.
I am using exit EXIT_SAPL2012_001 to populate Z field while creating PO as below.
poheader-zfield = '123'.
extensionin-structure =  'Z_HEADER'.
extensionin-valuepart1 =  '123'.
APPEND extensionin.
PO is getting created but z fields is not populated. Do i need to add any thing else apart from the above steps?.
Any help appreciated.

Rajitha,
Add your Z field in structure BAPI_TE_MEPOHEADER and a corresponding flag in BAPI_TE_MEPOHEADERX.
extensionin-structure = 'TE_MEPOHEADER'.
extensionin-valuepart1 = '__________123'                      "'10 spaces than value for the field'.  
APPEND extensionin.
extensionin-structure = 'TE_MEPOHEADERX'.
extensionin-valuepart1 = '__________X'                      "'10 spaces than X.  
APPEND extensionin.
You don't need to implement/use any exit for filling the custom fields.
Regards,
Diwakar

Similar Messages

  • Passing Changed  extended fields using ALE-IDOC to receiving system

    Hi all,
    Please tell me how passing changed  extended fields using ALE-IDOC to receiving system can be achieved. Is it possible by Chnage pointer concept.Do i need to do some coading after data enters into receiving system as it is required while creating the entries in database table.
    For ex. in matmas05 extended for classification and inspection view and then created using 'CREATION'
    related bapi.Do i also need to incorporate the changes by change related bapi or ir can be handled by change pointer concept.
    Thanks.

    Hi Sanu
    1) Please tell me how passing changed extended fields using ALE-IDOC to receiving system can be achieved. Is it possible by Chnage pointer concept.
    => Looks like you have extended standard IDOC here. so you need to find User Exit or BADI for the Push program to populate the additional fields. Yes, it is possible thru change pointers as well.
    1) Do i need to do some coading after data enters into receiving system as it is required while creating the entries in database table.
    => Yes, as suggested in 1 try finding User Exits/BADIs.
    Regards
    Shital

  • Purchase Order triggering Sales Order using Inbound Idocs

    Hi All,
    Can any one explain the flow of Purchase Order triggering Sales Order using Inbound Idocs..??
    Thanks & Regards
    Anoop

    Use search tool to find sample like Integrating MM & SD Modules in Same Client to Create Sales order in Supplying Company Code Using PO raised in Receiving Company Code By I-Doc Message Type ORDERS Part1,  Part 2 and Part 3.
    Regards,
    Raymond

  • Issues during Contract creation using Inbound IDOC BLAORD03

    Dear Experts,
    We need to create Contract using Inbound IDOC BLAORD03.
    I am facing following issues and need some one's help ASAP.
    (1) Contract is generated without  Header Texts and Item Texts through IDOC BLAORD03 .
    (2) Not able to create CONTRACT for service masters using Inbound IDOC BLAORD03.
    Is there any body who has implemented this scenario and able to guide ?
    Looking forward to help ASAP.
    Thanks in Advance,
    Best Regards,
    Mitesh Desai
    [email protected]

    Hi All,
    I am also facing the same issue. I am trying to upload service outline agreements thru LSMW using  idoc basiv type BLAORD03 ( FM->IDOC_INPUT_BLAORD).
    Immediate help highly appreciated.
    Thanks & Regards,
    Vijender

  • I can create material using inbound Idoc of type MATMAS01, but not MATMAS05

    I can create material using inbound Idoc of type MATMAS01 in WE19, but MATMAS05 failed. In fact I used same data ( different material number), and same inbound function, but got different result.
    What is different between MATMAS01 and MATMAS05? Is there some configuation need for MATMAS05?
    My system is ECC5.0. Thanks.

    Hi, nagaraj
    this is inbound IDoc, not outbound IDoc, so we can't assign Basic type in WE20, only can assign Message type.
    In WE82, there are 5 records about Messagetype MATMAS:
         Message type   Basic type     Release
          MATMAS         MATMAS01        30A
          MATMAS         MATMAS02        30D
          MATMAS         MATMAS03        40A
          MATMAS         MATMAS04        46C
          MATMAS         MATMAS05        470
       I think it should be ok.
    In WE57, there 2 records are exist:
       FM_name                 BasicType       MessageType
      IDOC_INPUT_MATMAS01       MATMAS01         MATMAS
      IDOC_INPUT_MATMAS01       MATMAS05         MATMAS
    so I think all configurations should be ok.
    Message was edited by:
            liu bin

  • GR posting using inbound Idoc against Outbound delivery

    Hi,
    We are doing SAP ISR integration with third party POS and there we have a scanario where we have to post GR against outbound delivery using inbound Idoc. Can anybody help me out, how can we do it.
    In SAP processing would happen using MIGO against outbound delivery number and movement type 101. We tried the same with Idoc WMMBXY message type but not suceed.
    Looking for positive reply.
    Regards
    Vikrant pathak

    Hi,
    You can never do a GR against an outbound delivery, but where as you can do a GR against PO with reference to corresponding sales order with special stock indicator.
    That means when the GR is done the goods what ever you have received is going to be blocked against the corresponding sales order and when you do the outbound delivery against the sales order stock is already available and the goods issue will happen smoothly without any errors.
    We have implemented the same in my earlier project.
    Thanks,
    Mahesh.

  • How to Create a Return Order wrt a Standard Order using Inbound IDOC Orders

    HI,
    We have a scenario :
    Standard Order - is exiting in System with 2 line items :
    Item 10
    Qty 20
    Item 20
    Qty 30
    Is it possible create a Return Order With Reference to this standard order for Line Item 20 only using inbound IDOC Orders?
    If yes what should be the mapping in the IDOC about the Standard Order, Item and QTY ?
    Regards
    Anurag

    hi,
    try using this bapi.
    /AFS/BAPI_SALESORD_CREATEFDATA.
    thanks,
    satish

  • Create credit memo request using inbound IDOC

    Hi Experts,
    I want to create credit memo request using inbound IDOC, currently I am using GSVERF03 basic type and process code GSVE, I am getting below error:
    No records exist in T661W for vendor XXXXX, plant, unloading point
    Anyone suggest me is this correct message type to create credit memo request or suggest me the correct one. because we are working with customer sales order and invoice not with vendor purchase order.
    Thanks for your help.

    ah, apologies i read outbound! I think you are using the correct message type i.e. GSVERF.
    Can you not simply create the missing entry in T661W? i.e. for the missing records?

  • Payment Terms wrongly getting updated using Inbound Idoc

    Hi All,
    I have a inbound IDOC which creates new invoice evrery time it gets triggered. In the function module attached with that IDOC there is a logic written to fetch the payment terms from the vendor master LFB1. System should display that Payment terms in tcode MIR4 (Display Invoice) as per the logic written in the IDOC FM. But, It is displaying wrong payment terms.
    Select single ZTERM
    into v_zterm
    from lfb1
    where lifnr = p_lifnr.
    I have checked while debugging my logic fetches the correct payment terms (20NM) but the same is not getting updated in MIR4 . wrong value (42 Net days ) geting updated. Please suggest what needs to be done to correct this.
    Thanks,
    VB

    Vikas,
    Your quesion can be bit more clear. What is that 42 days..?? To my guess based on your payment terms due date might be calculated and kept as 42 days. If you can tell us about 42 days then someone can help you.
    Regards
    Venkat

  • Using Inbound IDOC from Java system creation of Outbound delivery

    Dear Experts,
    The scenario we are having is really very interesting. Hopefully its a good learning for me and also for others also.
    The scenario is,
    After sales order creation the details will be sent to one Non SAP system (Java) for performing some tasks related to forwarding agent decision, shipping date and etc. Once the details are finalized in that Java system then, the details needs to be transferred to SAP as "Inbound IDOC" process. For this proposed to use the SAP Jco middle ware.
    Once the details transfered from Java system to SAP then, the outbound IDOC needs to get generated automatically. Assuming the stock for that sales order line item is available. Also one more complexity is, our client is using custom transaction (ZVl10C) for delivery creation.
    Now Query is,
    1. Which IDOC, message type and Functional module needs to be used for creating the delivery automatically..??
    2. As per assumption, stock of that sales order line item should be available. Due to some business reason the stock was removed during inbound IDOC transfer then, what will happen to the IDOC..?. How to avoid this situation..??
    3. As we told we are re going to use SAP Jco b/w SAP & Java system. In this case, how the data will get transfered from Java system to SAP..?
    Thanks in advance for the replies I am going to get
    Regards,
    VEL

    Thanks for the feedback. This question is resolved

  • Material Master: Update the Z fields using BAPI

    Hi to all,
    My requirement is simple. But I do not have much knowledge on BAPI. I have got some information that we can extend th BAPI and update the Z fields in material master. I have added the z fields in MARA. So when I call the bapi z fields has to get update.
    Which BAPI can i use? I have got one BAPI - BAPI_MATERIAL_SAVEDATA.   plz suggest me to do it.
    1. how do i enhance the BAPI or extend th BAPI.
    2. Is ther any approch to do it.
    thnks
    Yerukala Setty

    Hi,
    Append the z fields to BAPI_TE_MARA and BAPI_TE_MARAX structures using append structures.
    Populate two structures for the fields in BAPI_TE_MARA and BAPI_TE_MARAX.
    To BAPI_MATERIAL_SAVEDATA, under EXTENSIONIN parameters, pass structure name as BAPI_TE_MARA and Value Part1, 2, 3, 4 with the filled structure info.
    Similarly append X structure as well.
    Regards,
    Ganga

  • Update User Defined Field using DBDataSource

    Hi All,
    I'm trying to update the user defined field using the DBDataSource object.  However an error occurred - "Item is not a User-Defined Field".
    The code used is as follows:
    Dim oDS as SAPbouiCOM.DBDataSource
    Dim oForm as SAPbouiCOM.Form
    Set oForm = SBO_Application.Forms.GetForm("139", 1)
    Set oDS = oForm.DataSources.DBDataSources.Item("ORDR")
    oDS.SetValue("U_Field1",oDS.Offset,"abc")
    Please help.

    If you haven´t put the field directly in the standard form the user defined fields are in a different form. This form has the same type but with "-" before it.
    So so should use this code to get the user defined fields form:
    Set oForm = SBO_Application.Forms.GetForm("-139", 1)
    Maybe this can be the cause

  • Dynamic updates in dropdown field using presentation

    My requirement is as follows:
    1)     Combination of text box & dropdown in the presentation.
    2)     Dropdown is dependent on the text box.
    3)     If user will enter the two characters in the text box then automatically drop down will be fill the list of the string(s) starting with entered 2 characters.
    Ex:
    In side text box I entered “GO”.
    In the drop down it should populated with list of cities start with “GO”.
    Please let me know if any one having the solution satisfying above requirement.
    With Best Regards,
    Ratna Prasad,

    Hi,
    <div class="jive-quote"><span class="jive-quote-header">user11180317 wrote:
    I enter any text in the textbox and according to that i execute the query which is in the dynamic method of the referenced data of the drop down but nothing happens.So i called another method on change invoke having the refreshvalidvalues command then also nothing happened.</div>
    A few ideas when testing this.
    1. Double check your textbox that is supposed to update the attribute shown in the dropdown. Look at the textbox's Properties and verify that there is an "On change invoke" method associated with the field.
    2. Open the method referenced in the first step. The method should have the logic:
    logMessage "refreshing valid values" using severity = DEBUG
    refreshValidValues("theNameOfTheAttributeInTheDropdown")A common problem is when you leave the double quotes out of this logic (e.g. refreshValidValues(theNameOfTheAttributeInTheDropdown) will not work)
    3. Double check the attribute that you want to update dynamically. In the above step, the attribute's name is "theNameOfTheAttributeInTheDropdown". Open this attribute now and verify that in the Valid Values section for the attribute - there is a Dynamic method invoked that updates the permitted values for this attribute (and therefore the values shown in the dropdown).
    4. Open the method that updates the attribute's valid values dynamically (method found in step 3) and add a logMessage statement at the top like:
    logMessage "Entry - valid values update for attribute theNameOfTheAttributeInTheDropdown" using severity = DEBUGAfter the valid values have been retrieved, show this list using another logMessage statement in this method.
    5. Run the screenflow again from the WorkSpace and verify that dropdown is getting populated. If not - check the log file for the point of failure.
    Hope this helps,
    Dan

  • Update a date field using execute immediate statement..

    I need to update a date field dynamically .
    Below is the code I have written for the same..
    EXECUTE IMMEDIATE
    'UPDATE Temp_Emp ' ||
    ' SET ' || V_Fieldname || ' = ' || D_Value ||
    'WHERE Emp_Id = ' || 8447;
    I am getting the following error..
    ORA-00904: "AUG": invalid identifier
    Pls anyone have any ideas..
    Thanks,
    Xyz

    put D_Value in single quotes like this
    EXECUTE IMMEDIATE
    'UPDATE Temp_Emp ' ||
    ' SET ' || V_Fieldname || ' = ''' || D_Value ||''' WHERE Emp_Id = ' || 8447;

  • Creation of IS OIL TD Shipment using Inbound IDOC Processing?

    HI Expert,
    We are on IS OIL 4.72E version . As part of once of our requirement we need to process inbound shipment IDOC from SCM system and create the TD Shipment document in R/3 ..
    Delivery is already created in R/3 ; In SCM assginement of vehicle is done and IDOC is transferred to R/3.
    I want to know how to process this inbound shipment IDOC ; for creating only TD shipment not the delivery as it is already exist.. what is the process code and function module to be given in partner profile....
    Kindly explain me step by step if possible....
    Regards,
    Adityakumar Waghmode

    Hi,
    Function module field is used to define the path functionality of file generated.
    EDI_PATH_CREATE_CLIENT_DOCNUM is the recommned fucntion by SAP .
    Function is used to prevent unprocessed files being overwritten.Tihs function generates file directory path dynamically.
    Hope this helps.
    Thanks.
    Mark points if helpful.

Maybe you are looking for

  • Restrict access to a specific method in JSE

    Hello all, I'd like to know if there is a way to restrict access to a specific method in JSE. Basically, my intention is to do this: Subject.doAs(subject, new ProtectedMethod()); // only users with a specific role can access this method // (permissio

  • How to use mousedown applet function in swing?

    hai, i need to use the applet mousedown function in swing.. is there any way to use it or any other alternative is available for this? if can provide me a sample code.

  • Union in Query of Queries

    The attached code is an extract from a function I am writing, but is generating the following error... quote: All resulting columns of queries in a SELECT statement containing a UNION operator must have corresponding types. Columns with index number

  • EMF plug in

    i have downloaded eclipse 3.6.0 for java swing development i have also downloaded plug in GEF 3.6.2 and another plug in which i have to download which is EMF but iam not getting it please tell me site from which to download it

  • SRM  and XI Integration

    hi, can anyone provide me some good links,docs and blogs about SRM XI integration please. and what would be the scenarios with SRM integrations?I mean are they like SAP SRM -XI-R/3(or ECC) SAP SRM - XI----non SAP systems(i have read onb sdn SUS,EBS s