HELP ON IDOC

i am using basic idoc DELFOR02 and message type DELINS. i created a custom segment ZE1EDP16 under standard segment E2EDP16..i added a field called DNO in that custom segment.
value of this DNO is populated by EDI people. I need to pass that DNO value from ZE1EDP16 segment to field LIFEX in LIKP  and to KANBAN  TEXTS IN DELIVERY.
can anyone suggest how can i pass the value from this segment to likp-lifex.
idoc is inbound idoc.

hi ashish ..thanks for the reply i am new in abap..i found this exit     EXIT_SAPLVED4_002
following is the code i found in the include
could you to tell me in coding..how pass value of field DNO in segement ZE1EDP16  to LIKP-LIFEX and delivery kanban texts.
CONSTANTS: C_E1EDP16(7)     TYPE C VALUE 'E1EDP16',
           C_ZE1EDP16(8)    TYPE C VALUE 'ZE1EDP16',
           C_EXTENSION(14)  TYPE C VALUE 'ZEXTN_DELFOR02',
           C_ETDAT(11)      TYPE C VALUE 'RV45A-ETDAT',
           C_LIFSP(10)      TYPE C VALUE 'VBEP-LIFSP',
           C_4003(4)        TYPE C VALUE '4003',
           C_YES            TYPE C VALUE 'X'.
DATA: X_BDCDATA  TYPE BDCDATA,
      X_IDOCDATA TYPE EDIDD,
      X_E1EDP16  TYPE E1EDP16,
      X_ZE1EDP16 TYPE ZE1EDP16,
      L_DATFM    TYPE USR01-DATFM,
      L_INDEX     LIKE SY-TABIX,
      L_EDATUB    LIKE E1EDP16-EDATUB.
*To read the Control record to determine the extension
READ TABLE T_IDOC_CONTRL_1.
IF SY-SUBRC EQ 0.
*If it being executed for Extension ZEXTN_DELFOR02
  IF T_IDOC_CONTRL_1-CIMTYP = C_EXTENSION.
*To execute the code only when Screen 4003 starts
    READ TABLE T_BDCDATA WITH KEY DYNPRO = C_4003
                                DYNBEGIN = C_YES.
    IF SY-SUBRC EQ 0.
*Loop at all the E1EDP16 segments and read their respective child
*segment ZE1EDP16
      LOOP AT T_IDOC_DATA_1 WHERE SEGNAM = C_E1EDP16.
        X_E1EDP16 = T_IDOC_DATA_1-SDATA.
        READ TABLE T_IDOC_DATA_1 INTO X_IDOCDATA
                                 WITH KEY SEGNAM = C_ZE1EDP16
                                          PSGNUM = T_IDOC_DATA_1-SEGNUM.
        IF SY-SUBRC EQ 0.
*The Date format is changed to adapt to the date format in the BDCDATA
*The Date format in the IDoc segment is YYYYMMDD
          X_ZE1EDP16 = X_IDOCDATA-SDATA.
          CLEAR: L_EDATUB,
                 L_DATFM.
*To get the BDCDATA date format check the User Settings
          SELECT SINGLE DATFM
                   INTO L_DATFM
                   FROM USR01
                  WHERE BNAME EQ SY-UNAME.
          IF SY-SUBRC EQ 0.
            CASE L_DATFM.
              WHEN 1.  "DDMMYYYY
                MOVE: X_E1EDP16-EDATUB0(4) TO L_EDATUB4(4),
                      X_E1EDP16-EDATUB4(2) TO L_EDATUB2(2),
                      X_E1EDP16-EDATUB6(2) TO L_EDATUB0(2).
              WHEN 2.  "MMDDYYYY
                MOVE: X_E1EDP16-EDATUB0(4) TO L_EDATUB4(4),
                      X_E1EDP16-EDATUB4(2) TO L_EDATUB0(2),
                      X_E1EDP16-EDATUB6(2) TO L_EDATUB2(2).
              WHEN 3.  "MMDDYYYY
                MOVE: X_E1EDP16-EDATUB0(4) TO L_EDATUB4(4),
                      X_E1EDP16-EDATUB4(2) TO L_EDATUB0(2),
                      X_E1EDP16-EDATUB6(2) TO L_EDATUB2(2).
              WHEN 4.  "YYYYMMDD
                MOVE: X_E1EDP16-EDATUB TO L_EDATUB.
              WHEN 5.  "YYYYMMDD
                MOVE: X_E1EDP16-EDATUB TO L_EDATUB.
              WHEN 6.  "YYYYMMDD
                MOVE: X_E1EDP16-EDATUB TO L_EDATUB.
              WHEN OTHERS.
            ENDCASE.
          ENDIF.
