Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VOFM

Former Member
0 Likes
1,527

Hi Folks,

I am creating a user-routine 902 for shipment using VOFM transaction.

I am including the standard routines such as 1, 2, 3, 4 into the user-routine 902.

Following is my code:

FORM DATEN_KOPIEREN_902

USING c_XVTTP TYPE v56i1_vttp_tab

c_XVTTS TYPE v56i1_vtts_tab

c_XVTSP TYPE v56i1_vtsp_tab

c_XTRLK type v56i1_vtrlk_tab

c_XTRLP type v56i1_vTRLP_tab

I_XVTTK STRUCTURE VTTKVB

VALUE(I_TVTK) LIKE TVTK

g_imp_data type v56I1_IMP_DATA

CHANGING C_XVTTK_tmp structure VTTKVB

g_exp_data type v56I1_exp_DATA.

  • determine unique Service Agent

PERFORM DATEN_KOPIEREN_001

USING

C_XVTTP[]

C_XVTTS[]

C_XVTSP[]

C_XTRLK[]

C_XTRLP[]

I_XVTTK

I_TVTK

G_IMP_DATA

CHANGING

C_XVTTK_TMP

G_EXP_DATA.

  • determine unique Route

PERFORM DATEN_KOPIEREN_002

USING

C_XVTTP[]

C_XVTTS[]

C_XVTSP[]

C_XTRLK[]

C_XTRLP[]

I_XVTTK

I_TVTK

G_IMP_DATA

CHANGING

C_XVTTK_TMP

G_EXP_DATA.

  • determine unique Shipping type

PERFORM DATEN_KOPIEREN_003

USING

C_XVTTP[]

C_XVTTS[]

C_XVTSP[]

C_XTRLK[]

C_XTRLP[]

I_XVTTK

I_TVTK

G_IMP_DATA

CHANGING

C_XVTTK_TMP

G_EXP_DATA.

  • determine unique Service level

PERFORM DATEN_KOPIEREN_004

USING

C_XVTTP[]

C_XVTTS[]

C_XVTSP[]

C_XTRLK[]

C_XTRLP[]

I_XVTTK

I_TVTK

G_IMP_DATA

CHANGING

C_XVTTK_TMP

G_EXP_DATA.

ENDFORM.

The problem is if i double click on the subroutines, its not getting the corresponding FORM and ENDFORM.

Instead of that i am getting a message in the status bar as "<b>Main program for include RV56C902 not found</b>".

How to link that FORM and ENDFORM with the corresponding PERFORM.

Thanks in Advance.

Regards,

Siva.

5 REPLIES 5
Read only

dev_parbutteea
Active Contributor
0 Likes
1,177

Hi,

i think that if you double click on routine 902 in vofm ,it will lead you to an inlcude. your code should have been in that one.

Hope that this helps you,

Regards.

Read only

Former Member
0 Likes
1,177

Hi,

The procedure to create the new VOFM.

1. Go to VOFM transaction

2. Page down until you find a new spot on the page to put in the VOFM number and description.

3. Put in the VOFM number and the description of the VOFM.

4. Now the VERY IMPORTANT part of the process. Double click on the VOFM description not the VOFM number to create this as a Development/Correction and not as a repair. If you double click on the number then this copies some existing code and prompts you for a repair.

5. Activate and generate the VOFM routine. Note: Configuration must be setup by the OM team for this step.

for example Go to the routine number that needs to be copied.

Put your cursor on the routine number field that needs to be copied.

Overwrite that number with your new routine number and hit enter.

The new routine will be created as a copy of the old routine and you can modify the new routine as you need it.

Ex.

You have to copy routine 104 to 904

Routine number Description Active

104 Bill.bus.item data X

Put your cursor on 104 and then change it to 904 and hit enter.

904 will be created as a copy of 104 and you can make your changes in 904.

Don't forget to activate it after you are done.

refer the below link

https://forums.sdn.sap.com/click.jspa?searchID=3604222&messageID=994791

<b>Reward points</b>

Regards

Read only

0 Likes
1,177

Hi,

I have created a user-routine 902.

I have included standard routines (1, 2, 3, 4) into that 902 routine.

My Problem is Main program for include RV56C902 not found.

Read only

0 Likes
1,177

Hi,

Use table D010INC that contains all the includes for each program.

<b>Reward points</b>

Regards

Read only

0 Likes
1,177

I am creating a user-routine 902 for shipment using VOFM transaction.

I am including the standard routines such as 1, 2, 3, 4 into the user-routine 902.

Following is my code:

FORM DATEN_KOPIEREN_902

USING c_XVTTP TYPE v56i1_vttp_tab

c_XVTTS TYPE v56i1_vtts_tab

c_XVTSP TYPE v56i1_vtsp_tab

c_XTRLK type v56i1_vtrlk_tab

c_XTRLP type v56i1_vTRLP_tab

I_XVTTK STRUCTURE VTTKVB

VALUE(I_TVTK) LIKE TVTK

g_imp_data type v56I1_IMP_DATA

CHANGING C_XVTTK_tmp structure VTTKVB

g_exp_data type v56I1_exp_DATA.

  • determine unique Service Agent

PERFORM DATEN_KOPIEREN_001

USING

C_XVTTP[]

C_XVTTS[]

C_XVTSP[]

C_XTRLK[]

C_XTRLP[]

I_XVTTK

I_TVTK

G_IMP_DATA

CHANGING

C_XVTTK_TMP

G_EXP_DATA.

  • determine unique Route

PERFORM DATEN_KOPIEREN_002

USING

C_XVTTP[]

C_XVTTS[]

C_XVTSP[]

C_XTRLK[]

C_XTRLP[]

I_XVTTK

I_TVTK

G_IMP_DATA

CHANGING

C_XVTTK_TMP

G_EXP_DATA.

  • determine unique Shipping type

PERFORM DATEN_KOPIEREN_003

USING

C_XVTTP[]

C_XVTTS[]

C_XVTSP[]

C_XTRLK[]

C_XTRLP[]

I_XVTTK

I_TVTK

G_IMP_DATA

CHANGING

C_XVTTK_TMP

G_EXP_DATA.

  • determine unique Service level

PERFORM DATEN_KOPIEREN_004

USING

C_XVTTP[]

C_XVTTS[]

C_XVTSP[]

C_XTRLK[]

C_XTRLP[]

I_XVTTK

I_TVTK

G_IMP_DATA

CHANGING

C_XVTTK_TMP

G_EXP_DATA.

ENDFORM.

The problem is if i double click on the subroutines, its not getting the corresponding FORM and ENDFORM.

Instead of that i am getting a message in the status bar as "<b>Main program for include RV56C902 not found</b>".

How to link that FORM and ENDFORM with the corresponding PERFORM.

Regards,

Siva.