Error log in VL10a background mode

Hi,
We are using the BADI  - LE_SHP_DELIVERY_PROC ->DELIVERY_FINAL_CHECK to populate messages in the log. The messages are populated in the CHANGING parameter (ct_finchdel ) of the method and once an error is inserted in this table, the delivery creation is blocked. The error message is populated in the following way:
ls_finchdel-vbeln    = wa_it_xlikp-vbeln.  " This is the delivery number
ls_finchdel-pruefung = c_99.
ls_finchdel-msgty    = c_e.
ls_finchdel-msgid    = c_zsx_idc.
ls_finchdel-msgno    = c_208.
insert ls_finchdel into table ct_finchdel.
But there is an issue when we try to create ONE delivery by giving TWO sales orders.
Out of the two sales orders provided, if one of the sales orders goes into error; the delivery should still be created with the other SO. But if the above method is used, all the sales orders which was used to create that delivery will go into error.
Can someone please suggest a solution for this? Basically what we are looking for is a method to update the individual SO in the error log. if all slaes orders which combines into one deliveyr goes into eroor, the delvery creation should be blocked. In other caeses a partial dleivery should be created with appropriate logs.
Best regards,
Rajalakshmi

The scenario mentioned by you cannot be handled through the BADI. The method DELIVERY_FINAL_CHECK is triggered just before saving the delivery irrespective of single Order/multiple order as reference.  If you want to handle this you should populate the error message log based on the custom validation of all reference orders.

