Mass processing for inbound orders idoc's from file

Hi Experts,
I have an requirement wherein we need to process all the ORDERS idocs sent from a thrid party system to a particular folder in the SAP system. Now we use a custom programme which in turn calls fn module IDOC_INBOUND_FROM_FILE to process each file. Here if the fn. module IDOC_INBOUND_FROM_FILE hits an erroneous file (control record error) it issues abend message which causes to entire programme to exit leaving rest of the files in the folder unprocessed.
Let me know if there is any other function module or way to tackle this issue so as to process all the files.
Thanks & Regards,
Jimmy.

Add the exception ERROR_MESSAGE = 99 (or some other unique number) to the standard exceptions in the function module call in your custom program.  This will allow you to trap the error and continue processing.

Similar Messages

  • How to place a delivery block at line item level from Inbound ORDERS IDoc?

    Hi EDI/ABAP Experts,
    Can anyone please tell me how to place a delivery block at line item level from Inbound ORDERS IDoc?
    I tried using exit "EXIT_SAPLVEDA_001'. But there is no LIFSP field in either of XVBEP and YVBEP structures.
    Can you guys throw some light. How to place a delivery block @ line item level on sales order from Inbound ORDERS IDoc.
    Thanks,
    Matt .

    Look into the Include: LVEDAF5A that is the only place where this exit is hit... double click on the Structures and look which structure has billling block field.. and use that..
    FORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
      CALL CUSTOMER-FUNCTION '001'
        EXPORTING SEGMENT = IDOC_DATA
                  DVTCOMAG = VTCOMAG
                  DXMESCOD = IDOC_CONTRL-MESCOD
                  CONTRL   = IDOC_CONTRL
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DD_FLAG_P = D_FLAG_P
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        CHANGING  DXVBAK   = XVBAK
                  DD_FLAG_K = D_FLAG_K
        EXCEPTIONS
                  USER_ERROR = 01.
    If you are in ECC6.0  you can also use Enhancement point : INTERPRET_IDOC_ORDERS_01 SPOTS ES_SAPLVEDA. in include: LVEDAF2U

  • How to delete E1EDP19 002 segment frm the inbound ORDERS IDoc?

    Hi ABAP/EDI experts,
    I am implementing an User exit related to inbound Sales order EXIT_SAPLVEDA_001.
    Most of the time my IDocs contain the below segments.
    E1EDP19 001 (QUALF = '001')
    E1EDP19 002 (QUALF = '002')
    Sometimes, IDoc contain only E1EDP19  001 (QUALF = '001') segment.
    My problem is whenever i have two E1EDP19 segments, i want to delete the 1st E1EDP19 segment and retain the second E1EDP19 segment.
    Can anyone tell me the pseudocode for deleting the 1st E1EDP19 segment from the inbound orders IDoc.
    Am i using the correct user exit??
    Thanks,
    Creasy Matt
    Edited by: Creasy Matthew on Jan 22, 2009 12:56 AM

    Hi Matt,
    You can loop on idoc_data internal table. This table will be having all the data and the segments.
    data: l_count type i value 0,
            l_tabix type sy-tabix.
    LOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.
    CASE idoc_data-segnam.
    WHEN e1edp19.
    l_tabix = sy-tabix.
    l_count = l_count + 1.
    if l_count = 2.
       l_tabix = l_tabix -1.
      delete idoc_data index l_tabix.
    endif.
    ENDCASE.
    ENDLOOP.
    I hope this will work.
    Please let me know if any issues.

  • Generating an IDOC for each Order present in the file (File to IDOC)

    Hi ,
    I have a requirement where in i have to generate an idoc for each orders present in a file . Initially i had implemented 1:N mapping by changing the occurence of idoc to 1..unbounded & using it as external definition i was able to generate multiple idocs.
    But now the requirement is that even if one record contains invalid data , then XI shoul process remaining records(which has  valid data) & then raise an alert for the invalid record . I have implemented this approach by using BPM (splitting the message) & the sending out each record as a single message to (1:1 mapping between file & IDOC).
    But now they dont want me to use an BPM . They want me to come up with an approach using 1:N mapping only where in i can make sure that the mappig doesnt fail even if there is one invalid record ,they want me to process remaining records & raise an alert for the invalid one .
    As far as i know this cant be done without BPM . Please let me know any valuable suggestions or inputs if there is any
    Regards
    Vinay P.

    Hi Vinay,
    Had a similar requirement few days back..
    What we did was to do a multimapping of 1:N where N = N1 and N2, N1 is the Idocs which you are doing today, N2 is the set of invalid records...
    Now we have written this as a file and then created another interface which will pick the file and based on the name of file we decided the To address. We have used mail package and this interface (file to mail ) was made as a generic one so that it can be used across many interfaces...
    filename and To address relationship was maintained as a value mapping in ID... You can have a thought of this approach and try to send the invalid records as a mail rather than alert.
    Regards
    Suraj

  • How to calculate work in process for maintenance order

    how to calculate work in process for maintenance order i.e raw materials not used

    Hi,
    Generally, when u create PR from maintenance order, account assignment category should be F. Cost of services first settles on the order when u create service entry sheet. Further it got settled onto settlement receiver given in order.
    If you want to change the category from F to K for maintenance orders then follow the IMG menu path as given below.
    Plant Maintenance and Customer Service > Maintenance and Service Processing > Maintenance and Service Orders  >
    General Data > Define Account Assignment Cat. and Document Type for Purchase Requisitions

  • Regarding Inbound Order Idocs

    Hi All,
    I want the tables in which Inbound Order Idocs were stored,
    Use WE02 transaction,
    i am trying to find the tables , but i cant, plz any body help me in this problem,
    Balu.

    Hi bala,
    do one thing..u wil get the idoc number as 0000000000123456(16 digit)..
    please chek the document numebr in the ztable,say for example in ur ztable it  is 10 character length.so u have extra 6 characters.
    so what u do is use CONVERSIONEXIT function module and delete the leading zeros,
    if u do like this.it will be 10 characters...
    now u can write the select query as u written,it won't give any error..
    Regards,
    Nagaraj

  • Down Payment processing for Sales orders using Milestone Billing Plan

    Hi,
    The business scenario is as follows.
    The delivery for the sales orders are to be created only after the pre payment( a percentage of the total sales order value) is made by the customer.
    Hence the sales orders while creation are blocked for delivery creation using credit block by means of a userexit.
    The credit manager checks the blocked sales orders using VKM1 transaction and verify if there are any payments made by the customer to cover this pre payment to be made.
    If it is enough to cover then he releases the sales order manually for delivery creation.This is a complex process since there are too many sales orders and the payments made by the customer may not match the amount to be paid(it can be greater or lesser).The customer just pays a huge amount which is to be distributed among the sales orders for pre payments.
    Later, when the invoice is created, the customer account is cleared manually using F-32 transaction for the oldest open invoices.
    Here again there is a huge manual effort involved since he need to distribute the amount against the invoices using oldest open item principle.
    As a solution we are planning to implement "Down Payment processing for Sales orders using Milestone Billing Plan".
    Is this the right solution?
    Can you please give the steps in detail to implement this functionality for above scenario?
    We are using SAP 4.7 version without Project Systems.
    Thanks in advance.
    Regards,
    Ragesh

    Hi Ragesh
    Check the links where you will get the entire down-payment configuration
    [https://forums.sdn.sap.com/post!replydownpayments ]
    Regards
    Srinath

  • Order management header level updation process for iStore order.

    Hi all,
    I worked on OM header level updation process for iStore order.only card holder name,expiration date updated using OE_ORDER_PUB.process_order but Credit card number,card type not updated for istore order in OM.so please help to me.
    CODE:
    SET SERVEROUTPUT ON;
    DECLARE
    v_api_version_number NUMBER := 1;
    v_return_status VARCHAR2 (2000);
    v_msg_count NUMBER;
    v_msg_data VARCHAR2 (2000);
    -- IN Variables --
    v_header_rec oe_order_pub.header_rec_type;
    v_line_tbl oe_order_pub.line_tbl_type;
    v_action_request_tbl oe_order_pub.request_tbl_type;
    v_line_adj_tbl oe_order_pub.line_adj_tbl_type;
    -- OUT Variables --
    v_header_rec_out oe_order_pub.header_rec_type;
    v_header_val_rec_out oe_order_pub.header_val_rec_type;
    v_header_adj_tbl_out oe_order_pub.header_adj_tbl_type;
    v_header_adj_val_tbl_out oe_order_pub.header_adj_val_tbl_type;
    v_header_price_att_tbl_out oe_order_pub.header_price_att_tbl_type;
    v_header_adj_att_tbl_out oe_order_pub.header_adj_att_tbl_type;
    v_header_adj_assoc_tbl_out oe_order_pub.header_adj_assoc_tbl_type;
    v_header_scredit_tbl_out oe_order_pub.header_scredit_tbl_type;
    v_header_scredit_val_tbl_out oe_order_pub.header_scredit_val_tbl_type;
    v_line_tbl_out oe_order_pub.line_tbl_type;
    v_line_val_tbl_out oe_order_pub.line_val_tbl_type;
    v_line_adj_tbl_out oe_order_pub.line_adj_tbl_type;
    v_line_adj_val_tbl_out oe_order_pub.line_adj_val_tbl_type;
    v_line_price_att_tbl_out oe_order_pub.line_price_att_tbl_type;
    v_line_adj_att_tbl_out oe_order_pub.line_adj_att_tbl_type;
    v_line_adj_assoc_tbl_out oe_order_pub.line_adj_assoc_tbl_type;
    v_line_scredit_tbl_out oe_order_pub.line_scredit_tbl_type;
    v_line_scredit_val_tbl_out oe_order_pub.line_scredit_val_tbl_type;
    v_lot_serial_tbl_out oe_order_pub.lot_serial_tbl_type;
    v_lot_serial_val_tbl_out oe_order_pub.lot_serial_val_tbl_type;
    v_action_request_tbl_out oe_order_pub.request_tbl_type;
    v_msg_index NUMBER;
    v_data VARCHAR2 (2000);
    v_loop_count NUMBER;
    v_debug_file VARCHAR2 (200);
    b_return_status VARCHAR2 (200);
    b_msg_count NUMBER;
    b_msg_data VARCHAR2 (2000);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('Starting of script');
    -- Setting the Enviroment --
    mo_global.init('ONT');
    fnd_global.apps_initialize ( user_id => 1013438
    ,resp_id => 21623
    ,resp_appl_id => 660);
    mo_global.set_policy_context('S',204);
    -- Header Record --
    v_header_rec := oe_order_pub.g_miss_header_rec;
    v_header_rec.request_date := SYSDATE;
    v_header_rec.header_id := 251413;
    v_header_rec.credit_card_holder_name :='esakki';
    v_header_rec.credit_card_number := 'XXXXXXXXXXXX3510';
    v_header_rec.credit_card_expiration_date := to_date('01-JAN-2014','dd-mon-yyyy');
    v_header_rec.credit_card_code := 'MASTERCARD';
    v_header_rec.payment_type_code := 'CREDIT_CARD';
    v_header_rec.sold_to_org_id := 131747;
    v_header_rec.sold_from_org_id := 204;
    v_header_rec.ordered_date := SYSDATE;
    v_header_rec.operation := OE_GLOBALS.G_OPR_UPDATE;
    v_action_request_tbl (1) := oe_order_pub.g_miss_request_rec;
    -- Line Record --
    v_line_tbl (1) := oe_order_pub.g_miss_line_rec;
    DBMS_OUTPUT.PUT_LINE('Starting of API');
    -- Calling the API to update the header details of an existing Order --
    OE_ORDER_PUB.PROCESS_ORDER (
    p_org_id =>204
    ,p_operating_unit => NULL
    p_api_version_number => v_api_version_number
    ,p_init_msg_list => fnd_api.g_false
    ,p_return_values => fnd_api.g_false
    ,p_action_commit => fnd_api.g_false
    , p_header_rec => v_header_rec
    , p_line_tbl => v_line_tbl
    , p_action_request_tbl => v_action_request_tbl
    , p_line_adj_tbl => v_line_adj_tbl
    -- OUT variables
    , x_header_rec => v_header_rec_out
    , x_header_val_rec => v_header_val_rec_out
    , x_header_adj_tbl => v_header_adj_tbl_out
    , x_header_adj_val_tbl => v_header_adj_val_tbl_out
    , x_header_price_att_tbl => v_header_price_att_tbl_out
    , x_header_adj_att_tbl => v_header_adj_att_tbl_out
    , x_header_adj_assoc_tbl => v_header_adj_assoc_tbl_out
    , x_header_scredit_tbl => v_header_scredit_tbl_out
    , x_header_scredit_val_tbl => v_header_scredit_val_tbl_out
    , x_line_tbl => v_line_tbl_out
    , x_line_val_tbl => v_line_val_tbl_out
    , x_line_adj_tbl => v_line_adj_tbl_out
    , x_line_adj_val_tbl => v_line_adj_val_tbl_out
    , x_line_price_att_tbl => v_line_price_att_tbl_out
    , x_line_adj_att_tbl => v_line_adj_att_tbl_out
    , x_line_adj_assoc_tbl => v_line_adj_assoc_tbl_out
    , x_line_scredit_tbl => v_line_scredit_tbl_out
    , x_line_scredit_val_tbl => v_line_scredit_val_tbl_out
    , x_lot_serial_tbl => v_lot_serial_tbl_out
    , x_lot_serial_val_tbl => v_lot_serial_val_tbl_out
    , x_action_request_tbl => v_action_request_tbl_out
    , x_return_status => v_return_status
    , x_msg_count => v_msg_count
    , x_msg_data => v_msg_data
    DBMS_OUTPUT.PUT_LINE('Completion of API');
    IF v_return_status = fnd_api.g_ret_sts_success THEN
    COMMIT;
    DBMS_OUTPUT.put_line ('Order Header Updation Success : '||v_header_rec_out.header_id);
    ELSE
    DBMS_OUTPUT.put_line ('Order Header Updation failed:'||v_msg_data);
    ROLLBACK;
    FOR i IN 1 .. v_msg_count
    LOOP
    v_msg_data := oe_msg_pub.get( p_msg_index => i, p_encoded => 'F');
    dbms_output.put_line( i|| ') '|| v_msg_data);
    END LOOP;
    END IF;
    END;
    OUTPUT:
    Starting of script
    Starting of API
    Completion of API
    Order Header Updation Success : 251413
    Thanks,
    saran

    Forgot to mention :Soruce is Oracle EBS

  • Mass Processing for Forecast SOP

    Hi Experts,
    I have one requirement, I have to run Mass Processing for Forecast SOP in background Job based on consumption values updated in Material Master.
    I have followed all instruction give for doing this process (SAP SOP Mass Processing - SAPs'WORD - We SAP For Your Cause) but could not achieve.
    Can any one help to run in background job for Mass Processing for Forecast SOP.
    Thanks in Advance
    V.Sundeep

    Hello,
    Refer KBA    1778072 - Error message MA 653 when running mass processing forecast (program RMCP6BIN)
    Internal condition NOT IPRWA-VGVON IS INITIAL not fulfilled
    Internal condition NOT IPRWA-VGBIS IS INITIAL not fulfilled
    Forecast/historical period cannot be calculated MA 653
    Check your planning type which is used for your batch job. The number of historical periods in planning type (transaction MC8B) must not be smaller than the number of historical periods in forecast profile (transaction MC96). If the number of forecast period is maintained in the forecast profile (transaction MC96) the number of future period in the planning type must not be smaller than the number of forecast period in the forecast profile.
    A not appropriate entry in SOP User Settings (transaction MC79) in Number of periods in the planning horizon can have an effect on this also.
    Best Regards,
    R.Brahmankar

  • Auto Replishmnet process for Sales Orders

    Hi,
    Can any body suggest, how we can follow "Auto Replishmnet process for Sales Orders" for Particular customers with for required articles.
    Please suggest replishment process for sales orders.
    Regards
    Kiran kovi

    Hi,
    This process is available in SAP Retail. Help says you can use it for manufacturing as well.
    You can read up more about VMI: Customer replenishment here:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/86/37e622f09b11d18ca1080009d10d9a/content.htm
    Hope that helps!
    Regards,
    Naveen

  • Process for setting up new directories and files on Unix

    I am trying to document a process �Process for setting up new directories and files on Unix batch servers�.
    Developer will be developing project on Windows and I need tell them as well as QA team how the Unix directory and file structure.
    Please let me know how is the process in Unix on AIX.
    If I get some documentation regarding this it will be useful.
    Thanks in advance
    Regards
    San

    well on unix/Linux/solaris there are no drives but storage heirarchy starts with a root directory represented with ' / '. and all files and directories are created in root directoy like
    /usr/local/bin
    /export/home/san
    etc
    also filesystem of unix consists iNodes rathar than FAT entries as in case of Windows.
    some basic information is available at
    http://www.techonthenet.com/unix/index.php
    Regards

  • Inbound Delivery Idoc processing for Purchase Order

    We are trying to create a Inbound Delivery for purchase order. We are using idoc basic type DELVRY03.
    When we are processing this Idoc we are constantly getting error :
    Item 00000 of purchasing document does not exist
    Message no. ME706
    Diagnosis
    Purchase order 00000 with item was not found.
    Procedure
    Enter a different purchase order.
    We have mapped the PO and PO Item fields to Idoc segment fields E1EDL24-VGBEL and VGPOS respectively.
    Let me know if anyone came across or know the reason for this message and remdy.
    Thanks in advance.

    Hi Milind,
    Did you get this to work?
    Thanks,
    Finbarr

  • System status for IDOC creation and processing for production orders

    All
    I am creating IDOCs for production orders to send requirements to an external WM system for kitting execution.
    I need to know whether there are any system statuses to notify me when an IDOC has been created,failed and processed. If not, how do I go about creating user defined statuses for these statuses.
    Second question, which idocs should I use to confirm, teco and cancel the production orders from an external system?
    Thanks
    Evan

    HI Evan
    u can use the standard program - RBDMOIND scheduled in back ground to update the Idoc staus ,
    this helps to update the IDoc Status from
    '03     Data passed to port OK  '  to
    '12     Dispatch OK'
    status 03 indicates the IDoc is successfully transmitted to Communication Layer and the Status 12 helps to confirm the data dispatch to the receiving port.

  • Mass processing of sales orders

    Dear All,
    The scenario is, we need to remove the delivery block from the sales order and the sales orders are huge in number. So is there a easier way to do the same or the only option is to use the transaction VA02 and change each one.
    What is this VA14L for?
    Looking for some help other than MASS as the authorization to this transaction cannot be given to end users..
    Thanks & Regards,
    Arun

    Hi Arun,
    I think SAP wants to drive a point here. Industry best practices, probably do not allow for "closing eyes and releasing dely blocks for multiple orders at a time??!!!"
    I think you got it right - VA14L - and the only solace is: You can select a bunch of docs from this screen and press Edit Sales doc...icon. this will save you from opening each and every individual doc on your own - it opens VA02 of each sales order one after the other and you can maintain the values.
    Probably it is best addressed by reviewing the business requirement that lands up in a situation of huge orders getting into dely block...that's not the ideal situation to be, rite?
    The benefits of SAP lies in altering the business process to suit the appln rather than tampering the appln to suit the business process! hope, you agree with this one!
    Hope, this helps!
    Thanks,
    siva

  • Mandatory fields for inbound delivery idocs

    hi all
    i want to generate inbound idocs for inbound delivery ASN
    i am using message type DESADV and idoc type /AFS/DELVRY03
    in order to generate inbound idoc what are mandatory values i have to pass to the idocs
    thanks
    Anil

    HI,
    I created inbound idoc for ASN Inbound delivery in test mode we19
    i got idoc with status 62, when i am trying to process the idoc in bd87, its allowing me
    is there any other way to process the idocs , so that status will be 53
    thanks

Maybe you are looking for

  • System Lockup AFTER installing ExpressCard Update 1.0!!?

    hey there, before i installed the expresscard update 1.0, my mbp was running fine. just after that though i'll get random systemwide lockups. i've noticed this happens only when i'm loading a page from Safari. Only 3 applications are running. AdiumX,

  • GarageBand running in the background with video app open

    I was wondering if GarageBand will run in the background while I'm using the video app on the iPad. Basically, I'm looking to have my guitar running into my iPad with GarageBand running, while watching/following along with a guitar video lesson I als

  • Default Printer for Cheque print

    Hi Experts, We are using Y forms which are assigned to SAPWIN and we are using SAPWIN as device type. How ever when we are testing cheque print function, the error is coming "Device Type HPLIID does not support YINFORM" Is there any place where this

  • Digital Camera Loading ?

    Hi guys I've Canon PowerShot G9 and whenever I connect it to my MacBook Pro iPhoto Pops up and you know the rest... but what I want is to be able to copy/move/browse the files/pictures on my memory card. like when you connect your camera to Windows y

  • Order on-line print copy

    how do you order on-line print copies of pictures?