How to find Outbound Idoc number from inbound Idoc number.

Hi,
I have one inbound Idoc in my system, then
How to find the  idoc number from the system which sends that idoc(Outbound Idoc number).

Hello
You can use fm SREL_GET_NEXT_NEIGHBORS for this purpose.
Scenario: An EDI purchase order is received by SAP-XI and forwarded as Inbound ORDERS IDoc to R/3. SAP-XI generates an (outbound) IDoc number which differs from the (inbound) ORDERS05 IDoc in the R/3 system.
Calling fm SREL_GET_NEXT_NEIGHBORS with the following parameters:
OBJECT-OBJKEY = <IDoc number, 16-digits>
OBJECT-OBJTYPE = 'IDOC'
MAX_HOPS = '99'            " <<< get all links
I get the following result:
0000000000133906                                   IDOC       CUSTOMER   OUTIDOC
0000000000407402                                   IDOC                  INIDOC
000000370383                                       BUS2012    CUSTOMER   OUTBELEG
0010057944                                         BUS2032               INBELEG
Outbound IDoc number
Inbound IDoc number (ORDERS05)
PO number
Sales order (created from inbound ORDERS IDoc)
Regards
  Uwe

Similar Messages

  • How to find the message_ID/Reference_ID from a IDOC number

    hi
    can some one tell me how to find the message_ID/Reference_ID from a IDOC number
    regards
    Buddhike

    hi,
    check the t.code IDX5 .
    also check the below link for reference
    Monitoring the IDOC Adapter in XI/PI using IDX5                         
    Monitoring the IDOC Adapter in XI/PI using IDX5                         
    regards
    kummari
    Edited by: kummari on Jul 28, 2008 9:20 AM

  • How to find the sender information from a IDOC

    Hello Colleagues
    I have a list of IDOCs which are transferred by by ALE and EDI methods, the customer idocs are using EDI and internal buyers use the ALE technology.
    I have to write a report which tells me which was the originating system/ source of the order, so I wanted to know is there a way that I can find the origin system of the idoc message.
    I had a look into EDIDC but the sender port here is a self pointing RFC for the edi messages, any idea how to get the origin system here ?, however the ALE messages gives the correct sender. But in future we are planning to have XI for internal transfer for idoc will that also have the same problem.
    Best regards
    Sujoy

    Hi ,
    you can find receiver system details in partner profile , transaction we20.
    the sender system details are
    port = SAP+your systemID(can be found in login system details)
    EX if i am using ides server(testing server) having system id ESR then port = SAPESR
    partner number u can get by following the path
    sale...>basic settings...>logical system....> assign logical system to client.
    here you can find the logical system which is nothing but your partner number for a particular client.
    Hope this  helps you.
    Thank you.
    Regards,
    Lokeswari.

  • How to find the Purchase Orders from Sales Order number

    Hi ...
    Is there a way to write a query to find the Purchase orders
    from the Sales Order number ....
    I have notice the table POR9 (Purchase Order - base Document)
    but it seems to be empty.
    Could you please help me to figure this out,
    Thank you very much
    Kind Regards
    Sanjaya

    hi,
                 u did mistake in selecting the table
    SELECT T0.DocNum FROM ORDR T0                 for  sales order
    SELECT T0.DocNum FROM OPOR T0                 for purchase order
    how to find the table in SAP B1.
    go to above menu view => system information. tick it(or select it)
    then below status bar u can see the table and field name.
    open the required form and just keep the  mouse cursor  on any field.
    you can see the table and field name below.
    hope now u can able to track the table name.
    regards
    sandip

  • How to find PO number from ORDRSP Idoc.

    Hi,
    Can  anybody let me know how to find the PO number from the Idoc ORDRSP.
    Scenario is as below:
    SAP system1 will send PO to SAP system2.(Idoc type ORDRS05).
    When SO is created in SAP system2, it will send a confirmatory Idoc of message type ORDRSP.
    From this I have to find  the PO number as I can find only VBLNR.
    Points assured for workful solutions.
    -B S B

    Hi BSB,
    CHECK THIS CODE
    DATA : BEGIN OF itab_status OCCURS 0,
              idoc           LIKE edids-docnum,
              date_stauus    LIKE edids-logdat,
              status_counter LIKE edids-countr,
              status         LIKE edids-status,
              descrp(70),
              ponumber       LIKE ekpo-ebeln,
              mess           LIKE edidc-mestyp,
    END OF itab_status.
    DATA: text111        LIKE e1mbxyi.
    DATA: text11         LIKE e1edp02.
    IF itab_status-MESS = 'WMMBXY'.
       select single * from edid4  INTO ITAB where segnam = 'E1MBXYI' AND
                     HLEVEL = '02' AND DOCNUM = itab_status-idoc.
    MOVE  : ITAB-SDATA  TO TEXT111 ,
    text111-EBELN TO itab_status-ponumber.
    ELSE.
    YOUR CASE FALLS IN THIS CATEGORY****
    select single * from edid4  INTO ITAB where segnam = 'E1EDP02' AND
                     HLEVEL = '03' AND DOCNUM = itab_status-idoc.
    MOVE  : ITAB-SDATA  TO TEXT11 ,
    text11-BELNR TO itab_status-ponumber.
    ENDIF.
    endif.
    LET ME KNOW IF YOU NEED ANYTHING ELSE.
    THANKS
    VENKI

  • Sale Order from Inbound IDOC

    I am testing creating Sale Order from inbound IDOC with WE19.
    Partn. number = AAA001
    Partn. type = KU
    Partn.func = PY
    Message Type = ORDERS
    Process Code = ORDE
    I get message 51 "Error: Application document not posted" in IDOC status:
    VKORG, VTWEG, SPART cannot be determined for customer AAA001 , vendor                                                                               
    Message no. VG 204                                                                               
    Diagnosis                                                                               
    No sales organization, distribution channel or division were sent to the
        IDOC. This data is necessary if a sales order is to be added           
        automatically. If this data is unavailable, you cannot create a sales  
        order document.                                                                               
    Procedure                                                                               
    If data on the sales organization, distribution channel and division   
        have not been entered in the IDOC, it must be determined using a user  
        exit defined in the program.

    I will receive IDOC from external non-SAP system.
    How can i populate E1EDK14 segment with appropriate values:
    E1EDK14 -QUALF = 006
    E1EDK14 -ORGID = Division (VBAK-SPART)
    E1EDK14 -QUALF = 007
    E1EDK14 -ORGID = Distribution Chanel (VBAK-VTWEG)
    E1EDK14 -QUALF = 008
    E1EDK14 -ORGID = Sales Organisation (VBAK-VKORG)
    If external system does not know this values?
    Edited by: S S on Feb 28, 2009 12:46 PM

  • Populate partner number from return IDOC.

    Hi Experts,
    I have a requirement where I need to populate partner number from return IDOC to the delivery document. The partner number will not be necessarily have a master data in SAP.Example: I will get a forwarding agent number which will not have a master data created in R/3, but still SAP should allow me to save the delivery with the number that I put in the delivery header-partners with appropriate partner funtion defined by us. Ideally my IDOC will carry any number which I need to populate under header partners in the delivery with out getting any error message saying "No master record exists for XXXXXX". Please provide your expert opinion.
    Regards,
    Emaya

    Emaya,
    You cannot save a Partner Function with a Partner Number that doesn't already exist in SAP. Therefore you either need to have the partner(s) created in SAP, or find somewhere else to store the data. There are a few free-format fields in LIKP that may suit your purpose, alternatively you could extend the iDoc & table LIKP to incorporate a new field.LIKP-LIFEX is a good candidate if you're not using it already, or of course there's always a text field.
    Cheers, Paul.

  • How to find name of partner based on partner number

    Hello All,
    Can any one help me how to find name of partner based on partner number.
    Regards,
    Lisa

    SELECT kunnr name1 erdat
              FROM kna1
              INTO TABLE i_kna1
              WHERE erdat IN s_date.
      SELECT kunnr kunn2 knref vkorg vtweg spart
                    FROM knvp
                    INTO TABLE i_knvp
                    FOR ALL ENTRIES IN i_kna1
                    WHERE kunnr = i_kna1-kunnr AND
                    vkorg IN s_vkorg AND
                    vtweg IN s_vtweg AND
                    spart IN s_spart AND
                    parvw = 'ZR'.
      LOOP AT i_kna1.
        READ TABLE i_knvp WITH KEY kunnr = i_kna1-kunnr.
        IF sy-subrc = 0.
          MOVE-CORRESPONDING i_kna1 TO i_cust2.
          MOVE-CORRESPONDING i_knvp TO i_cust2.
          APPENd i_cust2.
       endif.
      ENDLOOP.
    *SELECT kunnr name1
              FROM kna1
              INTO TABLE i_kna1.
      loop at i_cust2.
        read table i_kna1 with key kunnr = i_cust2-kunn2.
         IF sy-subrc = 0.
           i_cust2-name2 = i_kna1-name1.
        modify i_cust2.
      endif.
    endloop.*
    icust2 will have partner number ,....partner name is in KNA1,..
    so look in tat ..by above code.._ if this is wat u r luking for

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

  • Discoverer Report: How to find Business Area name from Report Name.

    Hi
    I opened a report in Disco Desktop 4 -> Resonsibiolity --> Report Name.
    So I know Report name but don’t know which Business Area it belongs to.
    How to find Business Area Name from Report Name?
    Cheers
    Vijay

    Hi,
    There is no relationship between reports and business areas. Each report can be built from many folders. Each folder can be in many business areas.
    However you can try the following SQL which may give you the result you want for an v5 EUL. You will have to modify for Discoverer 4 EUL:
    select distinct doc_name, obj.obj_name folder_name, bas.ba_name
    from eul_us.eul5_documents doc
    , eul_us.eul5_elem_xrefs xref
    , eul_us.eul5_expressions exp
    , eul_us.eul5_objs obj
    , eul_us.eul5_ba_obj_links bol
    , eul_us.eul5_bas bas
    where xref.ex_from_id = doc.doc_id
    and doc.doc_name = &your_report
    and xref.ex_to_id = exp.exp_id
    and obj.obj_id = exp.it_obj_id
    and bol.bol_obj_id = obj.obj_id
    and bas.ba_id = bol.bol_ba_id
    Rod West

  • Error determining posting period(infostructure S008,Variant Z2,RC3) while creating Sales orders from Inbound IDOCS

    Hello,
    I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
    While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
    Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
    Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    Thank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
    Could it be an issue with e Update rule in this Infostructire S008
    Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
    "Maintenance of SAP standard updates not allowed"
    Kindly advice
    Thanks and Regards
    Mohammed Roshan

  • HOW TO  FIND OUT TABLE DESCRIPTION FROM JDBC?

    HOW WILL FIND OUT TABLE DESCRIPTION FROM JDBC?

    Have a look at ResultSetMetaData
    getColumnCount()
    getColumnName(int)
    getColumnTypeName(int)
    getColumnDisplaySize(int)
    ***Annie***

  • How to find out company code from a plant ?

    Hello friends,
    I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD".   For that, we have to export company code ID.  Currently it is hard coded with one company code.  Now we want to make this program usable by all company codes.  So instead of hard coding, I would like to dynamically find out company code based on the plant.   So I want to know - how to find out company code from a plant ?  Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
    Thanks,
    - Chetan

    hi
    u can find this from table T001K
    or just goto EC01
    here click on STRUCTURE>NAVIGATION
    double click on co code u will get the list
    u can slo try this in EC02
    regards
    kunal

  • Creating inbound delivery without reference to PO - from inbound idoc

    Hi guys,
    I have a scenario wherein I need to create inbound delivery from inbound Idoc from external system without reference of PO. There is no PO created in SAP and this inbound delivery will be used just to receive material (purely for logistic purpose).
    I have identified DELVRY03 or 05 as Idoc type but I am not sure whether system will create inbound delivery without having reference PO. I have two questions here -
    1. Can we create inbound delivery without reference to PO?
    2. If yes, which Idoc type should I use to create such inbound delivery?
    Please help.
    Thanks,
    Parimal.

    Dear Parimal,
    In standard, An inbound delivery can be created as follows:
    With reference to a purchase order
    With collective processing for several purchase orders
    With reference to a stock transport order
    With reference to a customer return

  • How to find the data loaded from r/3 to bw

    hi
    how to find the data loaded from r/3 to bw is correct . i am not able to find which feild in the query is connected to which feild in the r/3 . where i am geting the data from r/3 . is there any process to find which feild  and table the data is comming from . plz help
    thanks in advance to u all

    Hi Veda ... the mapping between R/3 fields and BW InfoObjects should take place in Transfer Rules. Other transformation could take place in Update Rule.
    So you could proceed this way: look at InfoProvider Data Model and see if the Query does perform any calculation (even with Virtual keyfigures / chars). Than go back to Update Rules and search for other calculation / transformation. At least there are Tranfer Rule and eventually DataSource / Extraction Enhancements.
    As you can easily get there are many points where you have to look for ... it's a quite complex work but very usefull.
    Once you will have identified all mappings / transfromation see if BW data matchs R/3 (considering calculations ...)
    Good job
    GFV

