‎2009 Mar 12 2:42 PM
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?
‎2009 Mar 16 2:50 PM
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
‎2009 Mar 12 2:46 PM
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.+
‎2009 Mar 12 2:57 PM
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.
‎2009 Mar 12 3:02 PM
‎2009 Mar 12 3:09 PM
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?
‎2009 Mar 12 3:17 PM
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
‎2009 Mar 12 3:36 PM
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_902is there any relation beetwen routine number and transaction which is used?
‎2009 Mar 12 3:44 PM
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
‎2009 Mar 16 7:21 AM
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?
‎2009 Mar 16 2:50 PM
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