*To Read the record in BDCDATA having the same Date
          READ TABLE T_BDCDATA INTO X_BDCDATA
                      WITH KEY FNAM+0(11) = C_ETDAT
                               FVAL       = L_EDATUB.
          IF SY-SUBRC EQ 0.
*Insert an entry in BDCDATA for populating the value for LIFSP
            CLEAR L_INDEX.
            L_INDEX = SY-TABIX + 1.
            X_BDCDATA-FNAM+0(11) = C_LIFSP.
            CONDENSE X_BDCDATA-FNAM NO-GAPS.
            X_BDCDATA-FVAL = X_ZE1EDP16-LIFSP.
            INSERT X_BDCDATA INTO T_BDCDATA INDEX L_INDEX.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDIF.
ENDIF.
DATA : L_TABIX    LIKE SY-TABIX,
       L_E1EDKA1  TYPE E1EDKA1.
CONSTANTS: C_4002(4)     TYPE C VALUE '4002',
           C_IHREZ(10)   TYPE C VALUE 'VBKD-IHREZ',
           C_E1EDKA1(7)  TYPE C VALUE 'E1EDKA1',
           C_AG(2)       TYPE C VALUE 'AG'.
READ TABLE T_BDCDATA WITH KEY DYNPRO = C_4002.
IF SY-SUBRC EQ 0.
  L_TABIX = SY-TABIX + 1 .
  READ TABLE T_BDCDATA WITH KEY FNAM = C_IHREZ.
  IF SY-SUBRC NE 0.
   READ TABLE T_IDOC_DATA_1 WITH KEY SEGNUM = C_000004.
    LOOP AT T_IDOC_DATA_1 WHERE SEGNAM = C_E1EDKA1.
      IF  T_IDOC_DATA_1-SDATA(2) EQ C_AG.
        L_E1EDKA1 = T_IDOC_DATA_1-SDATA.
        CLEAR X_BDCDATA .
        X_BDCDATA-FNAM = C_IHREZ.
        X_BDCDATA-FVAL = L_E1EDKA1-IHREZ.
        INSERT X_BDCDATA INTO T_BDCDATA INDEX L_TABIX.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.

