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

How to produce different outbound delivery based on different schedule line

Hi,

I want to create different outbound delivery based on different schedule line time,but system automatically create a combining delivery document with a sum number.

For example,

schedule line

date goods issue time qty

2011.08.24 08:00:00 1

2011.08.24 10:00:00 1

when I create the outbound delivery, system create only one document with quantity 2.

But I need two documents with quantity 1 in every document.

How to solve this requirement?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2011 at 02:59 AM

    Hi,

    This is a usual process.If you have same schedule line date and same schedule agreement number,

    the system will combine it as one line item.One option I know is you can make the picking quantity as 1 instead

    of 2. Then do the PGI.Again use same schedule agreement number you will get 1 quantity in picking field.

    Then you can create one more delivery.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2011 at 03:59 AM

    Hi,

    Write a routine in VOFM

    Add your logic if schedule line date is same for both items and time is different then create delivery for 1 item only

    And same you can assign in OVLK in delivery document type as ITEM REQUIREMENT or in copy control

    Kapil

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I viewed the item requirement in VOFM, found that they are status check for the copy control, not the split control.

      Could you please give me a example?

      In the copy control-- header -- conditions ----order requirement ( or combination requirement )

      They are like this :

      (001)

      bp_subrc = 0.

      • Check that reference document is an order (if not, issue error)

      if cvbak-vbtyp cn vbtyp_auft. "Auftrag?

      perform message_handling in program (programmname)

      using cvbap-posnr

      '003'

      'E'

      'VL'

      cvbak-vbeln

      space

      space

      space.

      bp_subrc = 1.

      check 1 = 2.

      endif.

      • Check the status of the Fonds-Management

      IF CVBUK-FMSTK EQ 'A'.

      PERFORM MESSAGE_HANDLING IN PROGRAM (PROGRAMMNAME)

      USING CVBAP-POSNR

      '889'

      'E'

      'VL'

      CVBAK-VBELN

      SPACE

      SPACE

      SPACE.

      BP_SUBRC = 1.

      CHECK 1 = 2.

      ENDIF.

      • Check that order is not blocked by the automatic credit check

      if cvbuk-cmgst ca 'B' and

      cvbuk-abstk ne 'C'.

      • Credit check is irrelevant for correction deliveries

      if v50agl-sofauftrag eq charx and

      tvak-lisof eq space and

      likp-lfart eq tvak-korli.

      else.

      perform message_handling in program (programmname)

      using cvbap-posnr

      '060'

      'E'

      'VL'

      cvbak-vbeln

      space

      space

      space.

      bp_subrc = 1.

      check 1 = 2.

      endif.

      endif.

      • Check the user status from the order header

      if not cvbak-objnr eq space.

      call function 'SD_STATUS_VBAK_CHECK_INTERN'

      exporting

      i_objnr = cvbak-objnr

      i_vrgng = vrgng_sddn

      exceptions

      allowed_with_warning = 01

      not_allowed = 02

      object_not_found = 03

      others = 99.

      if sy-subrc ne 0.

      • Fehler nicht bei MODKZ = '2' (Erlaubt mit Warnung)

      if sy-subrc gt 1.

      bp_subrc = 7.

      • Else ist nötig, da Routine mit "changing sy-subrc" gerufen wird

      elseif sy-subrc eq 1.

      bp_subrc = 0.

      endif.

      • Check Global delivery flags

      • line deleted: "n_911988

      perform message_handling in program (programmname)

      using cvbap-posnr

      sy-msgno

      sy-msgty

      sy-msgid

      sy-msgv1

      sy-msgv2

      space

      space.

      • Bei Fehler: Bedingung verlassen

      check bp_subrc ne 7.

      endif.

      endif.

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.