Need list of Idocs for a particular Order Number

Hello all,
I am processing Outbound Purchase order Idocs.
I need to know all the IDOC Numbers that got triggered for a particular Purchase Order.
Example : for Purchase Order number 4500000001 there were 10 IDOCS that got created over the last 5 days.
How do i get a list of all those IDOC numbers for that particular PO Number.
Regards,
Arun

Hi,
you have to check the objects relationship tables IDOCREL and SRRELROLES.
Hereafter a simple abap, just an example on how the relationship works.
REPORT  ZSDN_IDOCREL.
data: lsrrelroles type srrelroles,
      lroleid     type srrelroles-roleid,
      lrole_b     type idocrel-role_b.
parameters: pebeln TYPE ekko-ebeln OBLIGATORY default '4500015519'.
* 1 SRRELROLES: From the Business Object Key (Purchase Order) gets the corresponding link
SELECT roleid FROM  srrelroles into lroleid up TO 1 rows
       WHERE  objkey    = pebeln
       AND    objtype   = 'BUS2012'
       AND    roletype  = 'OUTBELEG'.
ENDSELECT.
check sy-subrc = 0.
* 2 IDOCREL; From the Purchase Order link get the Idoc Link
SELECT role_b  FROM  idocrel into lrole_b UP TO 1 ROWS
       WHERE  role_a  = lroleid.
ENDSELECT.
check sy-subrc = 0.
* 3 SRRELROLES: From the Idoc Link gets the corresponding object key (Idoc Number)
SELECT  * FROM  srrelroles into lsrrelroles UP TO 1 ROWS
       WHERE  roleid  = lrole_b.
ENDSELECT.
check sy-subrc = 0.
write:/ 'Purchase Order:', pebeln.
write:/ 'Outbound Idoc :', lsrrelroles-objkey.
Regards,
Andrea

