Skip to Content
author's profile photo Former Member
Former Member

Batch job for delivery note updating means of transport and shipping type

Hi,

I have an issue where the values are not being updated into the screen(VL03N)

The process is as follows :

Purchase order is being created > for this PO, delivery note is created via a background job > The delivery note number can be viewed in the tab, purchase order history > when clicked on delivery note number navigates to another screen (VL03N) outbound delivery > click on hat icon (header) > under shipment tab the means of transport type and shipping type the values are not getting updated.

Background job is set in SM36 > when checked in SM37 job says finished.

An exit is used and coding has been written in an include program yotcn_e0566_update_mol.

If manual delivery notes are created there is no problem. But when the background job is created only the 1st DN gets updated with values while the rest does not get updated.

I tried JBDG to debug the background job but i am not able to get to the break point. I have put the break point in the include program but when i debug the batch job does not go to this point.

I need to analyze why the values are not updating in the fields.

Please help me in this. Its a high priority issue as they are manually creating the DN.

The screen shots are as attached.

Thanking you,

Regards,

Rekha

Shipment.JPG (77.0 kB)
PO.JPG (93.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 16, 2014 at 11:40 PM

    Hi Rekha,

    Is it a custom program or a Standard SAP program to schedule the background job?

    If it is a custom program, are using any BAPI/FM for the creation of the Delivery?

    - Abhi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Abhijeet,

      I apologize for not being descriptive. Standard Program is being submitted for creation of delivery.

      The standard program is RVV50R10C. Variant is created for this program.

      Issue is resolved.

      Reason for the issue:

      The custom logic(EDD566) was placed inside a standard user exit (SAVE_DOCUMENT_PREPARE) which triggers based on the ship to.

      If multiple orders have the same ship to our EDD566 will trigger once and it will only update the first delivery, we may not encounter this problem if all the orders have different ship-to.


      The piece of code written is


      LOOP AT xlips .

      lw_werks-werks = xlips-werks.

      APPEND lw_werks TO lt_werks.

      ENDLOOP.

      SORT lt_werks BY werks.

      DELETE ADJACENT DUPLICATES FROM lt_werks COMPARING werks.

      IF lt_werks IS NOT INITIAL.

      SELECT

      classification

      route

      mol

      mos "Def 51320

      FROM yotcd_e566_mol

      INTO TABLE lt_mol

      FOR ALL ENTRIES IN lt_werks

      WHERE werks = lt_werks-werks."xlips-werks.

      * WHERE vstel = xlikp-vstel.

      ENDIF.


      Thank u very much for your support.


      Regards,

      Rekha

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.