Deliver\y Creation using Batch Job

Hi,
I have set up automatic delivery creation using a batch job ( vl10batch). The program selects all sales orders in the last 3 days and creates delivery.
The problem is if in a sales order there are multiple line items each with a different delivery date.
If the delivert dates for all the line items fall within last 3 days the program selects all 3 line items and ceates 1 single delivery.
We would like to see a different delivery getting created for each line item.
Example: Sales order has 3 line items
Item A ( Del Date: 4/2/2010)
Item B ( Del Date: 4/5/2010)
Item C ( Del Date: 4/6/2010)
The batch program runs and created 1 single delivery followed by 1 TO.
Is there anyway we can seperate the deliveries based on date in the batch job?

If you are looking forward to a delivery split by different delivery date, it should be possible.
You should read note 546668, which explains the criteria of delivery split. Different LIKP-LFDAT can lead to delivery split.
Basically, you just need to copy LIKP-LFDAT from corresponding item in header copy routine then you will get deliveries splitted by delivery date.

Similar Messages

  • Delivery Creation using Batch Jobs

    Hi,
    I have set up automatic delivery creation using a batch job ( vl10batch). The program selects all sales orders in the last 3 days and creates delivery.
    The problem is if in a sales order there are multiple line items each with a different delivery date.
    If the delivert dates for all the line items fall within last 3 days the program selects all 3 line items and ceates 1 single delivery.
    We would like to see a different delivery getting created for each line item.
    Example: Sales order has 3 line items
    Item A ( Del Date: 4/2/2010)
    Item B ( Del Date: 4/5/2010)
    Item C ( Del Date: 4/6/2010)
    The batch program runs and created 1 single delivery followed by 1 TO.
    Is there anyway we can seperate the deliveries based on date in the batch job?

    Hello,
    check sales order is not signed as "Complete delivery", register "shipping". On item level you can set "fixed date and quantity" in register "schedule lines".
    Best Regards, Dirk

  • How to send an updated list using batch job

    Hi All,
      The program displays data on the screen, if the data looks ok, then there is an option to update.
    When I run update, the program submits a batch job and the basic list gets updated, but my batch job is still sending the data on the screen. how can i send the updated list using batch job.
      Ex: output of the program
                    1         2
           there is an update button on the screen, when i press update button, my program submits in batch job, the above list becomes
                    1        2
                    3        4
    but when i check the spool, it shows the o/p as         1           2 ..it is not sending the updated list.
    Please suggest me how to send the updated data
    Thanks,
    Kumar

    Hi Krishna,
      I have added a button on the alv list. when i press update button, my program updates the list, then submits the batch job. I am attaching the sample test program i am trying with, please suggest me how can i get the updated list.
    *& Report  ZTESTSSSSS
    REPORT  ZTESTSSSSS.
    DATA: gt_fieldcat TYPE slis_fieldcat_alv,
          lt_fieldcat type slis_t_fieldcat_alv,
          gt_sort     TYPE slis_t_sortinfo_alv,
          g_repid     LIKE sy-repid,
          gt_layout   TYPE slis_layout_alv.
    start-of-selection.
      lt_return-type = 'S'.
      lt_return-message = 'test message'.
      append lt_return.
      CLEAR gt_fieldcat.
      gt_fieldcat-fieldname = 'TYPE'.
      gt_fieldcat-outputlen = '3'.
      gt_fieldcat-tabname   = 'LT_RETURN'.
      gt_fieldcat-seltext_l  =  'Type'.
      gt_fieldcat-seltext_m  =  'Type'.
      gt_fieldcat-seltext_s  =  'Type'.
      APPEND gt_fieldcat TO lt_fieldcat.
      CLEAR gt_fieldcat.
      gt_fieldcat-fieldname = 'MESSAGE'.
      gt_fieldcat-outputlen = '15'.
      gt_fieldcat-tabname   = 'LT_RETURN'.
      gt_fieldcat-seltext_l  =  'Message'.
      gt_fieldcat-seltext_m  =  'Message'.
      gt_fieldcat-seltext_s  =  'Message'.
      APPEND gt_fieldcat TO lt_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM       = sy-repid
          I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          IT_FIELDCAT              = lt_fieldcat
        TABLES
          T_OUTTAB                 = lt_return
        EXCEPTIONS
          PROGRAM_ERROR            = 1
          OTHERS                   = 2.
    *&      Form  set_pf_status
          text
         -->RT_EXTAB   text
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD'.
    ENDFORM. "Set_pf_status
    *&      Form  user_command
          text
         -->R_UCOMM      text
         -->RS_SELFIELD  text
    FORM user_command USING r_ucomm     LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      DATA: li_count TYPE I.
      IF r_ucomm EQ 'UPD'.
    Adding another message
        lt_return-type = 'S'.
        lt_return-message = 'Another test message'.
        APPEND lt_return.
        rs_selfield-refresh = 'X'.
        rs_selfield-col_stable = 'X'.
        rs_selfield-row_stable = 'X'.
        l_upd = 'X'.
       LOOP AT lt_return.
         WRITE: / lt_return-type, lt_return-message.
       ENDLOOP.
        IF sy-batch IS INITIAL.
          l_upd = 'X'.
    Open the Job
          CALL FUNCTION 'JOB_OPEN'
            EXPORTING
              jobname          = w_name
            IMPORTING
              jobcount         = w_number
            EXCEPTIONS
              cant_create_job  = 1
              invalid_job_data = 2
              jobname_missing  = 3
              OTHERS           = 4.
          IF sy-subrc = 0.
            SUBMIT ('ZTESTSSSSS') VIA JOB w_name NUMBER w_number
                    AND RETURN
                    WITH p_recnnr = p_recnnr.
            CALL FUNCTION 'JOB_CLOSE'
              EXPORTING
                jobcount             = w_number
                jobname              = w_name
                strtimmed            = 'X'
              EXCEPTIONS
                cant_start_immediate = 1
                invalid_startdate    = 2
                jobname_missing      = 3
                job_close_failed     = 4
                job_nosteps          = 5
                job_notex            = 6
                lock_failed          = 7
                OTHERS               = 8.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.  "User_command
    Thanks,
    Kumar

  • Flat File Processing using Batch Job

    Hello,
    I need some ABAP advice...
    The scenario: There's a batch job that runs every hour and picks up all the files from APP server and processes them to creates idocs. Sometimes, while a batch job is running, a file is being created on the app server. But although the file is being written to and is not yet complete, the batch job picks up this file to create an idoc and hence leads to errors. Is there a way I can check if a file is already complete and then only the batch job should process the file.
    I am using SAP 4.6c and it doesnt allow me to use GET DATASET attributes...
    Any suggestions on how to check.....

    Hi Shipra,
    Check this code taken from another post to get the creation time of the file:
    *& Report  ZFILE_CREATE_DATE
    REPORT  zfile_create_date.
    TABLES epsf.
    PARAMETERS dir
      LIKE epsf-epsdirnam DEFAULT 'directory here'.
    PARAMETERS file LIKE epsf-epsfilnam DEFAULT 'file here'.
    DATA : mtime TYPE p DECIMALS 0,
                time(10),
               date LIKE sy-datum.
    CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
         EXPORTING
              file_name              = file
              dir_name               = dir
         IMPORTING
              file_size              = epsf-epsfilsiz
              file_owner             = epsf-epsfilown
              file_mode              = epsf-epsfilmod
              file_type              = epsf-epsfiltyp
              file_mtime             = mtime
         EXCEPTIONS
              read_directory_failed  = 1
              read_attributes_failed = 2
              OTHERS                 = 3.
    IF sy-subrc NE 0.
      WRITE: / 'error:', sy-subrc.
    ELSE.
    *The subroutine p6_to_date_time_tz is sap std present in rstr0400.
      PERFORM p6_to_date_time_tz(rstr0400) USING mtime
                                                 time
                                                 date.
      WRITE: / 'mtime:',mtime.
      WRITE: / 'date: ', date.
      WRITE: /  'time:',time.
    ENDIF.
    Regards,
    Gilberto Li

  • Invoice creation in batch jobas are not in sequence

    Hello ,
    I schedule two batch job with diffrent variant at the same time. When invoices are created in batch job there numbers are not in sequence. If I check creation time then Invoice creation time of Invoice  number 2 is latter than invoice creation time of number5.
    As per number range concept Invoice 2 should create before Invoice 5.
    Why this is happening?
    Regards
    RDC

    >
    > Thanks for the soon reply but here my legacy system is File it is having the fields like INV details and country key and customer details these details i want to send it to Target Ecc system based on the country .
    Use File Adapter in sender side to read the data from Legacy System ,if the legacy system data format not XML then use File content conversion in Sender comuniction channel to convert in to XML.
    > for exp: If the country is Us then create the vendor invoice in the Ecc system , if the country is IND then check whether the existed customer in the ECC system or not if Existed then those details update into one more legacy system .
    >
      You have to perfrom RFC Lookup in mapping level if the coiuntry is IND,anyway you are on PI7.11 so you can perform RFC llok to check the it is existed customer or not. search in sdn for RFC look up.
    Finally use enhanced Receiver determination to determin receiver.
    search in sdn you will get it hot to determine dthe receiver...everything..
    the requirement not complex..
    Regards,
    Raj

  • Creating Physical Inventory Documents using batch job in WM

    We use transaction LX26 to create the physical inventory documents for the storage bins and the materials therein. and the new PI dates are proposed based on the cycle count indicators configured.
    We want to automate the creation of physical inventory documents using a batch job. How can we achieve this?
    I understand that the program RM07ICN1 generates PI documents only when materials are managed at IM levels and this does not work for WM. Is there any other standard program which can be set up in batch to create the PI documents for the materials at WM level? If there is something then please let me know details....
    Thanks,

    I entered following details,
    WH no.
    Storage Type
    Inventory in Period (One year date range)
    Inventory Count date (Today's date)
    The output in spool shows me the following,
    No of Records Passed ;Quant Information; InventoryProposal; Later / block; Bin Information; Empty bins; Inventory active
    The list of storage bin, material, description & inventory date is also displayed.
    Description has Scheudled and Overdue and the inventory date is some dates in next months.
    It doesnt show anywhere that inventory document is generated.Please note that I had not selected the Activate Inventory List check box because I just want the system to auto create the inventory documents based on the logic of cycle count indicators.

  • How to upload data into CRM using batch job

    Hello,
    I got some problem and need some hints.
    I am uploading data from a flat text file (product data) into CRM using thefunction module GUI_UPLOAD. My program starts with a selection screen whereI enter the path and the filename of the program, then I click start, and
    the data is transferred in CRM. This works perfect, and I can automaticallycreate service products in CRM.
    Here comes the PROB:
    But now I want to automize this procedure using a batch job that automatically picks up the file from the server and processes it automatically without any user interaction. BUT I always get an error saying that my function module GUI_UPLOAD can't run in batch mode. So
    anyone has an idea how to do this? Any other function modules that can run in batch mode? Any other ideas?
    Thx very much for ur help on this.

    Hi Bill,
    GUI_UPLOAD, like the name says, uses the SAPGUI to upload the data to theserver.. and in a batch job, you don't have the connection to a SAPGUI.
    So you should use following kind of coding:
    DATA MSG(100).
    OPEN DATASET "FILENAM" FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE
    MSG.
    IF sy-subrc = 0.
    DO.
    READ DATASET "FILENAM" INTO [Your internal table].
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    APPEND [Your internal table]P_DATA.
    ENDDO.
    ENDIF.
    The file should then be available on the server.
    Regards

  • Creation of batch job Schedule

    How to create new batch job Schedule ?
    Regards,
    Sridhar

    Hi,
    For more details about background processing go through the link provided.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7ede505211d189550000e829fbbd/frameset.htm
    Hope it helps you.
    Regards
    CSM Reddy

  • Anybody using Batch Job Monitoring?

    Hi Team,
    Looking for some Solman BPM Batch Job monitoring help with the "job not started" monitor.   It's not detecting the alerts.
    Thanks,
    Milton

    Dear Milton,
    For setup and monitoring possibilities, see the Business Process Monitoring Set-up and User Guideline Business Process Monitoring with SAP Solution Manager Releases 7.1 SP05+,
    as of page 65, e.g. chapter 6.1.2.1.2 Start procedures in detail.
    Kind regards, Barbara

  • Help required regarding the outbound delivery creation by batch job

    Hi Gurus,
    We are facing one problem in the outbound delivery creation.
    The deliveries will be created automatically (using program RVV50R10C) from the existing open sales orders through the run of a batch program for every 5 minutes.
    The program RVV50R10C is scheduled to run for every 5 minutes, which picks up all the open sales orders and creates outbound deliveries. However, during one run we have found an error.
    The error had message class V50R, message no: 024 and message type : I. The error message reads as follows : u201CAt least one order was blocked and could not be deliveredu201D.
    When we have checked the VBFS table, it showed the sales document line items with the Message type : E, Message no: 24 and message id : V50R.
    Can anybody decipher what could be the reason why this error message is appearing?
    Thanks in advance,
    Krishna

    Hi Friend,
    to clearly identify the issue,
    Goto SE38 and give the program which you are using as Back ground job to create the deliveries and  give the sales order number as mltiple entries and execute the program in back ground.
    In most of the cases we can identify the issue behind the job while doing this.
    please revert me if you need more clarification
    regards,
    santosh

  • STO Auto delivery Creation - Batch Job

    Hi Friends,
    I am facing issue related to auto delivery creation through batch Job for STO.
    I created a variant for auto Creation of delivery for batch Job using T code VL10BATCH, using the parrameter Shipping Point and Deliv. Creation date. The Batch Job is running fine, but my Client wants the delivery shoud be created from Delivery Date instead  of Deliv. Creation date.
        I tried to change the varriant , but could not find the delivery date as a parmeter to be selected.
    Is there any possible way to use delivery date for creation of Auto delivery instead of Deliv. Creation date.
    If not please tell why only deliv. creation date is given in varriant creation ,
    Regards,
    Kunal

    Hi,
    GO to VL04 there u just fill required fields and then go to menu bar program - execute in back ground then it will show u output parameters popup screen then enter. There u just give start data and time and then clikc on periodic values button there u select daily. Finally save. This will be run in back ground every day on specified time..
    Regards
    Sankar

  • Routine not getting called during Batch job posting of Shipment costs

    Hi,
    We have a routine created and attached to the condition type in the condition base type of shipment cost procedure.When the shipment cost is created by running a batch job (VI06) , the value  posted is the initial value determined withourt routine.
    The  routine is getting activated only when we go in u201CCondition tabu201D in shipment cost.
    Because of this,  correct values are getting calculated only when we click on u201Ccondition tabu201D,& getting wrong value in initial screen, which is not possible in batch job.
    Need your views / suggestions to fix this issue.We need to use batch job and enable rouitne before batch job posts the cost to the Service PO.
    Thanks in advance.
    Regards,
    Ameya K.

    Modified the routine program

  • Performace tuning: how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Wei,
    Yes we can transfer the data by using
    SAP Memory OR ABAP Memory.
    Ex:  V_count TYPE i.
      V_count = 100.
    LOOP AT  itab.
    IF v_count EQ 25.
    Here For every batch job
      EXPORT data TO MEMORY ID 'ABC'
       Function module
        JOB_OPEN
       JOB_SUBMIT
       JOB_CLOSE.
      ENDIF.
    ENDLOOP .
    IN your 2nd program.
    INITIALIZATION.
    IMPORT data FROM MEMORY IF 'ABC'.
    FREE memory if .---When you free the memory you will get recent data.
    Don't forget to reward if useful.

  • SAP threading-how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Passing Data Between Programs
    [http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm|http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm]

  • Creation of  File through Scheduled Batch Job

    Hi Friends.
    How to create a file through scheduled batch job .ie data has to be sent in particular file which should be stored in SAP so that The file is expected to provide quick reconciliation when data in SAP gets archived .
    With thanks and regarsds
    Uma

    Which part? The creation of the file?  Since running in background, you would need to create the file using DATASET statements on the appliation server.  You will not be able to put the file on any frontend PC or server, only on the application server where you program is running.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Junk Mail no longer goes to junk folder

    I am getting mail labeled as Junk in my inbox (it is clearly spam). It used to go directly to my Junk folder, but now is staying in the inbox. (I think it started after going to 10.5.6) I check preferences, and the box is check to sent it to the junk

  • Windows Store should have a "Desktop App" or "Windows Store App" filters.

    Hi all, I don't know where to post this or how to feedback to the "Store" app. My friends and I think Windows Store should have a "Desktop App" filter feature. Thinking when you search for the app and have some Desktop apps appear in search result ca

  • Flex 3 Livedocs location

    For some reason I need to refer to Flex 3 lvedocs and I think Adobe have removed it completely from its resources. Any idea from where can I download/refer them?

  • XTC-ST1CF-2TB7K having an issue with firmware / STK6180 STK6140

    hi ! i need some help from the experts please it seems like my current XTC-ST1CF-2TB7K having an issue with its firmware. Basically way i see it i have drive with wrong SATA interposer card installed. CAM shows my current drive firmware as 0605( whic

  • Can't find the Trash Icon in email

    How do I get the trash icon to show on my email on the upper right side?  Right now it only shows the "Move to another folder icon,"  the arrow for reply, forward, print and the icon for writing a new email.  My friends Ipads show these 3 icons and a