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 routine

Former Member
0 Likes
5,808

hi experts,

please someone elaborate me because i'm very confuse and sad.

I have created a VOFM routine, here is the steps:

1)write the routine

FORM kobed_902.

sy-subrc = 4.

BREAK-POINT. "program does not execute this line

...

ENDFORM.

2)activate

3)generate via RV80HGEN program

4) check and repair with SDINVOFM program - but there was no problem

5)rebuild object list

6)update navigation index

everything seems to be ok, include RV61ANNN contain this include RV61A902.

so, what's the problem?

what should i do?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,737

Hi,

I don't think it is possible to configure two routines in V/08..

But instead you can do one thing...

You can call the 901 subroutine in your 902 subroutine...

Ex..

FORM kobed_902.

* Call the subroutine 901 first.
  PERFORM kobed_901.

* Process further only if the 901 subroutine is successful.
  CHECK sy-subrc = 0.

* Do all your new logic here..
" NEW LOGIC

ENDFORM.

Hope this helps.

Thanks

Naren

9 REPLIES 9
Read only

former_member376453
Contributor
0 Likes
3,737

I am just copy pasting one doc, I have with me. Will be glad if it helps you:

+1. Go to VOFM Transaction Code

2. On the Menu Select required Application i.e Requirements -Pricing

3. Enter any Number in between 600 to 999 for Custom Developments.

4. On entering Pop Screen appears ask for Access Key(We have to remember that Every New Routine needs an Access Key)

5. We have to send the Object number and installation details to the BASIS

6. BASIS will provide the Access Key

7. Once the Access Key is received we can do modification with the help of Technical Consultant.

8. Enter the Routine Number ,description and insert the Access Key

9. Now the ABAP Editor will open and required code can be copied from Standard SAP Routine and Custom Code Can be developed.

10. Once the coding is completed we have to Activate the Routine

11. Select the Routine and Go to Edit - Activate

12. Ensure that Active check box is ticked upon Activation of the Routine.

13. Double click on the routine will enter into ABAP Editor, we have to generate the Routine

14. Go to Program and select Generate

16 A screen pops up with the related Main Programs ieu2026SAPLV61A and select all required main programs wherever the Routine is being called.

17 Once the Routine is Generated and Activated, We can configure the Routine in the config.

18 Configure the Routine in required applications and do the Testing

19 We have to transport the Workbench Request i.e. Routine first ,then only we have to transport customizing request

20 We have to Activate and Generate the Routine in each and every client it got transported.+

Read only

0 Likes
3,737

still not working...

the routine it's activated, generated, i can view the include

everything seems to be OK... but it's not working...

i have put a break-point to check it ... but it does not enter to form.

Read only

Former Member
0 Likes
3,737

switch on update debugging and check

Read only

0 Likes
3,737

i have switched on the debuging... no change

the problem is not with code...the problem is why SAP does not call FORM kobed_902 ???

i mention that routine is activated, generated, i cand view its include,...

is there a problem with routine number ? Routine number is 902. it's ok?

Read only

0 Likes
3,737

did u switched on debugging in update mode. i.e update debugging .

r u sure about ur routine that its correct,

i mean correct routine number associated with the transaction u r running

Edited by: kartik tarla on Mar 12, 2009 8:48 PM

Read only

0 Likes
3,737

the routine was created to restrict access to conditions - sale order.

FORM kobed_902.
  sy-subrc = 4.
  BREAK-POINT.
i have switched on the debugging - System->utilities->Debug System

IF komv-kschl EQ 'ZA90'.

    AUTHORITY-CHECK OBJECT 'Z_DISC'
             ID 'ACTVT' FIELD '01'
             ID 'KSCHL' FIELD komv-kschl.

    IF sy-subrc NE 0.
      MESSAGE 'Acces denied!' TYPE 'E'.
    ENDIF.

  ENDIF.
ENDFORM.                                                    "KOBED_902
*&---------------------------------------------------------------------*
*&      Form  KOBEV_902
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM kobev_902.
ENDFORM.                                                    "KOBEV_902

is there any relation beetwen routine number and transaction which is used?

Read only

Former Member
0 Likes
3,737

Hi,

Make sure you have the following setup.

1) in the VOFM transaction...in the table control where you see list of routines...

Click the routine 902 row..and in the menu...Edit -> Activate.

2) Check if the routine is configured in the pricing procedure...V/08.

Thanks

Naren

Read only

0 Likes
3,737

in V/08, requirement number (form) 901 was configured. This is another form. My form is 902.

Only one requirment could be configured for pricing procedure?

And if i have two requirments 901 and 902 i want that both to be active.

Is this possible?

Read only

Former Member
0 Likes
3,738

Hi,

I don't think it is possible to configure two routines in V/08..

But instead you can do one thing...

You can call the 901 subroutine in your 902 subroutine...

Ex..

FORM kobed_902.

* Call the subroutine 901 first.
  PERFORM kobed_901.

* Process further only if the 901 subroutine is successful.
  CHECK sy-subrc = 0.

* Do all your new logic here..
" NEW LOGIC

ENDFORM.

Hope this helps.

Thanks

Naren