cancel
Showing results for 
Search instead for 
Did you mean: 

settings to copy header data only in copy control

Former Member
0 Kudos

Hi Friends,

I am trying to create an order with reference an invoice but i only want to copy the header data. What setting should i maintain in copy control to achieve this.

Regards,

Wasim.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To maintain,

To maintain Copy controls Use T-code u201CVTAFu201D as the target is Order and the source is Invoice.

At header level just maintain

Data T: 052 Copying requirements: 302

DataT: 103

DataT: 003

Please maintain as above and test it, you should get the results.

This kind of scenario can be tested for creation of a Service contract for a billed product (already supplied).

Also for a repeated order w.r.t old bill for the same customer.

Regards

DSR

Edited by: D.Srinivasa Rao on Oct 25, 2011 1:39 PM

Former Member
0 Kudos

Hi DSR,

I have maintained below data in VTAF (Data T: 052 ,Copying requirements: 302,DataT: 103,DataT: 003)

Now i am getting dump while raising sales order with ref a billing doc.

Can anyone please suggest how to rectify the same.

DUMP:

Short text

Missing parameter with PERFORM.

What happened?

Error in the ABAP Application Program

The current ABAP program "SAPLV45C" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was

not caught in

procedure "VBRK-VBELN_PRUEFEN" "(FORM)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

A PERFORM was used to call the routine "BEDINGUNG_PRUEFEN_302" of the program

"SAPLV45C".

The current call contains 0 actual parameter(s),

but the routine "BEDINGUNG_PRUEFEN_302" expects 1 parameters.

Missing RAISING Clause in Interface

Program SAPLV45C

Include LV45CF0V

Row 14

Module type (FORM)

Module Name VBRK-VBELN_PRUEFEN

ger Location of Exception

Program SAPLV45C

Include LV45CF0V

Row 51

Module type (FORM)

Module Name VBRK-VBELN_PRUEFEN

ce Code Extract

SourceCde

1 HVBAK-VKORG = VBRK-VKORG.

2 HVBAK-VTWEG = VBRK-VTWEG.

3 HVBAK-SPART = VBRK-SPART.

4 ORG_FROM_NEW_DOCUMENT = CHARX.

5 ENDIF.

6 IF POSITIONSVORSCHLAG = SPACE.

7 PERFORM VBUK_SELECT USING VBRK-VBELN.

8 ENDIF.

9 ELSE.

0 MESSAGE E001.

1 ENDIF.

32

33 IF POSITIONSVORSCHLAG = SPACE.

34 * Kopf-Kopierbedingung pruefen

35 PERFORM TVCPA_SELECT USING SPACE " AUART_VON

36 FVBRK-FKART " AUART_VON

37 HVBAK-AUART. " AUART_NACH

38

39 PERFORM VBPA_SELECT_PROBE USING VBRK-VBELN.

40

41 * Falsche Belegnummer in Anlegen mit Bezug eingegeben

42 IF SUBRC > 0.

43 EXIT.

44 ENDIF.

45

46 IF STEUERUNG-NUMMER <> '000'.

47 PERFORM (STEUERUNG) IN PROGRAM SAPLV45C.

48 ENDIF.

49 ENDIF.

50

>>>>> ENDFORM.

52 *eject

53

54 &----


55 *& Form VBAP-UEPOS_LESEN

56 &----


57 * text *

58 ----


59 FORM VBAP-UEPOS_LESEN USING VALUE(VS_VBELN)

60 VALUE(VS_UEPOS).

61

62

64 EXPORTING

65 I_DOCUMENT_NUMBER = VS_VBELN

66 I_ITEM_NUMBER = VS_UEPOS

67 IMPORTING

68 E_VBAP = VBAP

69 EXCEPTIONS

70 ITEM_NOT_FOUND = 01.

Former Member
0 Kudos

Hi,

Ask your abaper why its happend and let me know what is the reason.

Thank you,

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can set 302 "do not copy item" at header for copyieng requirement.

Thank you,