OILSHL IDoc generation from schedule confirmation

Hi,
I need the OILSHL Idoc to be generated from the SAP system at the time of schedule confirmation.
The ALE subsystem has already been configured and tested. This includes RFC destinations, partner profiles and ALE distribution model (Working for master data IDocs)
The Load Id configuration is also complete and the load Id's are being correctly assigned to bulk shipment documents.
I have assigned the output procedure OI0001 to BS32 shipment type which we are using. Additionally I have assigned the condition type OIKT a requirement 477. I get this from a configuration document, but I am not sure what it is since this routine does not list in value help.
I am expecting the IDoc to be generated when the bulk shipment schedule is confirmed and its status turns to 2 (O4F1/O4F2). However this is not happening.
If anyone has had experience on this, could you tell me what i may be doing incorrectly here.
Regards,
Ahsan Safdar

Use Output type OIKT in output determination of BS32

Similar Messages

  • IDOC generation from ABAP program

    Hi
    I have to object in which I have to Z program which will generate the idoc and pass it to PI system. Can anyone guide me in how to generate IDOC through ABAP custom program. Just need a little guidance in how to create IDOC from an ABAP report.
    Any help would be greatly acknowledged.
    Thanks!!

    Hi I tried to use the program as suggested by Buddhika and Glen, but found error over the statement below:
    i_data-sdata = header_segment_data.
    Highlighted below in code snap. These two fields are not mutually convertible.
    Any suggestions on this.

  • Delivery Schedule Confirmation inbound

    Hi experts,
    Business scenario: For material planning purpose, The SAP PO would require delivery schedule confirmation from supplier to be used as a PO firm item when the PO is released. The PO items are critical since they will be used as material requirement planning to fulfill shop floor production.
    Can any one let me know what is the BAPI or any other method to Update PO Quantity Update Deliv. Date using custom program.
    Thank for advance
    Rambabu.A

    Hello Duke,
    Thank you very much for getting back to me.  Yes, our configuration had been maintained properly as defined. 
    IMG>MM>Purchasing>Confirmations>Set Up Confirmation Control
    1. Select the Confirmation Control Key
    2. Goto Confirmation Sequence
    We had set up AB confirmation in sequence 1 and LA in sequence 2.
    The problem happens only when the delivery schedule date or PO line delivery date is earlier than or equal to the AB confirmed delivery date. When this happens, the system does not look at  the cumulative quantity between the AB confirmation and LA confirmation.  Instead, the system treats them as two independent events resulting in an  overconfirmed situation. 
    Please see the following example:
    <b>Scenario 1</b>
    If 1000 ea was ordered with Delivery schedule date is 11/20/2007 with the following confirmation:
                                                                           Quantity reduced
    AB  Confirmation     300 ea    11/19/2007             0
    LA  Confirmation     300 ea    12/20/2007             0
    Total ATP available quantity is 600 ea (over-confirming)
    <b>Scenario 2</b>
    If 1000 ea was ordered with Delivery schedule date is 11/26/2007 with the following confirmation:
                                                                           Quantity reduced
    AB  Confirmation     300 ea    11/19/2007             300
    LA  Confirmation     300 ea    12/20/2007             0
    Total ATP available quantity is 300 ea (correct quantity)
    Please kindly advise if there is any documented SAP logic that explain this system behavior. Thank you very much.

  • Delivery schedule confirmed by vendor

    Hi experts,
    Business  scenario:  " For material planning purpose, The SAP PO would require delivery schedule confirmation from supplier to be used as a PO firm items when the PO is released. The PO items are critical since they will be used as material requirement planning to fullfill shop floor production"
    Can any one let me know what is BAPI   FM  Delivery Schedule Confirmation by vendor in MM module or any other suitable  method .
    Thank for advance,
    Rambabu.A
    Edited by: Rambabu Ata on Feb 5, 2012 9:56 PM

    In SAP, there is a functionality called "confirmation control" which we can use to control the confirmations and acknowledgement from vendors related to price, delivery date and quantity.
    You can setup the "confirmation control key" in PO as per your requirement whether you want to just record the acknowledgement or maintain inbound delivery or both.
    Go through this link to learn more
    [http://www.sap-img.com/materials/explain-about-the-po-confirmation-control-key-in-detail.htm][Confirmation control|http://www.sap-img.com/materials/explain-about-the-po-confirmation-control-key-in-detail.htm]

  • Inbound Idoc Generation

    Hello All,
    We have a ALE concept to transfer data between clients. We have made the settings and the process was fine. But on some days Inbound Idoc is not getting generated with respect to the outbound Idoc, and after some times once again system comes to normal state and the idoc generation is fine. How ever we dont have any root cause for the failure of Idoc generation. Could someone let me know where i can chk the info and what all the parammetres needs to be checked.
    Note ; There are no issues in ALE ocnfig settings.

    Hi ,
    See the following code :
    Program To Generate IDoc
    *& Report  ZZ_Program_To_Create_Idoc                                        
    report  zz_program_to_create_idoc                     .
    tables: ekko,ekpo.
    selection-screen skip 3.
    selection-screen begin of block b1 with frame title titl.
    selection-screen skip.
    select-options s_ebeln for ekko-ebeln.
    selection-screen skip.
    selection-screen end of block b1.
    data: header_segment_name like edidd-segnam value 'Z1EKKO',
          item_segment_name like edidd-segnam value 'Z1EKPO',
          idoc_name like edidc-idoctp value 'Z19838IDOC1'.
    data: header_segment_data like z1ekko,
          item_segment_data like z1ekpo.
    data: control_record like edidc.
    data: messagetyp like edmsg-msgtyp value 'ZZ9838MESG1'.
    data: i_communication like edidc occurs 0 with header line,
          i_data like edidd occurs 0 with header line.
    data: begin of i_ekko occurs 0,
          ebeln like ekko-ebeln,
          aedat like ekko-aedat,
          bukrs like ekko-bukrs,
          bsart like ekko-bsart,
          lifnr like ekko-lifnr,
          end of i_ekko.
    data: begin of i_ekpo occurs 0,
          ebelp like ekpo-ebelp,
          matnr like ekpo-matnr,
          menge like ekpo-menge,
          meins like ekpo-meins,
          netpr like ekpo-netpr,
          end of i_ekpo.
    start-of-selection.
    select  ebeln aedat bukrs bsart lifnr from ekko
              into table i_ekko where ebeln in s_ebeln.
    select ebelp
           matnr
           menge
           meins
           netpr
           from ekpo
           into table i_ekpo
           where ebeln in s_ebeln.
    control_record-mestyp = messagetyp.
    control_record-rcvprt = 'LS'.
    control_record-idoctp = idoc_name.
    control_record-rcvprn = '0MART800'.
    loop at i_ekko.
    header_segment_data-ebeln = i_ekko-ebeln.
    header_segment_data-aedat = i_ekko-aedat.
    header_segment_data-bukrs = i_ekko-bukrs.
    header_segment_data-bsart = i_ekko-bsart.
    header_segment_data-lifnr = i_ekko-lifnr.
    i_data-segnam = header_segment_name.
    i_data-sdata = header_segment_data.
    append i_data.
    select ebelp
           matnr
           menge
           meins
           netpr
           from ekpo
           into table i_ekpo
           where ebeln = i_ekko-ebeln.
    loop at i_ekpo.
    item_segment_data-ebelp = i_ekpo-ebelp.
    item_segment_data-matnr = i_ekpo-matnr.
    item_segment_data-menge = i_ekpo-menge.
    item_segment_data-meins = i_ekpo-meins.
    item_segment_data-netpr = i_ekpo-netpr.
    i_data-segnam = item_segment_name.
    i_data-sdata = item_segment_data.
    append i_data.
    endloop.
    clear i_ekpo.
    refresh i_ekpo.
    endloop.
    call function 'MASTER_IDOC_DISTRIBUTE'
      exporting
        master_idoc_control                  = control_record
      OBJ_TYPE                             = ''
      CHNUM                                = ''
      tables
        communication_idoc_control           = i_communication
        master_idoc_data                     = i_data
    exceptions
       error_in_idoc_control                = 1
       error_writing_idoc_status            = 2
       error_in_idoc_data                   = 3
       sending_logical_system_unknown       = 4
       others                               = 5
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    else.
      loop at i_communication.
        write: 'IDOC GENERATED', i_communication-docnum.
      endloop.
      commit work.
    endif.
    initialization.
    titl = 'ENTER THE PURCHASE ORDER NUMBER'.
    Reward points if helpful.
    Regards.
    Srikanta Gope.

  • How we can restrict generation of schedule line if Target Qty is reached.

    Dear Gurus,
    What is the Exact Role of Target Qty in Scheduling Agreement.
    I have an issue here is even if the Target Qty is reached , system generates schedule lines through MRP.
    How we can restrict the generation of schedule line if Target Qty is reached.
    One way is to control though source list. But this option is ok if I am handling few items. But If there are more than thousand items , then it will be difficult to remove from source list one by one .Also I have to track all those items whose target qty is over.. If u get any other way to handle this please let me know.
    Please help in resolving the issue.
    Thank you
    regards
    Amar

    Hi,
    I have checked ,and aslo saw Note 83343 -but no solution yet.
    But I thik system will generate schedule line or PR (through MRP) if there is requirement.
    Since if in  the material master is MRP relavant field are maintained and source list is maintained with proper in indicator .
    Then whenever there is any MRP relavant Change (Goods issue , Receipt etc)  , an entry will be made in planning file entry (NETCH,NETPL) and system will generate schedule .
    Hence to resolve the subject issue ,it is better to remove the the item from souce list and MRP (No Planning -ND).then system will not genrate Schedule.
    Thank you
    regards
    Amar

  • Any BADI returning the 'IDOC Status'  during IDOC generation.

    Hello All,
    I need a BADI which is being called during any IDOC generation and which returns the 'IDOC Status' i.e. Pass/Fail etc.
    So far I am able to find BADIs like 'IDOC_DATA_MAPPER' or ''IDOC_DATA_INSERT'' but such BADIs only return the IDOC document number.. they do not return any information on IDOC Status (the field Status field remains blank).
    Can any one suggest some solution on this please.
    Regards
    Vikas Gupta

    Hi Erik,
    Thanks for your reply, though i was able to get the status from BADI IDOC_DATA_MAPPER itself (earlier there were some config issues...which were creating some problems) but thanks for letting me know about table EDIDS, it helped at places.
    Regards
    Vikas Gupta

  • Idoc generation

    HI All,
    If I enter the necessary data in tcode ME21 for purchase order and click on save button, corresponding idoc is to be generated.
    This is my requirement.
    For this, I worked out and came to know that I have to configure the following steps:
    RFC destination, Ports Creation, Partner Profile configuration, Distribution control.
    Apart from these, any other configuration is to be done ??
    Plz suggest me in what order i have to do all these....
    rgds,
    anil.

    Hi satish kumar ,
    Go through the following links
    You will find important information about IDOC generation
    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    ALE/ IDOC/ XML
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp
    http://help.sap.com/saphelp_srm30/helpdata/en/72/0fe1385bed2815e10000000a114084/content.htm
    IDOC Convertion
    /people/kevin.wilson2/blog/2005/12/07/changing-fields-in-an-idoc-segment
    Good Luck and reward me for the same
    Thanks
    Ashok.N

  • IDOC generation at time to transfer order creation.

    What are the config steps involved for idoc generation at the time of transfer order creation?
    please advise.
    Edited by: avi on Dec 25, 2008 5:31 AM

    Hello,
    TO creation with respect to Picking perspective:
    Lean WM --> output type WMTA can be used to create TO automatically can be created (you can go to NACE transaction and check the settings of WMTA)
    From MM WM perspective i think it is PUTAWAY concept, if Purchase order -->Inbound delivery will be created with ref. to inbound delivery TO (putaway) can be created.
    Link for IDoc maintenance:
    IMG>LE>WM>Interfaces>external systems-->configure wm
    link for Automatic TO creation:
    IMG>LE>WM>Interfaces>inventory management-->Activate Automatic TO creation
    Mahesh
    Edited by: Mahesh on Jan 2, 2009 11:19 PM

  • Error reading IDoc Metadata from CRM 5.0 (Basis 7.0) through XI 3.0

    We are not able to generate the IDoc metadata from XI 3.0 through IDX2 for port/RFC destination pointing to SAP CRM 5.0 which runs on the Basis 7.0 Web application server.
    Has anyone run into this issue?  We get the dialog box with information "I::000" Message no. 000.  The metadata is not generated at all.
    We have no problem generating IDoc metadata for other SAP systems including 6.40 and 4.6C basis layers.  Is there something different with 7.0 Basis?
    Thanks,
    Jay Malla
    SAP XI Consultant
    Licensed To Code

    Hi Renjith,
    Thanks for the suggestion.  We've already tried that out - the RFC call IDX_STRUCTURE_GET works from SE37 using the RFC destination that we have defined for the CRM system which is referenced in the port.  We can debug from the XI system into the CRM system and the data is returned correctly.  We can also generate the IDoc schema from the Integration Builder Repository.
    However, we cannot generate the metadata from IDX2.  If we point the port in IDX1 to another RFC destination for a non Basis 7.0 system, the metadata generation works.  So it seems that something is strange regarding generating the IDoc metadata for Basis 7.0 systems.
    Regards,
    Jay

  • Process code for IDOC Output from MIRO

    Hi,
    We need to find the Process code for IDOC output to assign Output type in ECC. We need the IDOC output to some other system like PR while doing the invoice Posting (Transaction code MIRO). We tried Using process code SD09 for the IDOC with IDOC Type INVOIC02. In SD09 we are getting error (Update terminated) when we trigger the output while saving in MIRO transaction.
    Further we understand that process code SD09 is used for SD billing and Invoice process.
    We need your help in
    1.      getting the correct process code for the IDOC generation for Invoice posting thru MIRO.
    2.      If we need to configure one process code, let me know the correct function module for the same.  
    Please Note, we need this as Output Idoc from Invoice Posting MM (MIRO).

    Hi Shankar,
    Thanks for quick for reply. We have tested this process code with IDoc type - GSVERF03 and message type - GSVERF. It worked for us for MIRO transaction.
    we are testing with IDoc type INVOIC02.
    once again thanks for sharing the process code.
    Regards,
    Brahma

  • Call GET_SEARCH_REASULT service from scheduler event filter Iin UCM

    Hi,
    In our application, the mail should get sent to the content author on content revised date. For that, we have written a scheduler event filter component which will get invoked after every five minutes. In filter class I want to call GET_SEARCH_REASULTS service to get the list of contents and its authors to send mail.
    Can anybody please tell me how to call GET_SEARCH_REASULTS service from scheduler event filter?
    Thanks in advance.

    Hi Nitin
    Why cant you try writing custom query and custom service ?
    Please refer idoc script reference guide for getting the parametrs to be passed when using Get_search_results.

  • How to trigger IDOC'S from SAP

    Hi All,
    How to trigger IDOC's from SAP(ECC 6)..where can we check this in mii 11.5 weather it is fail/success
    Thanks,
    Abhi

    You can trigger LOIPRO, LOIPLO and a few others manually from POIT (SAP Txn).  Master Data related to orders can be triggered from POIM.  Depending on which IDocs you which to generate, there are other transactions to trigger different IDocs.
    You can also use Triggers from MII to generate IDocs in SAP using CLOI_DOWNLOAD_TRIGGER_MDAT (POIM equivalent) and CLOI_DOWNLOAD_TRIGGER_TRANS (POIT equivalent).
    There is also a rather nice post which detailed the process of using change pointers to automate the IDoc generation and download, but I am having trouble finding it.  Will continue to look and will post link when I find it.
    Regards,
    Mike
    I couldn't find the post I was looking for, but there is an informative note 390635 which may help.
    Edited by: Michael Appleby on May 5, 2009 1:29 PM

  • Huge no. of IDocs flow from XI to R/3

    Hi,
    One of my customer wants to run certain jobs that will create IDocs of around 90K and those will first reach XI prod box and from there messages/IDocs gets transferred to R/3 production server. I have two questions on this :-
    <Sender R/3 server> -> <XI Prod> -> <Receiver R/3 prod server>
    1) At sending R/3 system I can run bgd jobs at certain intervals to control IDoc generation flow towards my XI server. But in XI servers all messages shows in queues (SXMB_MONI) one after another. Is there any way bundle them a range (date/time wise) and then ensure those group of messages delivery towards destination i.e. towards R/3 production server.
    2) Any of you observed 90K+ IDocs flow from XI prod box to R/3 prod server ? Is possibility for performance bottleneck at R/3 prod server end ? Anything to take care at XI end for this ?
    Any insight on this will be highly appreciated.

    Is there any way bundle them a
    Few options
    /people/michal.krawczyk2/blog/2009/05/21/xipi-collecting-idocs--possible-ways-with-pros-and-cons--5-ways
    If on Ehp1, choose idoc packaging (the last option)

  • R/3 connection to BIW - No Idocs arrived from the source system

    Question,
    Hi Team,
    I have issues during loading attribute data from R/3 source system to BI,
    I go to the path
    Data Warehousing Workbench - Modeling window. In the DataSources view, my application component Group ##. On my DataSource i Create Info Package and save it,
    Later I select the following options
    Full Update = select
    On the Processing tab page, select only PSA.
    On the Schedule tab page, choose Start Data Load Immediately and start the data load.
    Till here everything is in active version and saved, and connection to the source system is active and working fine.
    However when I do loading I received following messages, what I observed in Monitor window,
    Data was requested OK
    Request still running
    Diagnosis
    No errors found. The current process has probably not finished yet.
    System Response
    The ALE inbox of BI is identical to the ALE outbox of the source system
    or
    the maximum wait time for this request has not yet been exceeded
    or
    the background job has not yet finished in the source system.
    Current status
    No Idocs arrived from the source system.
    When I go to detail tab, under transfer section, I receive the following message
    Data Package 1 : arrived in BW ; Processing : Selected number does not agree with transferred n
    But when I actually go to PSA maintain section and select data and no of records, I can see the that data is loaded into PSA section,
    But when I chose to run the transformation I donu2019t get data here,
    Kindly help me to resolve this issue,
    Regards,
    BluSKy

    Hi,
    the BIW i am using , its compact BIW, which is in EXI, and i execute transaction /nrsa1 to go biw development workbench,
    i am not sure about transactions settings about r/3 side,
    could you plz throw some light on this issue,
    regards
    blusky

Maybe you are looking for