E1EDK03 01

Hi,
  In my purchase order i Have a delivery data, the  Delivery date is supposed to populate in the segment E1EDK03 01.
  But it is not populating.
   what has to be done.

Delivery date will be at item level,so it will not come into E1EDK03
So please check at Segment E1EDP03
Thanks
Seshu

Similar Messages

  • How to populate E1EDK03 (Qualifier -002) on Idoc type INVOIC02?

    I am trying to issue  EDI  output from invoice. Its outbound idoc.The Idoc type is "INVOIC02". Function module is "IDOC_OUTPUT_INVOIC" The idoc does not have  -Requested delivery date  under the E1EDK03  (002) segment .The sales order has the requested delivery date.Do i need to write an user exit ?Please suggest me how to get this?
    Thank you in advance

    hello,
    yes you have to write code in user exit...
    function module / exit module EXIT_SAPLVEDF_002 is suitable for this....
    Thanks.

  • Target Field Mapping E1EDK03

    Hi Mapping Gurus,
    my scenario is flat file (fixed length) to IDoc (inbound)
    Source Structure is
    - Recordset (1..unbounded)
         -- POHeader (1.1)
              --- Date1
              --- Date2
    I need to map the Date1 and Date2 fields to 2 occurrences of E1EDK03 segment each having different qualifiers
    Target Field:
    IDOC (1..unbounded)
    E1EDK03
    --IDDAT ("022")    --> Date1
    E1EDK03
    --IDDAT ("002")   ---> Date2
    How can I achieve this using graphical mapping only?
    I searched the forums and i'm still a little confused with context handling, so kindly help me out

    I need to map the Date1 and Date2 fields to 2 occurrences of E1EDK03 segment each having different qualifiers
    IDOC (1..unbounded)
    E1EDK03
    --IDDAT ("022") --> Date1
    E1EDK03
    --IDDAT ("002") ---> Date2
    You may even need to implement a if-logic to map Date1 to 022 and Date2 to 002.

  • XML Error: Only segments are allowed on top level,found non-segment E1EDK03

    Hi,
    I have a problem in my senario of receiving XML files with a Business Connector (4.7), adding some data to certain segments and elements, do some mapping steps and then convert the XML file to SAP IDoc. Then the IDoc should be send to R/3 system via ALE.
    The senario works so far, if I test it with the "Send XML file.." option in the menu "Test" of the Business Connectior itself.
    If I try to send the XML data as string in my browser the following error always occurs:
    $localizedError:
    com.wm.lang.xml.WMDocumentException: Invalid IDocXML document: Only segments are allowed on top level, found non-segment E1EDK03
    $errorType:
    com.wm.util.coder.InvalidDatatypeException
    If I send send a string containing the XML data incl. the data I actually wanted to add in a flow step, it works.
    Can anybody help me?
    Thanks,
    Kai
    Message was edited by: Kai Lerch-Baier

    I had been using MC Internet Explorer until this . Have compared this one to functioning XML viewable with MS Internet explorer. Below is code I am using trying to resolve this problem.
    <?xml version="1.0"?>
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="ecrtas"/>
    <tt:template>
    <tt:loop ref="ecrtas">
    <ImportInstructions>
    <ProjectSponsorInstruction>
      <Instruction mode="Add">
       <SponsorName tt:value-ref="SPONME"/>
       <SponsorNumber>
         <IdValue name="Sponsor Number"><tt:value ref="SPONSOR"/></IdValue>
         </SponsorNumber>
        <SponsorType tt:value-ref="SPONTYP"/>
      </Instruction>
    </ProjectSponsorInstruction>
    </ImportInstructions>
    </tt:loop>
    </tt:template>
    </tt:transform>
    Thank you again

  • E1EDK03 ORDRSP IDOC_OUTPUT_ORDRSP

    Hello Experts,
    I have a quote with valid to date and I've been wanting to copy that date into e1edk03 013 segment in ORDRSP message type. The idoc type is ORDERS02 and the fm is IDOC_OUTPUT_ORDRSP.  Your expertise to adding E1EDK03 013 in the ORDRSP is greatly appreciated.
    Sean

    Hi Sean,
    You can use user exits EXIT_SAPLVEDC_003 to append the quotation date (supplier).
    You can code something like this.
    data: wa_edidd   like edidd,
           wa_e1edk03 like e1edk03.
    loop at dint_edidd.
       if dint_edidd-segnam = 'E1EDK03'.
         move dint_edidd-sdata to wa_e1edk03.
         if wa_e1edk03-iddat = '013'.
           exit.
         else.
           clear wa_edidd.    
           clear wa_e1edk03.
           move dint_edidd to wa_edidd.
           wa_e1edk03-iddat = '013'.
    <b>       wa_e1edk03-datum = <quotation date> </b> 
           move wa_e1edk03 to wa_edidd-sdata.
           append wa_edidd-sdata to dint_edidd.
         endif.
       endif.
    endloop.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Need to pull DATUM & UZEIT of Structure E1EDK03

    Hi Experts,
    In SAP Standard Structure E1EDK03, there are fields DATUM and UZEIT which gives ISA (internet sales) date and time. I need to pull this data to BI. I do not know from which table I have to collect that data. The structure does not give any data. Can anyone guide me?
    With Kind Regards,
    Shreeem

    Hi Shreem,
    You can find all these thing in SE11,
    first find out the field name for EDI date.
    now give this field name in SE11(in data element field)
    click on where used list(3rd icon from left on top)
    in the next screen select "data base tables" and press enter you will get all the tables which has EDI date as field
    Regards,
    Venkatesh

  • Delivery not before date and Delivery not after date

    Hi Everyone,
    Can anyone help me in this issue, we need to map "delivery not before date" and "delivery not after date" from an EDI 850 into a sales order.
    Are there any fields to which we can map the data? if not would anyone suggest how to go about it?
    Thanks,
    Michelle.

    Michelle,
    We have a similar requirement, albeit we call it a Delivery Window. We have implemented this by mapping two E1EDK03 qualifiers (we use 033 & 034) to two Z fields extended to VBAK, which we then include in our Sales Order Delivery Date logic.
    Not very elegant, but then my understanding is that SAP has no concept of the Delivery Window.
    Cheers, Paul.

  • How to create additional Line in file based on condition available as part of ZINVOIC02 Idoc segment

    Scenario Details:
    Receiving Zinvoic02 Idoc in PI. Idoc to file translation creates comma separated file with .csv extn
    The logic was kept in such a way that how many E1EDP01 (items) are available in IDoc that many no of records will be created in csv file.
    The file logic for some the fields is as below:
    No of records
    InvNumber
    InvDate
    CusNumber
    LineitemDesc
    Tax1Type
    Tax1%
    for 1st E1EDP01
    E1EDK01-BELNR
    E1EDK03-DATUM
    E1EDK01-PARTN
    Populate when E1EDP04/MSKWZ=O2 or O4 with E1EDP19/KTEXT
    Hardcode when E1EDP04/MSKWZ=O2 or O4
    Sum all E1EDP04 /MSATZ when E1EDP04/MSKWZ=O2 or O4
    for 2nd E1EDP01
    E1EDK01-BELNR
    E1EDK01-DATUM
    E1EDK01-PARTN
    same as above
    same as above
    same as above
    for 3rd E1EDP01
    E1EDK01-BELNR
    E1EDK03-DATUM
    E1EDK01-PARTN
    same as above
    same as above
    same as above
    Additional Line to be created when one or more of E1EDP01 is having E1EDP04/MSKWZ = O3
    same as above
    same as above
    same as above
    Hardcode "REIM for USE TAX"
    Hardcode ""
    Hardcode ""
    Now we have got addition requirement to add a new lineitem when tax code is equal to O3 for any of the E1EDP01.
    Is it possible to create additional lineitem based on condition. If yes, please share what should be the approach.
    How we can create the additional lineitem?
    Currently we are using E1EDP01 to do context handling.
    The target structure is :
    MT_FILE
         INVOICE     0..unbounded
              InvNumber     0..1
              InvDate          0..1
              CusNumber     0..1
              LineitemDesc     0..1
              Tax1Type          0..1
              Tax1%               0..1

    Hello,
    Please add one extra field in the data structure of the target mapping and let its occurrence be 0..unbounded under the root node 'MT_ADP_Invoice'.
    Apply the condition, if tax code MSKWZ (with its context changed to E1EDP01) equalsS to '03', then map it to the newly created target field whose occurrence is 0..unbounded.
    This will then create an additional field which is your requirement.
    The above is one way.
    But if you want to have the same target field name as ADP_File appended for tax field being '03'.
    Then in that case you can you two message mapping for one common operational mapping / interface.
    In the first message mapping you need to have one target data structure created with the source data structure remaining the same as the one shown by you in scrn shot. Now this target data structure will be similar to the source, except that you need to add one more field at the end(name different from other fields) in target (whose occurrence should be 0..unbounded), and it needs to be mapped to E1EDP01 provided the tax code field MSKWZ(its context changed to E1EDP01) equalsS to constant '03'.
    In the second message mapping you need to map the target structure of previous message mapping to the actual required structure. The newly added field should be mapped to ADP_File of your final target structure.
    This will then create the same structure as required.
    Note : Please change the occurence of ADP_File to 0..unbounded.
    Regards,
    Souvik

  • Creating Sales order With Respect To Purchase Order

    Hi Friends,
         Requirement is that in source system for exp Company A
    creating Purchase order now with respect to this purchase order...
    In Target System.for Exp Company B Sales Order Should be created.................
    For this in Source system........i m using message type orders
    when i m creating Purchase Order Idoc Successfully send to reciever......but in reciever idoc coming with error(sales organization,dist channel not found for customer 1000).......
    sales order not getting created automatically..............
    and customer 1000 is automatically coming i dont know how....?
    pls tell me what is the necessary configuration required for vendor,customer.....in source and destination side.....?

    DIDC   1500000000000032795700 03        1A000000001KUS004
          E1EDK01                         INR   1.00000                                                               ZPOR0000600764
          E1EDK14                     0141000
          E1EDK14                     01410
          E1EDK14                     00900
          E1EDK14                     013ZPOR
          E1EDK14                     0111000
          E1EDK03                     01220080122
          E1EDK03                     01120080122
          E1EDKA1                     AG S004
          E1EDKA1                     LF 0006000023
          E1EDKA1                     WE                  D001             Food Park - Kalamboli
          E1EDK02                     0010000600764                               20080122190024
          E1EDP01                     00010 0010 50.000         EA 50.000         EA        5              1         250
              E1EDP20                     50.000         0.000          20080126
              E1EDP19                     001000000000006000006                 ,hjurv Godrej Eazy wash1(curt change)
              E1EDP19                     0031234567891012
          E1EDS01                     002250               INR
    this is my segment detail i u told i hv created see bold char

  • Creating sales order using IDOC - Delivery hour

    Hi,
    i've a problem to solve. when creating a sales order i need that when the segment is E1EDK03 and the IDDAT is 002 i need to extract the delivery hour and insert it in the table vbak-vzeit, now what i'm doing in the exit EXIT_SAPLVEDA_001 is:
    DATA: hour LIKE vbak-vzeit.
    CHECK segment-segnam = 'E1EDK03'.
    IF segment-sdata(3) = '002'.
      hour = segment-sdata+11(6).
    ENDIF.
    and now i want to acess the value in hour in the exit EXIT_SAPLVEDA_002 to put it in the dxvbak struct tha i think that is the table correct to then internaly fill the vbak. the problem is that the variable hour is not available in the exit EXIT_SAPLVEDA_002. i do i do to pass the value that i want from the exit EXIT_SAPLVEDA_001  to be available in exit EXIT_SAPLVEDA_002  and then insert that value in the right place to fill vbak.

    Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved.
    Please let me know if u can help me, i wanted to do it using idoc
    Regards
    Sanju

  • Reg : IDOC data mapping

    Hi All,
    Which is the function module which Extracts the data from the application document ( Sales order or quotes ) and populates to the SAP message type Idoc segments.
    what are the SAP table involved in doing this mapping.
    Thanks & Regards.
    vijay

    Unfortunately the mapping is not in any table but in the source code as extracted here:
    e1cuins-class_type        cuins-class_type
    e1cuins-inst_id           cuins-inst_id
    e1cuins-obj_key           cuins-obj_key
    e1cuins-obj_txt           cuins-obj_txt
    e1cuins-obj_type          cuins-obj_type
    e1cuins-quantity          cuins-quantity
    e1cuprt-class_type        cuprt-class_type
    e1cuprt-inst_id           cuprt-inst_id
    e1cuprt-obj_key           cuprt-obj_key
    e1cuprt-obj_type          cuprt-obj_type
    e1cuprt-parent_id         cuprt-parent_id
    e1cuprt-part_of_no        cuprt-part_of_no
    e1cuval-author            cuval-author
    e1cuval-charc             cuval-charc
    e1cuval-charc_txt         cuval-charc_txt
    e1cuval-inst_id           cuval-inst_id
    e1cuval-value             cuval-value
    e1cuval-value_txt         cuval-value_txt
    e1edk01-autlf             xvbak-autlf
    e1edk01-belnr             ekko-ebeln
    e1edk01-bsart             ekko-bsart
    e1edk01-curcy             iso_waers
    e1edk01-kzabs             pekko-kzabs
    e1edk01-kzazu             xvbkd-kzazu
    e1edk01-lifsk             xvbak-lifsk
    e1edk01-recipnt_no        ekko-lifnr
    e1edk01-vsart             xvbak-vsbed
    e1edk01-zterm             ekko-zterm
    e1edk02-belnr             ekko-angnr
    e1edk02-belnr             ekko-ebeln
    e1edk02-belnr             ekko-konnr
    e1edk02-belnr             ekko-submi
    e1edk02-belnr             pekko-labnr
    e1edk02-datum             ekko-bedat
    e1edk02-uzeit             sy-uzeit
    e1edk03-datum             ekko-angdt
    e1edk03-datum             ekko-bedat
    e1edk03-datum             ekko-bnddt
    e1edk03-datum             ekko-bwbdt
    e1edk03-datum             ekko-ihran
    e1edk03-datum             ekko-kdatb
    e1edk03-datum             ekko-kdate
    e1edk03-datum             pekko-eindt
    e1edk03-datum             sy-datlo
    e1edk14-orgid             ekko-bsart
    e1edk14-orgid             ekko-bukrs
    e1edk14-orgid             ekko-ekgrp
    e1edk14-orgid             ekko-ekorg
    e1edk17-lkond             ekko-inco1
    e1edk17-lkond             xvbkd-inco1
    e1edk17-lktext            ekko-inco2
    e1edk17-lktext            xvbkd-inco2
    e1edk18-prznt             ekko-zbd1p
    e1edk18-prznt             ekko-zbd2p
    e1edk18-tage              ekko-zbd1t
    e1edk18-tage              ekko-zbd2t
    e1edk18-tage              ekko-zbd3t
    e1edka1-bname             ekko-verkf
    e1edka1-bname             t024-eknam
    e1edka1-ihrez             ekko-ihrez
    e1edka1-ihrez             ekko-unsez
    e1edka1-ilnnr             h_iln_vendor
    e1edka1-lifnr             h_pekko_werks
    e1edka1-lifnr             pekko-werks
    e1edka1-orgtx             t024e-ekotx
    e1edka1-pagru             ekko-ekgrp
    e1edka1-paorg             ekko-ekorg
    e1edka1-partn             ekko-lifnr
    e1edka1-partn             ekko-logsy
    e1edka1-partn             lfa1-lifnr
    e1edka1-partn             lfb1-eikto
    e1edka1-partn             pekko-kunnr
    e1edka1-partn             t000-logsys
    e1edka1-partn             xvbpa_we-kunnr
    e1edka1-parvw             'EZ'
    e1edka1-parvw             h_parvw
    e1edka1-parvw             'LF'
    e1edka1-parvw             'WE'
    e1edka1-spras             ekko-spras
    e1edka1-telf1             ekko-telf1
    e1edka1-telf1             t024-ektel
    e1edka1-telfx             t024-telfx
    e1edkd1-ekgrp             ekko-ekgrp
    e1edkd1-ekorg             ekko-ekorg
    e1edkp1-defpa             xekpa-defpa
    e1edkp1-ekorg             xekpa-ekorg
    e1edkp1-lifn2             xekpa-lifn2
    e1edkp1-ltsnr             xekpa-ltsnr
    e1edkp1-parvw             xekpa-parvw
    e1edkp1-werks             xekpa-werks
    e1edkt1-tdid              xt166a_del-tdid
    e1edkt1-tdid              xt166k_del-tdid
    e1edkt1-tsspras           ekko-spras
    e1edp01-abftz             ekpo-abftz
    e1edp01-antlf             xvbap-antlf
    e1edp01-bmng2             ekpo-ktmng
    e1edp01-bmng2             ekpo-menge
    e1edp01-bpumn             ekpo-bpumn
    e1edp01-bpumz             ekpo-bpumz
    e1edp01-brgew             e1edp01-menge*ekpo-brgew
    e1edp01-evers             ekpo-evers
    e1edp01-gewei             ekpo-gewei
    e1edp01-kzabs             ekpo-kzabs
    e1edp01-lgort             ekpo-lgort
    e1edp01-matkl             ekpo-matkl
    e1edp01-matnr             ekpo-matnr
    e1edp01-menee             ekpo-meins
    e1edp01-menge             ekpo-ktmng
    e1edp01-menge             ekpo-menge
    e1edp01-netwr             ekpo-netwr*cur_factor
    e1edp01-ntgew             e1edp01-menge*ekpo-ntgew
    e1edp01-peinh             ekpo-peinh
    e1edp01-pmene             ekpo-bprme
    e1edp01-posex             ekpo-ebelp
    e1edp01-posguid           xvbap-posguid
    e1edp01-pstyp             ekpo-pstyp
    e1edp01-uepos             ekpo-uebpo
    e1edp01-vprei             ekpo-netpr*cur_factor
    e1edp01-werks             ekpo-werks
    e1edp02-belnr             ekpo-aktnr
    e1edp02-belnr             ekpo-konnr
    e1edp02-belnr             ekpo-labnr
    e1edp02-belnr             h_xvbkd-bstkd_e
    e1edp02-belnr             xvbap-werks_ext
    e1edp02-belnr             xvbkd-bstkd_e
    e1edp02-bsark             h_xvbkd-bsark_e
    e1edp02-bsark             xvbkd-bsark_e
    e1edp02-ihrez             h_xvbkd-ihrez_e
    e1edp02-ihrez             xvbkd-ihrez_e
    e1edp02-zeile             ekpo-ktpnr
    e1edp02-zeile             h_xvbkd-posex_e
    e1edp02-zeile             xvbkd-posex_e
    e1edp03-datum             ekpo-abdat
    e1edp03-datum             ekpo-agdat
    e1edp17-lkond             ekpo-inco1
    e1edp17-lkond             xvbkd-inco1
    e1edp17-lktext            ekpo-inco2
    e1edp17-lktext            xvbkd-inco2
    e1edp19-idtnr             ekpo-ematn
    e1edp19-idtnr             ekpo-idnlf
    e1edp19-idtnr             ekpo-matnr
    e1edp19-ktext             ekpo-txz01
    e1edp20-ameng             xeket-ameng
    e1edp20-ameng             xeket-wemng
    e1edp20-edatu             xeket-eindt
    e1edp20-ezeit             xeket-uzeit
    e1edp20-wmeng             xeket-menge
    e1edpa1-partn             ekpo-kunnr
    e1edpa1-partn             xvbpa_we-kunnr
    e1edpd1-bednr             xekpo-bednr
    e1edpd1-bstae             xekpo-bstae
    e1edpd1-insmk             xekpo-insmk
    e1edpd1-knttp             xekpo-knttp
    e1edpd1-kzabs             xekpo-kzabs
    e1edpd1-labnr             xekpo-labnr
    e1edpd1-lgort             xekpo-lgort
    e1edpd1-mahn1             xekpo-mahn1
    e1edpd1-mahn2             xekpo-mahn2
    e1edpd1-mahn3             xekpo-mahn3
    e1edpd1-mwskz             xekpo-mwskz
    e1edpd1-prsdr             xekpo-prsdr
    e1edpd1-schpr             xekpo-schpr
    e1edpd1-spinf             xekpo-spinf
    e1edpd1-uebtk             xekpo-uebtk
    e1edpd1-uebto             xekpo-uebto
    e1edpd1-untto             xekpo-untto
    e1edpd1-webre             xekpo-webre
    e1edpd1-werks             xekpo-werks
    e1edpt1-tdid              xt166p_del-tdid
    e1edpt1-tsspras           ekko-spras
    e1eds01-summe             ekko-ktwrt*cur_factor
    e1eds01-summe             pekko-netwr*cur_factor
    e1eds01-sunit             iso_waers
    Whenever you have qualifiers, the segments appear multiple with diefferent fields.
    Regards,
    Clemens

  • Mapping Queries

    Hi All,
    I have the following mapping queries.
    Can you please help me?
    1.I have the following requirement wherein the same field is supposed to be mapped more than once
    ORDERS05/ZORDERS05/E1EDK03[QUALF == "012"]
    ORDERS05/ZORDERS05/E1EDK03[QUALF == "002"]
    Similarly many other fields are supposed to be mapped with the different constants again and again
    Can I do it by duplicating the target fields?
    2.I have a mapping requirement such that I need to map the source with the target with removing leading zeroes?
    Do I need to use any node function for it?
    3.I have a mapping requirement such that I need to to map the one source and one target with the first occurrecnce of the
    source,similarly I need to map the other source with the other target with the second occurrecnce of the source field.How can I do it?
    4.I have a requirement to " Use look up in value table   with tag  concatenated
    SCP|Header|<<root element>/DocumentHeader/MessageSubject"
    Along with that one condition is also mentioned which is"Do not map the segment when no entry found in the value table".
    How to imlement this condition along with the value mapping?
    5.I have a mapping requirement wherein it is mentioned that for every Target element create context.Also, the condition is mentioned as "Do not map this segment when no entry found in the value mapping table".How can I do it?
    Can you please help me?
    Thanks in advance.
    Edited by: Shweta Kullkarni on Jun 17, 2010 8:42 AM

    Hi,
    >> 1.I have the following requirement wherein the same field is supposed to be mapped more than once
    ORDERS05/ZORDERS05/E1EDK03QUALF == "012"
    ORDERS05/ZORDERS05/E1EDK03QUALF == "002"
    Similarly many other fields are supposed to be mapped with the different constants again and again
    Can I do it by duplicating the target fields?
    Sol : Yes you can acheive it by using duplicate.
    >> 2.I have a mapping requirement such that I need to map the source with the target with removing leading zeroes?
         Do I need to use any node function for it?
    Sol : Use FormatNumber function and pass Number Format Parameter as 0 (zero) and mapped this in between Source and Target Field.
    OR use the following UDF,
    String input;
    try
    input =String.valueOf( Integer.parseInt(a[0]));
    result.addValue(input);
    catch(Exception e)
      try
    result.addValue(a[0]);
    catch(Exception ne)
    >> 4.I have a requirement to " Use look up in value table with tag concatenated
    SCP|Header|<<root element>/DocumentHeader/MessageSubject"
    Along with that one condition is also mentioned which is"Do not map the segment when no entry found in the value table".
    How to imlement this condition along with the value mapping?
    Sol: Refer: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
    Regards,
    Abid

  • RFC to IDOCs

    Hi Experts,
    I have a scenario for RFC -- XI -- IDOC
    In my XI dev. system already i have imported RFC and IDOC's
    I have 2 Custom IDOC's
    First IDOC is for Create
    Second IDOC is for Change/Delete
    Based on the condition i should select either one of the above IDOCs.
    So, How many Message Mappings shall i need to create or
    If i import both IDOCs at Receiver side and can i do the Mapping.
    Awaiting for your response and Reward points for helpful answers...
    Thanks & Regards,
    Ramana Kumar. A

    Thanks Varun,
    based on the condition here,
    field1 map with E1EDK03 (field: IDDAT) and the description here is, Fixed value = 001  set up in connection with the next field.
    Here i map constant 001 to E1EDK03 node
    Is this correct?
    Next Field here is DATUM and the desc. here is If  = `1´ then map date from field1 else if `blank`
    field2 map with E1EDK03 (field: IDDAT) and the description here is, Fixed value = 002  set up in connection with the next field.
    Here i map constant 002 to E1EDK03 node
    Is this correct?
    Next Field here is DATUM and the desc. here is If  = `1´ then map date from field2 else if `blank`
    Regards,
    Ramana.

  • Purchase order date posting problems

    Hi all,
    I have done an interface to post purchase/ sales order into sap. ive populated fields correctly into the segments and executed the fm. its posting all the data except the purchase order date in the header. i dont know why its doing dat. the field is populated into the segments and i can see it. but its not getting reflected in the order created .. can somebody help me with this. ive used date segment e1edk03 qualifier 22 field is iddat.
    thanks,
    kishore.

    Hi,
    Im using orders 05.. FM idoc_input_orders
    Create Document header date segment - E1EDK03
    *. I.e. set header level required delivery date
      e1edk03-iddat = c_edi_iddat_002.
      e1edk03-datum = date_required.  "Set the date required
      PERFORM add_segment USING c_segnam_e1edk03 e1edk03.
    Header Level Customer purchase order date
      e1edk03-iddat = c_edi_iddat_022.  " default value 22.
      e1edk03-datum = cust_po_date.
      PERFORM add_segment USING c_segnam_e1edk03 e1edk03.
    Header Level Pricing Date
      e1edk03-iddat = c_edi_iddat_023.
      e1edk03-datum = pricing_date.
      PERFORM add_segment USING c_segnam_e1edk03 e1edk03.
    Wat i could observe from fm idoc_input_orders fm , fm is not posting in the purchase order date for identifier 22.. u can have a look at it if u want.. include LVEDAF5W
    is there any way to post this date plz
    thanks

  • Idoc related issues

    Hi
    We have designed an alv report that will display idoc details for FINSTA01 idoc.
    On clicking release button on the alv output.
    I have to work on the following requirement.
    "Map FINSTA01 to PEXR2001 to create idoc. Show the report with new idoc no and old idoc no"
    Is there any function module to map the above idocs? How we will do that. Please give me details.After mapping how can I generate a new PEXR2001 idoc programmatically.
    Regards,
    Sucheta.

    Hi
    I have used the following code for this functionality. Please suggest where I am wrong.
    CALL FUNCTION 'IDOC_READ_COMPLETELY'           "To read the segments of finst01 idoc
      EXPORTING
        DOCUMENT_NUMBER                = tb_output-idoc
    IMPORTING
       IDOC_CONTROL                   = wa_edidc
      NUMBER_OF_DATA_RECORDS         =
      NUMBER_OF_STATUS_RECORDS       =
    TABLES
      INT_EDIDS                      =
       INT_EDIDD                      = tb_edidd
    EXCEPTIONS
       DOCUMENT_NOT_EXIST             = 1
       DOCUMENT_NUMBER_INVALID        = 2
       OTHERS                         = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
         * Get data from the Idoc segments
    data: wa_edidd like line of tb_edidd.
    data: wa_Z1EXNA12 type Z1EXNA12, wa_Z1EXNA13 type Z1EXNA13, wa_Z1EXNA14 type Z1EXNA14,
          wa_Z1EXNA15 type Z1EXNA15, wa_Z1EXNA16 type Z1EXNA16, wa_E1IDKU1 type E1IDKU1,
          wa_E1EDK03 type E1EDK03, wa_E1EDK02 type E1EDK02,
          WA_E1IDT01 type E1IDT01 , wa_E1IDB02 type E1IDB02, wa_E1EDKA1 type E1EDKA1,
          wa_E1IDPU1 type E1IDPU1 , wa_E1IDKU7 type E1IDKU7.
          LOOP AT tb_edidd INTO wa_edidd.
            CASE wa_edidd-segnam.
              WHEN 'E1IDKU1'.
              wa_E1IDKU1 = wa_edidd-sdata.
              WHEN 'E1EDK03'.
              wa_E1EDK03 = wa_edidd-sdata.
              WHEN 'E1EDK02'.
              wa_E1EDK02 = wa_edidd-sdata.
              WHEN 'E1IDT01'.
              wa_E1IDT01 = wa_edidd-sdata.
              WHEN 'E1IDB02'.
              wa_E1IDB02 = wa_edidd-sdata.
              WHEN 'E1EDKA1'.
              wa_E1EDKA1 = wa_edidd-sdata.
              WHEN 'E1IDPU1'.
              wa_E1IDPU1 = wa_edidd-sdata.
              WHEN 'E1IDKU7'.
              wa_E1IDKU7 = wa_edidd-sdata.
              WHEN 'Z1EXNA12'.
              wa_Z1EXNA12 = wa_edidd-sdata.
              when 'Z1EXNA13'.
              wa_Z1EXNA13 = wa_edidd-sdata.
              when 'Z1EXNA14'.
              wa_Z1EXNA14 = wa_edidd-sdata.
              when 'Z1EXNA15'.
              wa_Z1EXNA15 = wa_edidd-sdata.
              when 'Z1EXNA16'.
              wa_Z1EXNA16 = wa_edidd-sdata.
            endcase.
            clear wa_edidd.
          endloop.
          data: tb_idoc_contrl type standard table of edidc with header line,
                tb_idoc_data type standard table of edidd with header line,
                tb_idoc_status type standard table of BDIDOCSTAT with header line,
                tb_ret_var type standard table of BDWFRETVAR with header line,
                tb_serial_info type standard table of BDI_SER with header line.
           clear wa_edidd.
          loop at tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'E1IDKU1'.
           wa_E1IDKU1-BGMTYP = 'PEX'.
           wa_E1IDKU1-BGMNAME = 'REMADV'.
           tb_idoc_data-sdata = wa_E1IDKU1.
           append tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'E1EDK03'.
           tb_idoc_data-sdata = wa_E1EDK03.
           append tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'E1EDK02'.
           tb_idoc_data-sdata = wa_E1EDK02.
           append tb_idoc_data.
         tb_idoc_data-DOCNUM = wa_edidc-docnum.
          tb_idoc_data-segnam = 'E1IDK02'.
          tb_idoc_data-E1IDK02 = wa_E1IDK02.
          append tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'E1IDT01'.
           tb_idoc_data-sdata = wa_E1IDT01.
           append tb_idoc_data.
            tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'E1IDB02'.
           tb_idoc_data-sdata = wa_E1IDB02.
           append tb_idoc_data.
          tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'E1EDKA1'.
           tb_idoc_data-sdata = wa_E1EDKA1.
           append tb_idoc_data.
            tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'E1IDPU1'.
           wa_E1IDPU1-DOCNAME = 'PEX'.
           tb_idoc_data-sdata = wa_E1IDPU1.
           append tb_idoc_data.
          tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'E1IDKU7'.
           tb_idoc_data-sdata = wa_E1IDKU7.
           append tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'Z1EXNA12'.
           tb_idoc_data-sdata = wa_Z1EXNA12.
           append tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'Z1EXNA13'.
            tb_idoc_data-sdata = wa_Z1EXNA13.
            append tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'Z1EXNA14'.
            tb_idoc_data-sdata = wa_Z1EXNA14.
            append tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'Z1EXNA15'.
            tb_idoc_data-sdata = wa_Z1EXNA15.
            append tb_idoc_data.
           tb_idoc_data-DOCNUM = wa_edidc-docnum.
           tb_idoc_data-segnam = 'Z1EXNA16'.
            tb_idoc_data-sdata = wa_Z1EXNA16.
           append tb_idoc_data.
          endloop.
          move wa_edidc to tb_idoc_contrl.
           wa_edidc-DOCTYP = 'PEXR2NA1'.
           wa_edidc-MESTYP = 'REMADV'.
           wa_edidc-IDOCTP = 'PEXR2002'.
           wa_edidc-cimtyp = 'PEXR2NA1'.
    DATA: W_DOCNUM TYPE EDIDC-DOCNUM.
           CALL FUNCTION 'IDOC_WRITE_AND_START_INBOUND'
             EXPORTING
               I_EDIDC                             = WA_EDIDC
             DO_COMMIT                           = 'X'
            IMPORTING
              DOCNUM                              = W_DOCNUM
             ERROR_BEFORE_CALL_APPLICATION       =
             TABLES
               I_EDIDD                             = TB_IDOC_DATA
           EXCEPTIONS
             IDOC_NOT_SAVED                      = 1
             OTHERS                              = 2
           IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
    data: tb_status type table of  BDIDOCSTAT with header line.
    append wa_edidc to tb_idoc_contrl.
    CALL FUNCTION 'IDOC_INPUT_REMADV'
      EXPORTING
        INPUT_METHOD                = 'A'
        MASS_PROCESSING             = ' '
    IMPORTING
      WORKFLOW_RESULT             =
      APPLICATION_VARIABLE        =
      IN_UPDATE_TASK              =
      CALL_TRANSACTION_DONE       =
      TABLES
        IDOC_CONTRL                 =  tb_idoc_contrl
        IDOC_DATA                   = TB_IDOC_DATA
        IDOC_STATUS                 = tb_idoc_status
        RETURN_VARIABLES            = tb_ret_var
        SERIALIZATION_INFO          = tb_serial_info
    EXCEPTIONS
      WRONG_FUNCTION_CALLED       = 1
      OTHERS                      = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
         endif.
    The problem is tb_ret_var is returning nothing. When I am testing the newly generated idoc w_docnum of 'IDOC_WRITE_AND_START_INBOUND' fm in we19 it is generating a new idoc no. But the status of that idoc is 56. I am not getting the payment advice no.
    Please suggest what to do next
    regards
    Sucheta