Similar Messages

  • Regarding capturing VF01 ERROR logs in a background job

    Hi ,
    We are running a background job that calls transaction VF01 via BDC .
    CALL TRANSACTION 'VF01' USING   bdcdata
                              MODE    S
                              UPDATE  N
                              MESSAGES INTO gt_messtab.
    In some cases billing documents will not be generated. In such cases systems will throw message "Check the log "
    After which we can check the error messages via Menu Edit>logs.
    This error messages (stored in XVBFS internal table) need to captured in the job log  i.e custom programme.
    Unfortunately i could not found any user exits/BADIs that can help me in capturing message.
    Can you please help me how can i solve this issue?
    Thanks in advance
    Manoj
    Edited by: Manoj J on Nov 16, 2011 9:42 AM
    Moderator message : Duplicate post locked, continue with original thread [How to capture error logs of VF01 in a background job log   |Re: How to capture error logs of VF01 in a background job log].
    Edited by: Vinod Kumar on Nov 16, 2011 3:34 PM

    Hi Manoj,
    I had a similar problem.
    I solved it selecting from VBSK the last record of the user regarding elaboration of invoices, and then calling f.m. 'VBSK_ALV_DISPLAY'.
    Otherwise you could call directly transaction "V.21"
    Hope this could help you
    Andrea

  • Is there any FM to generate spool request for error log of a background job

    Hi,
        I am going to create a program to create deliveries and do PGI. This program will be assigned to periodic background job.Now whatever  errors are generated in program i have to send the error log to spool request.Is there any FM for generating spool request with this error log  or how can this be done? Kindly provide sample code if possible.
    Thanks.
    Nimish Dongare.

    Hi Nimish,
    How are you doing, This is Shreekant working as ABAP developer, I sow your post in sdn forum, I have a similar requirement like I am changing the delivery taking some data from a flat file which is coming from other system and do PGI. If any error occurs during this process I need to capture it and present it as a report or create log file.. whichever is easier.
    Please can u help me how did u achieved this functionality for your requirement?.. pls. can u share some details.
    If u don mind, can u give me ur email id to communicate.
    Thanks,
    Shreekant

  • Error in BDC in background mode.

    Hello Experts,
    I am having a query related to BDC. I have written the BDC for TCode : CKMPRPN (Future Price Maintenance). When I execute the BDC thru Call transaction method it works properly.
    When I Create the Session and execute in foreground mode then also it woks but when i try to execute in background mode it gives me an error.
    Please suggest me the proper Solution.
    Thanks
    Swati

    Hi ,
    Check wheter the field names for the transaction recorded are correct sometimes the field names are not fully copied to se38, if the filed name is to long.However when you run the BDC in foreground it runs ,but when you execute in background it fails, Check for the field names for the recorded transaction in SHDB and in the program.
    Thanks,
    Ahsan

  • How to handle error messages in BDC background mode

    Hi experts,
      I got one problem in BDC, We are uploading data throgh BDC program,that program is calling Standard Batch Input programs,
    Now we got one requirement, i.e., In some special cases we have to send one message as a error message.I handled this in foreground but, how to handle this in background.

    Hi,
    if session is being used
    automatically the log will begenereated in the sm35 transaction
    but if call transaction is used
    put all the error messages in the applicationserver using
    open data set
    and after the exectionof the program in the background
    you have to run another progam which reads the data stroed inthe application server
    that also with open data set only...
    thanks & regards,
    Venkatesh

  • Write the Error log from background Job to the Spool request

    Hi ,
    I have a situation where in i need to capture the error log of a Z program which runs as a background job and write that log into the spool request. My Z program calls runs RSEINB00 program using the SUBMIT statement. When this Job fails the error log can be seen in SM37. But i need this error log to be sent in to a spool.
    I can read the error log using the BP_JOBLOG_READ FM and can also create a spool using the RSPO_SPOOL_OPEN FM.
    The problem is, when the Submit statement executes, due to internal valdation in the RSEINB00 program the program terminates. Due to this it is not able to perform the SY-SUBRC Check and thus doesn't read the log.
    Can anybody suggest me how to overcome this problem. I am attaching the code for your refernece.
    SUBMIT RSEINB00
           USING SELECTION-SET 'TEST2'
                           TO SAP-SPOOL
                           LIST NAME 'LOCL'
                           IMMEDIATELY space
                           KEEP IN SPOOL 'X'
           AND RETURN.
    <b>If sy-subrc <> 0.</b>           
                 CALL FUNCTION 'BP_JOBLOG_READ'
                  EXPORTING
                    CLIENT                      = SY-MANDT
                    JOBCOUNT                    = i_tbtco-jobcount
                    JOBLOG                      = i_tbtco-joblog
                    JOBNAME                     = i_tbtco-jobname
                   TABLES
                     JOBLOGTBL                   = l_joblog
                 IF SY-SUBRC <> 0.
                 else.
                    message i002 with l_joblog-msgv1.
                 ENDIF.
    <b>
    ENDIF.</b>
    Rgds,
    Kewal
    P.S. : any other approach to solve this problem will be appreciated too and the points will be rewarded suitably.

    If I select a job in SM37 and I click on "spool" I get a list with separate spool entries for each of the steps, e. g.
    Programmname/Kommand   Programmtyp   Spoolliste
    Z_MM_STAT_UPDATE_WERK  ABAP             1707445
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_WERK  ABAP             1707459
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_MARA  ABAP             1721423
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_WERK  ABAP             1721437
    Z_MM_STAT_UPDATE_MARA  ABAP             1721446
    Z_MM_STAT_UPDATE_WERK  ABAP             1721447
    Z_MM_STAT_UPDATE_VKORG ABAP             1721471
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_VKORG ABAP             1721521
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_VKORG ABAP             1721816
    It's in German but I'm sure you get the idea. For each Z_MM_STAT_UPDATE and variant I have a separate spool list that I can display.
    Markus

  • How to add the error message into Delivery Error Log (VL10A,VL10X)

    Hi,
    I have a to add my custom message into Delivery creation error log (VBFS, VBSS)
    This message should be shown in the Collective process log (VL10X, VL10A).
    Please give me the soln to solve this problem.
    I have searched in SDN, i didnt get the proper solution
    Thanks
    Shankar

    HI,
    Make use of the BADi "LE_SHP_DELIVERY_PROC"
    Use the method DELIVERY_FINAL_CHECK.
    Pass the error messages in table CT_FINCHDEL.
    Regards,
    Ankur Parab

  • Error in batch session processing in background mode

    Hi ,
    I am trying to do data transfer using batch session for transaction FD32.
    Here the batch session is executing when I am processing the session in foreground.
    Whereas in background mode it is failing.
    Please check and assit.
    Regards
    Kishore

    Hi Kishore,
    Probably it will be some information or warning message which is coming in the background execution of the session.
    That is the reason your session is going into error. Run the errored out session once again in foreground mode. You will get to know the reason of failure.
    Please let us know of any doubts.
    Cheers
    VJ

  • SM35 Re-processing of Incorrect/Error session in Background Mode

    Hi all,
    I am trying to reprocess a session in SM35 which is in Error status. Here I am a facing an issue, if I reprocess this session in background mode then it says that Batch input data is not available for a screen which is already processed. Ideally it should start from the screen where it threw error in the first run. If I select mode as Foreground or Display error then session is getting processed correctly.
    Note:
    If the session is in Ready to Process state then processing in background works perfectly fine. Has anyone came across this problem ?
    Has anyone tried reprocessing Incorrect Session in background mode ??????
    Regrads,
    Antony

    Thanks Sandra,
    Indeed I understood the problem. And the problem is that transaction KEBC is always executed correctly & since its processed correctly its removed from the BDC Queue
    Here transaction KEBC, sets a Memory Parameter, and transaction KEU2, first checks whether the memory parameter is initial, if found intial it pops-up a screen and makes the user enter it. In my case KEBC  always run successfully
    As you rightly suggested when session is in error, transaction KEBC is not getting called again to set the memory parameter & its throwing the pop-up from the transaction KEU2 to be entered by the user. ( BDCDATA currently dosent handle this Pop-up).
    I could have omitted the KEBC transaction, but handling this pop-up from transaction KEU2 becomes tricky since it will only pop-up if the memory parameter is initial. And unfortunately Pop-up is the first screen in the sequence for transaction for KEU2 & nothing can be done in coding level to call KEU2 with the pop-up in all scenarios(Even when Memmory varaible is set) !
    So I am kind of in a dilema, how to handle this? What I am suggesting to the Functional consultant is that let the session be only run in background mode (as it will be always in a new internal session memory variable will always be inital ) & I will record this pop-up in my BDC omitting transaction KEBC.
    Do you have anyother solution for this?
    Or is there any option to re process even the successfull transacations ?

  • DML Error logging table in Set base mode

    Hi all,
    In ETL data errors can be handled thru error logging table. Like this example given in the document-
    INSERT /*+ APPEND PARALLEL */
    INTO sales SELECT product_id, customer_id, TRUNC(sales_date), 3,
    promotion_id, quantity, amount
    FROM sales_activity_direct
    LOG ERRORS INTO sales_activity_errors('load_20040802')
    REJECT LIMIT UNLIMITED
    In this example bulk loading is possible even in the presence of errors. The data errors will go in table 'Sales_activity_errors'.
    I want to generate this kind of coding in OWB in set base mode. For that i have to create a error logging table in target schema. How can I reference this table in a mapping? can it be done by shadow table? It's a very important feature in ETL for bulk loading. Is it available in OWB in set based mode?
    Guyzz please check this out and help me..
    Regards,
    Sumanta

    Hi,
    I am not sure if the DML error logging method is avaliable to be used in OWB 10g R2. You can use the data rule method. Create the data rules on the target table. Deploy it from OWB. Create your mappings and then execute them. Two insert statements will be generated. One for loading the target table for loading records where no rules are violated. The other for loading the <target table>_ERR for loading records where one or more error rules are violated.
    Both these statements do a bulk loading. So your purpose will be solved.
    Again you can use the splitter method that has already been mentioned.
    Regards
    -AP

  • Error in BIM when running in background mode

    Hi,
    I am facing an error when running a BIM in sm35.
    The BIM runs fine with my userid in all three modes( foreground,display error mode, background mode)....but fails when the functional person is testing in background mode. The BIM runs fine in all other modes.
    It gives the message when running in background mode
    "No batch input data for screen SAPLMGMW 4008"
    What should I check or do to correct it.
    Please help.
    Regards
    Rashi

    The BIM runs fine in Foreground mode and in Display error mode even for the functional..It is giving error only for Background mode.
    I also did the following
    1.   Created the BIM in my id and tried running( in background) it using the other id ...it was successful
    2.   Created the BIM in other id and ran ( in background) using my id....it failed.
    I will check again for authorisations also.
    Regards,
    Rashi

  • Read Error logs after running the background jobs

    Hi,
    How to read the error logs after running the background jobs. In our scenarion we are running the COHV transaction to release the production orders in background. But we are not finding the error logs after background job. We would like to read the error logs and correct for further processing.
    Kindly suggest.
    Thanks & Regards,
    N. Laxman

    Hi
    you can check the  back ground jobs defined by any user in SM37 and where you can see the spool and job logs as well.
    plz check in your case and revert back
    Regards
    Anupam Sharma

  • Skip creating invoice scheduled in background and create error log in V.21 Tcode

    Hi All,
    When background job scheduled for VF04 (Billing Due List) to create billing document , we are checking condition for billing date . If the condition satisfied we are creating error log in V.21 by filling XVBFS structure in user exit . In this case billing document is been created .
    My requirement is to skip creating billing document and process the next document in billing due list . Can you please suggest in this regard.
    Thanks in advance.
    Narendra

    This is an excerpt from sap help:
    Putaway using storage unti types
    You receive a delivery of 200 pieces of material O2.
    You post the goods receipt of the delivery in Inventory Management.
    The system creates a transfer order for putaway.
    You display all transfer requests (TRs) for material O2.
    You choose the TR for which you want to create a transfer order (TO) from the list of transfer requests.
    In the palletization section of the preparation screen for the transfer order, the system automatically proposes five industrial pallets of 40 pieces. This proposal is based on the storage unit type in the material master record.
    Palletization
    SU
    Qty per Storage Unit
    SUT
    Type
    Section
    5
    X
    40.000
    IP
    X
    20.000
    Save your entries.
    The system creates the TO for putaway with the palletization data.
    You can also check this link:
    Warehouse Management System (WMS) - SAP Library
    It will help you understand this in more detail.

  • MOD OC4J errors in HTTP server Error log

    these errors are continously shown in the error log of HTTP server.
    and my error rate reaches upto 8% somtimes
    MOD_OC4J_0145: There is no oc4j process (for destination: home) available to service request.
    MOD_OC4J_0119: Failed to get an oc4j process for destination: home.
    MOD_OC4J_0013: Failed to call destination: home's service() to service the request.
    MOD_OC4J_0145: There is no oc4j process (for destination: home) available to service request.
    MOD_OC4J_0119: Failed to get an oc4j process for destination: home.
    MOD_OC4J_0013: Failed to call destination: home's service() to service the request.
    MOD_OC4J_0207: In internal process table, failed to find an available oc4j process for destination: home.
    MOD_OC4J_0150: Failed to deterministicly find a failover oc4j process for session request with uid:
    MOD_OC4J_0119: Failed to get an oc4j process for destination: home.
    MOD_OC4J_0013: Failed to call destination: home's service() to service the request.
    MOD_OC4J_0207: In internal process table, failed to find an available oc4j process for destination: home.
    MOD_OC4J_0119: Failed to get an oc4j process for destination: home.
    MOD_OC4J_0013: Failed to call destination: home's service() to service the request.
    MOD_OC4J_0207: In internal process table, failed to find an available oc4j process for destination: home.
    File does not exist: e:/ora9ias/forms90/java/java/awt/KeyboardFocusManager.class
    File does not exist: e:/ora9ias/forms90/java/oracle/forms/registry/default.dat
    File does not exist: e:/ora9ias/forms90/java/oracle/ewt/alert/resource/AlertBundle_en_US.properties
    File does not exist: e:/ora9ias/forms90/java/oracle/ewt/alert/resource/AlertBundle_en.class
    File does not exist: e:/ora9ias/forms90/java/oracle/ewt/alert/resource/AlertBundle_en.properties

    I get the same set of errors.
    9iAS 9.0.2.0.1 infrastructure and portal installed on same solaris 8 machine.
    Jeff Black

  • BDC VA01 in background mode error

    Hi ,
    I am psoting data into VA01 using BDC call transaction in background mode for two cases.
    For one it is running successfully and for the other it is not.
    I have compared the data in the table BDCDATA for both the cases and it is same.
    Then I tried debugging in foreground mode and the same case which was not running earlier is running in foreground mode.
    Please advice what could be the problem?

    >
    ABHI wrote:
    > I am getting the following messages:
    >
    >
    >
    > TCODE     DYNAME     DYNUMB     MSGTYP     MSGID     MSGNR     MSGV1     MSGV2     MSGV3     ENV
    > VA01     SAPMV45A     4001     W     VU     1          Purchase order date          CTU
    > VA01     SAPMV45A     4001     W     V1     221     5/27/2010               CTU
    > VA01     SAPMV45A     103     I     V1     81                    CD
    > VA01     SAPMSSY3     131     S     0     344     SAPMSSY3     131          CTU
    Hello ABHI,
    The problem is because of some breakpoints created by you. So it is entering it to debugger in the background mode which cannot be handled by the BDC. Delete all your breakpoints before testing or open a new logon session to test it in background.
    Hope this solves your problem.
    Regards,
    Karthik D

Maybe you are looking for

  • I participated in the mountain lion free upgrade for new mac owners but the password is too long to unlock the content code. HELP!!!

    i participated in the mountain lion free upgradde for new owners but i cannot open the content code because the password is too long! HELP!

  • Peer not authenticated error CFHTTP

    Hi I'm trying to call a web page using cfhttp. The url works fine and returns XML when called directly from the browser (any browser) but fails with the following error message when called from a .cfm file using cfhttp: struct Charset [empty string]

  • Meta tag on text

    Hi, Well, I'm using the simple example that comes with the tlf and now I'm making some customizations. Something that I'm need to do is to put some metatags on my text. For example, when the user type [sound:asdfas.mp3] i would like to mark  this tex

  • Dashboard Prompt Bins NOT WORKING

    Hi All, So, I got a set of Dashboard Prompts which include Year, Security Type Description, etc. etc. Apparently, only the Year dashboard prompt works. The Security Type Description does NOT work because I've added BINS to group several data items in

  • Explain the logic in the code

    HI all, Can anyone explain the logic in the code ? This is to display the pages numbers in page 1 of 4                                                          page 2 of 4 format. i got this code in one of the forum. if the lineno is less then 64, th