Similar Messages

  • Help needed in inbound IDoc for ORDERS....

    Hello all,
    I need help in IDoc for ORDERS.. Here is the situation. I have an ORDERS IDoc coming to my SAP system from my customer. When I see the SO it creates.. it says that it has incomplete data.. Information like pricing, inco terms, payment terms. load data, load date etc. is not filled in. How do get those filled automatically.. my customer can not, obviously, give me all the information needed for the SO.. Where do I configure and how?
    Thanks,
    Charles

    Hi,
    You can use user exits available in FM IDOC_INPUT_ORDERS to populate additional information.
    Also you can use form CUSTOMER_FUNCTION_DYNPRO to populate additional information for BDC screens of VA01. This form is available in FM IDOC_INPUT_ORDERS as well.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Bypass material D-Chain specific status check for a particular order type

    Hello All,
    For a material, I want to by-pass it's D-Chain specific status check for a particular order type.
    Currently when you enter the that material in the order, I am getting warning: Material XYZ has status: ABC hold
    I want to py-pass this warning message, how to do this? Can we configure this based on order type??
    Pls. help me.
    Thanks,
    Shreekant

    Hi Kapil,
    Threre are some material for which D-Chain status ( MVKE-VMSTA) in the materila master are set in such a way so that deliveries can not be created. We need to bypass this restriction for couple of delivery types. One of them is the delivery type used for intracompany STO.
    I am looking for some way out like user exit so that I dont need to change existing config change for those statuses.
    Regards,
    Subhankar

  • How can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order

    how can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order? I can't seem to identify the sender in the details list.

    Start a separate thread to the original sender.

  • Added custom field to VA01 should be mandatory for a particular order type

    Hi experts,
    I have created a custom field in Additional Tab B (Screen 8459) in VA01 at the item level. Now that field should be mandatory for a particular order type. If a sales order is created with that order type then the user cannot save the sales order without putting any value to the custom field. Please can anyone suggest me how to do that?
    Regards,
    SURYA

    Hi
    Sap_wiz is right. It's the same that in this [post|Re: Enhancement in VA01 Additional data B tab].
    Regards
    Eduardo

  • Create directly an IDOC for a sales orders

    HI,
    I would like to know if it exists a program to create an output IDOC for a sales order directly as does the program
    RBDSEMAT for materail / product.
    With RBDSEMAT we give the product's numeber the message type and the logical system.
    Of course before was customizing all the ALE flow.
    But for sales orders (VA02 / VA01) I don't find any program which allow us to have the same function.
    Does this program / function exist? I want juste to give the sales order number  the logical system and the message type.
    Thanks you
    Henri

    Funtion Module IDOC_OUTPUT_ORDRSP is used by standard SAP when output determination is used. I think you can populate the control record and use this function module directly. This will return the IDoc data, but the IDoc will not exist on the Database.

  • Report for displaying the order number & order date..

    HI ALL,
    can any body help me for displaying the order number,customer name,material name & order date..in report
    i dnt know the which are the table i need to use...
    can anybody tell me which are table do i need to use and fields in tables
    input to report from the user are cutomer number,purchase order numbervendor number & sales number
    waiting for positive reply form u people.....
    thanks
    Zabeerulla
    Moderator message: "spec dumping", please work yourself first on your requirement, do some research, talk to a functional consultant near you.
    Edited by: Thomas Zloch on Feb 28, 2011 2:14 PM

    Thx  dharma raj  ...
    problem is ,input to report from the user are cutomer number,purchase order number,vendor number & sales number
    report should contain
    customer name
    order date
    order #
    vendor name
    material name
    can u please tell me which are the table do i need to use...
    i have ,please look into it...let me know if am incorrect
    customer name -> kna1_name where kna1_kunnr=knagv_kunnr
    order date -> vbak_audat
    order nunber->vbak_vbeln
    vendor name -> LFA1_NAME where LFA1_LIFNR=MEPO_TOPLINE(superfileld)
    material # -> VBAP_ARKTX where VBAP_VBELN=VBAK_VBELN
    HELP ME OUT...
    THX
    ZABEER

  • Needs rows to be listed in BEX in a particular order(not asc desc)

    See the thread.
    Needs rows to be listed in a particular order(not ascending or descending)

    To create a hierarchy you can go in RSA1, infoobject tag, find your infoobject, double click on it and set the flag with hierarchy under Hierarchy tag; save and activate and exit.
    Than right click and choose 'Create hierarchy'.
    After creating hierarchy, in bex properties of the infoobject you can set it to use this hierarchy.
    For second question, if there's a logic to define sort order, while you are loading data, you can write a routine in update rules to populate a specific infoobject with a value for the sort.
    Hope now it's more clear.
    Regards

  • Need help on IDoc for Picking, Packing and PGI against the Sale order

    Hi All,
    I am new to this IDoc stuffs. Below is the scenario for which I would like to know the details of the IDoc...
    Business Case:
    1. Storage location is a HU Managed but not WM managed.
    2. This storage locations is managed by a third party
    3. Outbound delivery document against the SO will be created by our personnels in SAP for this storage location.
    4. Picking, Packing and PGI needs to happen/post via Idoc. (By packing here, i refer to assign the HUs that are already created for the materials and is available in the storage location and not repacking)
    Is there any standard IDoc that can be used here to Pick, Pack and post PGI. We would like to have picking and packing in a first idoc and PGI on the second idoc.
    Thanks,
    Prashant

    Hi Typewriter,
    Thanks for your reply on this post..
    The business process is as below (it was changed recently to have the creation of OBD, pick HUS and then post GI via single IDOC)
    1. We have a storage loc in our enterprise structure that is HU managed but not WM managed.
    2. This storage loc is being maintained by a third party.
    3. SO will be created to be shipped out of this plant/sloc.
    3. The stocks at this storage loc will be Special stock "E" against the sales order. And the stocks will be Packed in HUs.
    4. The third party is informed to deliver the stocks (HUs - that do have the special stock number which internally refers to the the SO number and the line item number) directly to ship to party address in SO.
    5. The 3rd party will physically ship the HUs to customer and send in the details that they have shipped goods against the sales order.
    6. The details sent by the 3rd party will be received in SAP to create OBD for the sales order, Pick, Pack and post GI. This can happen via a single IDOC..
    I am now planning to create a custom IDOC type referring to the standard IDOC type DELVRY03 and message type DESADV and to use a custom BAPI/FM.
    Do you think I am using the right ones?
    Thanks,
    Prashant Kumar

  • Message type for generating IDOC  for SUBCONTRACTING PURCHASE ORDER

    Hi All,
    I have to generate IDOC for PO creation or change .
    I am using IDOC_OUTPUT_ORDERS and IDOC_OUTPUT_ORDCHG.
    The messagetype.idoctype  I am using is  ORDERS. ORDERS05  and ORDCHG. ORDERS05.
    Now the confusion is regarding whether  this message type will work in case of SUBCONTRACTING PURCHASE ORDER as well ?
    As I have gone through some websites and came to know that I will have to use PORDCR1.PORDCR102 specially for subcontracting.
    And programs we need to use is BUS2012_ICH_R3 instead of  RSNASTED and Form Routine SEND_PORDCR1 instead of EDI_PROCESSING.
    Purchase Order Collaboration scenario - Not generating IDOC in ECC
    http://www.erpgenie.com/faq/edi_purchasing.htm    on this site question no  8.
    Subcontract PO IDOCs
    I hope your experience will help me .
    Please reply ASAP.
    Edited by: uttam27 on Dec 4, 2011 1:47 PM

    There is a generic function to create change pointers for all message typs - 'CHANGE_POINTERS_CREATE_DIRECT'.  This is triggered only if you configure your message type to create change pointers from BD50.
    Once you activate it do any change to orders you can see change pointer tables BDCPV filled. Then BD21 will read the changes and generated outbound idocs accordingly.

  • Idoc - for inbound delivery order confirmation

    Hi,
    Can some body give me the idoc for Inbound SO Delivery Order Confirmation and if any BAPI method is there to create Delivery order confirmation.
    With Regards
    Vasu

    Hi Vasu,
    Below is the link to find out the IDOC name for ur Inbound IDOC scnario
    http://help.sap.com/bp_bpmv130/Documentation/K17_BPP_EN_US.doc
    Hope this willl help you.
    Reward if helpful.

  • How to get list of customers for a particular plant.

    Hello All,
    I have a requirement of the customer aging analysis report where I need to get the details of the customer for a particular plant.I have searched the tables T001w and Kna1 but  found no  result for my requirement.can any body tell me how to solve this issue or tell me any tables which give the information regarding the customers based on a particular plant.
    Regards,
    Pavani.

    Thank u all...for the reply
    But while creating a customer in XD01 we are not maintaing any plant data in that we are just giving the sales area data and the company code data in the initial screen. A particular customer can be used for any no of plants in our organisation than in that case how is it posible to get the data for the required plant.Here the plant is not same as the customer or vendor.
    Regards,
    Pavani.
    Edited by: Pavani Rayappureddi on Mar 16, 2009 4:19 PM

  • Need list of Videocams for FMLE

    Is there a list of cameras that show up in FMLE for
    broadcast. To date we have been using web cams with no problem, but
    now need a better cam for a larger event. We are money sensitive,
    so we don't need near broadcast cameras if we can avoid it.
    I have been reading about OrangeMicro WebCamDV Is this the
    correct software?
    We have to use a laptop so there is no capture card as such
    we can use.
    We are due to do this in a week. I have been asking my boss
    for a month to send the camera, he has a JVC Envero GZ300, and it
    came in yesterday and there seems to be no way to access the camera
    from the machine other than to download video. That is to say it
    does not record video and talk to the computer at the same time.
    You can only record video and then download it which doesn't help
    for what we're doing.
    Help me Obi Wan.. you're my only hope...

    Here's a great doc from Lauren:
    It is linked to within the FMLE system requirements.
    http://www.adobe.com/support/documentation/en/flashmediaencoder/FMLE_DeviceMatrix3.0.pdf

  • Alert for Catching Particular Order

    Hi All,
    If any body knows how to configure Alert rule for particular Order is missed in mapping time?
    We are processing around 500 orders on daily base, so I want to send a Alert to email  for particular Order is missing. So that support team will easily  regenerate that particular Order in later. Now we are cathing message mapping error if any order missing(values is not coming) and sending to email. It confusion for support guyz for catch the particular Order in between 500 orders.
    Please let me know  how to catch this?
    Appreciate your time and catch your reward pointz.
    Thanks,

    Hi
    Follow this links
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm -
         Alert configuration
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2328---- [original link is broken] [original link is broken] [original link is broken]
         Alert Configuration   
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3905---- [original link is broken] [original link is broken] [original link is broken]
         Personalized alert delivery
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm----
         Alert Notification
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2894---- [original link is broken] [original link is broken] [original link is broken]
    Email Alerts

  • How to Invoke custom Idoc for a sales order

    How to create/invoke a custom Idoc when a service order(IW31) IS-U is created or modified ?

    Hi Senthil,
    You can use the output determination technique for this,
    so when ever it got created this out put will be trigered and configure your partner profile also in the similar way.
    Regards,
    sasi

Maybe you are looking for

  • How do I browse & play .mp3 files from a USB flash drive using Labview 8.0?

    I'm a tester & want to test USB flash drives connected to PC. I want to browse the file system & playback the audio files, .jpeg files etc in the USB drive. I've Labview 8.0. When I searched for some examples or VIs which can detect the USB flash dri

  • Backing Up My Songs and Audio Books  AND  Updating to 3.1.2

    Hello, 1. My Touch is set for manual management of my songs and audiobooks and a few podcasts. What's on the Touch is not exactly what is in my Music Folder on my MacBook Pro which is the "home" computer. Most of my songs on the Touch are not from th

  • Php email form with styling

    Hi I have a php file which generates an email from a form in a website I have designed. I just want to make some areas of the final generated email in bold text. I know if people have plain text only selected in their email client they won't see the

  • Status Bar Icons

    In my status bar there is a little lock with an arrow going in a circle around it. It is by my battery icon. What does that mean?

  • Open new Tab within a bounded task flow

    Hi, is it possible to open a new tab when iam within a bounded task flow There is a code corner article about starting a task flow in a new tab, but that is not applicable for my case, I want the new tab for only one view activity within the bounded