Maybe you are looking for

  • [solved] bumblebee - can't use NVIDIA

    hi I can't find anything helpfull about this error. johannes@arch-laptop ~ % optirun steam [ 1074.176912] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 753 does not belong to any known session [ 10

  • How do I expand the partitioned protion of my hard drive further for windows?

    My name is Ryan, I have and am running Windows 7 on my Mac, I went through bootcamp and partitioned 20GB from my Hard drive. I need to add a minimum of 10GB and a max of 20GB to the partitioned Windows portion. I have more than enough memory on my ma

  • Blackberry Desktop for Mac Is Not Complete - Still Have to Use PC Version Sometimes

    Blackberry Desktop for Mac is incomplete in this way - if your OS gets wiped out (as it wants to do upon initial install, as it tries to update your BB OS) - and if it gets hung in the process - as happened to me - then the ONLY way to fix is to go B

  • Oracle listener password

    Hi, I have set password for listener in 9i database (9.2.0.8). Password is prompted during stopping the listener but not during starting the listener. Below are the steps followed to set password for the listener, LSNRCTL>set cur LIST_TESTDB LSNRCTL>

  • ITunes user ID

    So I'm having some problems with my user ID and I am hoping someone can help. Okay so it started off with my current email as my apple ID then one of my friends asked me hey whats your apple ID so I can de-authorize you from my computer and I was a l