cancel
Showing results for 
Search instead for 
Did you mean: 

How to produce different outbound delivery based on different schedule line

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.