cancel
Showing results for 
Search instead for 
Did you mean: 

Header Text in Deliveries from two Orders

Former Member
0 Kudos

Hi,

Is it possible to copy a header text from two orders in one delivery?

We activate for every customer the order combination.

I create a new Text in Votxn.

The copy from one order to one delivery works, but not from two orders in one deliveries.

Here is copied only the txt from the first order.

Thanks,

Alex

Accepted Solutions (1)

Accepted Solutions (1)

Shiva_Ram
Active Contributor
0 Kudos

By standard, it is not possible to combine all the header texts from sales order to delivery. If text are mandatory, then you need to uncheck order combinations and then the system can create individual deliveries with the text from each sales order. By the way, header texts mostly represents about the customer and I am wondering how the text can carry different information about the customer. You may also refer OSS Note 94399 - VL04:header txt transfer in deliv.collect.process.

Regards,

Former Member
0 Kudos

Hi Shiva,

it is a special process.

Sometimes we need information (text) from SD order in the account sheet in FI.

My idea is to create a new text-id, copy it from order to delivery and then in the invoice.

When the account sheet are printing we read this text-id and print it.

My problem are the combine of orders in delivery.

Now I want to copy the text from order to invoice without delivery,

but we have set "text from delivery" in the billing document type.

Can I change it by form routine only for this text?

The OSS-note 94399 is included in our system.

Regards and thanks

Former Member
0 Kudos

Hi Shiva,

I solved the problem with a routine:



FORM DATEN_KOPIEREN_50 .

TABLES: VBCO6.
DATA: VBFA_TAB LIKE VBFA OCCURS 0 WITH HEADER LINE.

VBCO6-VBELN = ftvcom-vbelv.
VBCO6-POSNR = ftvcom-posnv.

CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
     EXPORTING
     COMWA         = VBCO6
     TABLES
     VBFA_TAB      = VBFA_TAB
     EXCEPTIONS
     NO_VBFA       = 1
     NO_VBUK_FOUND = 2
     OTHERS        = 3.
IF SY-SUBRC <> 0.
  Exit.
  ELSE.
    DELETE VBFA_TAB WHERE ( VBTYP_N <> 'C' AND MATNR <> FTVCOM-MATNR ).
    DELETE ADJACENT DUPLICATES FROM VBFA_TAB COMPARING VBELV.

    LOOP AT VBFA_TAB.
      referenz-tdid     = 'ZVFI'.
      referenz-tdobject = 'VBBK'.
      clear referenz-tdname.
      referenz-tdname+0(10) = VBFA_TAB-VBELN.

      ENDLOOP.                     " VBFA_TAB
      ENDIF.
ENDFORM.

Answers (0)