Similar Messages

  • Tax with the help of idoc and EDI

    Dear gurus,
    how can we process tax data that is used between two systems through the help of IDOC and EdI? It would be great for ur kind support.

    Hi Amit,
         I do not understand how a non-sap system having an idoc adapte?
    Do you mean the non-sap system has the ability to understand the IDOC files?
    If yes, then your scenario is typically a IDOC-to File scenario.
    Read this:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
    If you do not intend to use XI in between, then you can just configure the outbound IDOCs in your SAP system and configure a file port in we21 transaction and create the partner profile in we20 transaction.
    Regards,
    Ravi

  • Help on IDOCS

    hello experts,
    i new to IDOC concepts, can any one explain me whats process code:
    function module:
    Basic type:
    T-code we41,we42, we02,we05,we19,bd10......
    if any one has good notes on IDOC plz fwd to [email protected]
    thanks
    deep

    Here`re the links
    http://www.seagullscientific.com/ftp/whitepapers/WhitePaper_ReadingSAPIDocs.pdf
    Help on IDOC
    Best book to <u><b>BUY</b></u> ..From where I have started learning IDOCS
    http://www.amazon.com/gp/product/0761519033/qid=1140740269/sr=1-8/ref=sr_1_8/104-4069859-9241526?s=books&v=glance&n=283155
    Pl Award the points and good luck !
    Thanks
    Message was edited by: Saquib Khan

  • Need help in Idoc--very urgent.

    Hi guys,
    i am working on an object where i need to post the data from legacy system to F-27 transaction using Idoc.i hv found two idocs input_idoc_fidcc1 and input_idoc_fidcc2 for posting the data..
    Can anyone help in finding the right idoc for triggering the f-27 transaction with the reason...
    coz both are perfoming almost the same functionalities...
    its very urgent guys..
    kindly help me full marks wud be given...
    regards
    Sahil

    Hi,
    The function module is related to post the idoc type FIDCPP01
    and posts the complete FI document. and as coming to second function module along with Tax you can post item wise with holding tax dataalso. So you choose the required function module based on the data you need to post. If you need not post with holding tax details dont fo for second function modules.
    Reward if find useful

  • Help in IDoc to File scenario

    Hi experts,
    I just created a scenario to export IDoc to File on a FTP server through XI server. I think I configured all the necessary things, such as in SLD, in sender(ECC) and receiver (XI server), and in IR, ID. But although it sends IDoc to Port OK in sender system, in the receiver system, I cannot see anything. Pls help to find out something I missed.
    Thanks in advance

    HI,
    SAP XI
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (IDX1)
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Load Meta Data for IDOC (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    SAP R/3
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    In SLD – System Landscape Directory
    TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.
    Ts for Third Party (Logical system):-
    BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.
    BS for Third Party (Logical system):-Enter the XI logical system name.
    In Transaction SALE
    Define and Assign the logical system name.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
    Troubleshooting File-to-IDOC Scenario in XI.                    
    Troubleshooting  File-to-IDOC Scenario in XI.                    
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098                                             
    Thanks,
    Madhu

  • Urgent help in IDOC .

    helo ,
    Please help me in this : How can i get data from the " Characteristics" for my IDOC segment fields ( the characteristics have been created with tcode CT04)..
    thanks,

    Hi
    Use the following BAPI or fun module to fetch the Characteristics and populate the segments
    BAPI's:
    BAPI_OBJCL_GETDETAIL
    or use the fun module:
    CLAF_CLASSIFICATION_OF_OBJECTS.
    reward points
    regards
    Anji

  • Need help on IDOC to file interface.

    Hi Folks,
    I am working on IDOC to file Interface. We are pushing 15 Idocs from SAP R/3 system to SAP PI. Idocs in R/3 system are in correct order. When it comes nto PI system IDOC order is diffrent.
    For Example :  I am sending 6 idocs 1000, 1001,1002,1003,1004,1005 from R/3 system. WHen these idocs coming into PI its order is changing so in PI system IDOCS order is 1000, 1004,1001,1005,1002.  But, I want IDOCS are should be same as R/3 system.
    For handling this issue, what are the necessary steps I need to follow in PI?
    Thanks,
    Enivass

    Hi Enivas,
    Check this link regarding serialing IDOC: http://help.sap.com/saphelp_nw04/helpdata/en/bd/277264c3ddd44ea429af5e7d2c6e69/content.htm
    http://www.saptechnical .com/Tutorials/ALE/Serialization/page1.htm
    Thanks,

  • Need help for IDOC inbound function module !

    Hi guys please help me to create a IDOC inbound function module.
    What are the parameters and tables.
    How to write the code.
    What it does.
    Please send me one inbound func module code if possuble
                                                                                  Thanks

    Hi,
    You need to create an inbound function module. Then define the process code in transaction we42 and attach the function module to this process code.
    In the function module you create you need to define tables of types EDIDC (Control record (IDoc)), EDIDD (Data record (IDoc)) and BDIDOCSTAT (ALE IDoc status (subset of all IDoc status fields)).
    Regards,
    Soumya.

  • Need Help on IDOC ACK

    Hi,
         i Have a doubt on ACK of IDOC.actually the scenario is file to IDOC.in this scenario we are posting PO's to SAP R/3 from a legacy system.after posting into SAP system we want to get an acknowledement back to the legacy system.for that ack which idoc type we'll use in the scenario IDOC to File?

    Hi Narayna
    Find the solution.
    This Feature is Available under SP 18 and we are on SP16
    http://help.sap.com/saphelp_nw04/helpdata/en/42/c8f66bc7a56bb0e10000000a1553f6/frameset.htm
    Check this document on handling IDOC acknowledgements. This might give you some pointers.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    nk
    http://help.sap.com/saphelp_nw04/helpdata/en/44/932e8896b610bbe10000000a422035/content.htm
    <b>Pls reward if useful</b>

  • Help on idoc (partner profile)

    Hi All
    I am facing a weired problem , I am creating Idoc i R3 system and sending it to XI , every thing works fine men suddenly the status of the idon remains 32 by the RSEOUT00 program .
    Then I delet the partner profile and creat it again and thnigs turn out to be fine again.
    What can be the problem , I can not go on deleting the partner profile each time  specially in he production system.
    any help is apreciated.
    Thanks.

    Hi malu,
    Make sure there is no other session remains open for triggering the IDOC (with same user id) when you are triggering the IDOC from R3. This could lock the IDOC and hence the it will be get stucked.
    Regards,
    Sarvesh

  • HELP Sending IDOC

    Hi,
    I want to send an IDOC but get the following error message:
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_WRONG_INTF</SAP:Code>
      <SAP:P1>MYSEND</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>IDoc Interface MYINTERFACE konnte nicht interpretiert werden</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Another thread says that the problem is that the Inbound interface doesn't match the namespace urn:sap-com:document:sap:idoc:messages
    and that it would be necessary to name the interfaces the same as the IDOC type (here: COND_A.COND_A02). From which software component can I import the namespace???
    Any help will be appreciated, kind regards,
    Heiko
    PS: Is there a blog about this topic?

    IDOC -> XI -> File ....
    Points to note ...
    1. you dont need a DT, MT or a message interface for the IDOC as it itself acts as the Messg. Interface.
    2. You import the IDOC and use the same in your mapping.
    3. in the configuration note that you dont have a sender agreement as you dont have a sender IDOC adapter.
    ~~ ShabZ ~~
    Opps just noted that you need to sent an IDOC from XI (File to IDOC)
    Anyway in this case,
    points 1 and 2 will remain, but the 3 will not. you will need a sender agreement for the file and a receiver agreement for the IDOC.
    IDOC -> File scenario ref : /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    File -> IDOC -> /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping (It concentrates on XSLT mapping but also gives an idea about the configuration part.Do go thru that, it might help you.)
    Message was edited by: Shabarish Vijayakumar

  • Mapping help for IDOC to file

    Hi Experts,
    I need help in mapping. All mapping is working fine. I am getting issue when mapping comment field to only BOX when it occurs multiple times.
    Actually I am getting correct lines in queue , but it is not mapping correctly, It consider lines from first MIXPLT.
    Target Structure:
    BOX                    0.n          Z1WHCUSTC   when Z1WHCONS is initial
    ++LIne                 0..n        Z1CUSTCD
    ++++Comment     0...n      Z1WHCMTH
    MIXPLT                0...n      Z1WHCONS
    BOX                     0..n       Z1WHCUSTC    when Z1WHCONS is not initial
    ++LIne                 0...n
    ++++Comment    0...n
    Source Structure:

    Hi Ranj,
    Did you import Idoc or Idoc xsd ?
    If you imported xsd, open external definition IDoc check for errors like below.
    I think the problem might be with source xml structure.
    Regards,
    Krupa

  • Help with idoc-file scenario

    Hello,
    I am doing IDOC - File scenario.
    (source is DEBMAS and reciever end, there is flat DT with no heirarchies as of now. )
    The requirement is that  if the segment at the source side has multiple lines of " sold to party " values, then customer bill should also have multiple lines with account number different for each line. Can I acheive this using "split by value"?  if yes please help me.
    Regards,
    Haritha

    Use the sold-to-party node to create the row node of the file...if some of the elements in the  sold to party node have to duplicated/repeated use the one as many function.

  • Help Reqd: Idoc from XI to Amtrix (3rd party middleware)

    Hi,
    We have a proxy(SRM) to Idoc scenario.
    Now this Idoc needs to be sent to a non-SAP system (Amtrix)
    Currently the same requirement is being achived through R/3 using a TCP/IP RFC destination to amtrix.
    And this is being used in a TRFC port and the partner profile is configured for the same as a partner of type LI (vendor)
    I've tried setting up the same in XI. Not sure as to how to create a an Idoc using partner type LI and not LS.
    Also the port which we setup for Idoc adapter in IDX1 takes only type 3 RFC connections (ABAP based) so not sure as to which port I need to use in the communication channel.
    I've tried the below.
    setup a port in idx1 to r/3 system (since i've read in doc that this port is used only to pull metadata.)
    and in the rec idoc comm channel i've used this port along with the tcp/ip destination to amtrix.
    now when i run the scenario.... i find an error in the sm58 transaction which says....
    reason code 2085 when opening a queue unkown.
    your help in this regard will be very much appreciated.
    Cheers!!
    Sidharth

    Akshay,
    Thx for ur reply.....
    My scenario is as follows.
    SRM (Proxy) --> XI --> Amtrix (Idoc)
    Now I have to create an Idoc in XI of partner type LI and send it to Amtrix via a TCP/IP destination.
    I've tried using party.... but I get the error "Unable to convert Recv Service into an Idoc Partner"
    I've tried picking up the control record from payload where I have hardcoded the values for a partner accordingly.
    But the Idoc fails in sm58 queue.
    I'm not really sure if we can send the Idoc out of XI using a TCP/IP destination instead of an ABAP destination (Type 3) which we usually do when posting Idocs into any SAP r/3 system.

  • Help in IDOC Processing

    Hi friends,
    I am getting inbound idoc from Biztalk which posts a sales order in SAP. now i am getting the following error
    <b>Field RV02P-KUNDE (1) is not an input field</b>
    this is Sold-to Party field in Sales order header data.
    when processing the idoc frm we19 in forground mode, i am getting the warning message and after pressing enter Sales order posted successfully. But in background processing its giving an error. Now i want to by pass this warning message. how to do it ? can any body help me on this ? which user exit should i modify ?
    Thanks in Advance.
    Regards,
    Joseph

    Hi Srikanth,
    Thanks for the reply.
    the field KUAGV-KUNNR is in header data sold to party. I am not talking about that.
    In Sales order header data, Go to Partners tab, there in the first place you will have Partner function and partner number know, there i am getting my error.
    Can you help me to solve this issue ?

  • Help in Idoc

    Hi
    i create some idoc and i want to send them togother after 5 hours, so i change in we20 the mesaage type to Collect idoc.
    when i did it i get yellow idoc with status 30 the problem that i want that the status will be 64 or 66 ( to run bd 20 )
    Maybe u can help me?
    Thanks
    Have a nice day

    Hi..
    The Status of IDOC is 30 means it is Created successfully, but the Dispatch is not done since the Option Collect IDOCs is selected in Partner profiles (WE20).
    In this scenario:
    <b> You have to Schedule the Program RSEOUT00 in Background.</b>This program will actually dispatch the Idocs in Outbound by calling the RFC.
    After that the IDOC status will become 03.
    Let me know if any issues.
    <b>Reward if Helpful</b>

Maybe you are looking for

  • Waiting for a constructed image

    I am having great difficulty with an image constructed from others. Essentially, I create an empty image and fill it with a series of drawImage() commands on the graphics context. However, I simply cannot get execution to wait for the image to be fin

  • Is there anyway I can transfer itunes balance to volume purchase program

    Is there anyway to transfer your iTunes balance to a Volume Purchase Program account. A school bought two iTunes gift cards and bought some apps. They didn't realize that they needed to order Volume Purchase Program Voucher. So they have a balance in

  • ViewSet with three rows

    Hello All, I have a scenario in which i want to use ViewSet having three rows. <b>1st Row - View1 (having a Header and RoadMap UI element) 2nd Row - View2 (having a dynamic UI view) 3rd Row - View3 (having Next & Previous buttons to move through the

  • Error while inserting XML data

    Hi, When I try to insert xml data, it gives the following error. --CREATE TABLE XMLTABLE OF XMLType; INSERT INTO XMLTABLE VALUES(XMLTYPE(getCLOBDocument('example.xml'))); ORA-00600: internal error code, arguments: [qmxiUnpPacked2], [121], [], [], [],

  • Mozilla Thunderbird and Creating Scripts

    I would like to create a script for Mozilla Thunderbird. In addition to this I would like to create scripts for software written specifically for Monash University. I would be grateful to hear from anyone who may have experience with this and could p