Maybe you are looking for

  • CM12 client takes hours to push to Server 2003 clients

    Hi, I am running SCCM 2012 R2 and using client push I can deploy the client to Windows 7 and 2008 servers without issue. When I push the client to our Server 2003 R2 SP2 clients it works but takes many hours. The CCMSetup log shows it is using the ex

  • Problem to reinitialize device in Mobile 7.1

    Hello, We are trying to reinitialize the device in the device administration screen. The device is in the "Registered" state. We return it to the "Initial" state and then try to register it to the same physical client that it was registered before. W

  • CS4 not working with snow leopard

    Has anyone had any issues with CS4 Extended after upgrading to SnowLeopard? After upgrading to Snow Leopard osx10.6.8, my CS4 will not open. It crashes about 30 sec after i try to open it. I have tried restarting, but with no luck. Does anyone have a

  • Cant Download a Premiere Pro trial

    I want to Install a Trial and although it says the product is downloading nothing actually happens, Troubleshooting says i need to start the Adobe download assistant but when I look for how to do that it just says it starts automatically when I attem

  • Imbedding sound files in documents

    I want to embed mp3 sound files inside a document and be able to share it as a pdf document or other generally available format. Text Edit can accept mp3 files, and a little player bar appears, but Text Edit is not able to 'print' them as PDFs with t