‎2008 Oct 15 8:25 AM
Hi All,
Please help, in my program there are certainn FORM STATEMENT which are not a part of any PERFORM statement and when i am DOUBLE CLICKING on to the FORM statement the msg coming is as SUBROUTINE NOT FOUND (possibly dynamic calls).
Thanks,
Chandresh.
‎2008 Oct 15 8:29 AM
Hi,
And is this causing any problem ????
I dont think it should.... Yes they can be subroutines called from a SAP Script or something.
Is this a print program ?
I think it is better not to remove something we are not sure of.
Upon that i feel if you double click on FORM it will take you to the ENDFORM of that form and not the perform.
Please correct me if i am wrong.
Regards,
Pramod
‎2008 Oct 15 8:38 AM
Hi Pramod,
How are u,I remember u helped in ACTIVATION error,
but the situation here is when in FORM XYZ double clk on XYZ it gives the dynamic calls error.
And as u told that these are being called thru some scripts then i suppose its a BOUNCER for me i am notgetting.
see like this: 3 Forms without performs
(1) FORM set_layout CHANGING ix_layout TYPE slis_layout_alv.
IF gv_list EQ 1.
ix_layout-list_append = ''.
ELSE.
ix_layout-list_append = 'X'.
ENDIF.
ENDFORM. " set_layout
(2) FORM call_va02 USING ucom TYPE sy-ucomm
selfield TYPE slis_selfield.
DATA : wa_out2 LIKE LINE OF it_orders.
READ TABLE it_orders INDEX SELFIELD-TABINDEX INTO wa_out2.
SET PARAMETER ID 'AUN' FIELD WA_OUT2-VBELN.
CALL TRANSACTION 'VA02' .
ENDFORM.
(3) FORM get_billing_qty.
SELECT fkimg
FROM vbrp
INTO TABLE it_invoices
WHERE aubel EQ wa_output-vbeln AND
aupos EQ wa_output-posnr.
LOOP AT it_invoices INTO wa_invoices.
n_delqty = n_delqty + wa_invoices-fkimg.
ENDLOOP.
ENDFORM.
thanks,
Chandresh
‎2008 Oct 15 8:31 AM
Hi
Can u paste the program here So that I can explain the problem.
Generally these forms are used in ALV set ups and they donot have performs.
If I have a look at the program I can explain u clearly.
Cheers,
Lakshmi Prasanna Gandham
‎2008 Oct 15 9:11 AM
Hi,
Here is the code for the FORM statement :
(1) FORM set_layout CHANGING ix_layout TYPE slis_layout_alv.
IF gv_list EQ 1.
ix_layout-list_append = ''.
ELSE.
ix_layout-list_append = 'X'.
ENDIF.
ENDFORM. " set_layout
(2) FORM call_va02 USING ucom TYPE sy-ucomm
selfield TYPE slis_selfield.
DATA : wa_out2 LIKE LINE OF it_orders.
READ TABLE it_orders INDEX SELFIELD-TABINDEX INTO wa_out2.
SET PARAMETER ID 'AUN' FIELD WA_OUT2-VBELN.
CALL TRANSACTION 'VA02' .
ENDFORM.
(3) FORM get_billing_qty.
SELECT fkimg
FROM vbrp
INTO TABLE it_invoices
WHERE aubel EQ wa_output-vbeln AND
aupos EQ wa_output-posnr.
LOOP AT it_invoices INTO wa_invoices.
n_delqty = n_delqty + wa_invoices-fkimg.
ENDLOOP.
ENDFORM.
thanks,
Chandresh
‎2008 Oct 15 9:25 AM
hi,
in ALV reports we can write forms without perform statement.
it will not cause any problem.
regards,
sreelakshmi
‎2008 Oct 15 8:32 AM
If this program is created by you, then better you remove the unwanted FORM.
If its an old program, then chances are there these FORMs are used in some other Program, so dont remove them.
‎2008 Oct 15 9:31 AM
>
> Hi All,
> Please help, in my program there are certainn FORM STATEMENT which are not a part of any PERFORM statement and when i am DOUBLE CLICKING on to the FORM statement the msg coming is as SUBROUTINE NOT FOUND (possibly dynamic calls).
>
>
> Thanks,
> Chandresh.
Are you expecting to find where the forms are called from? Do you know they are called with a PERFORM my_form or similar? If you read the keyword help on PERFORM you'll see that forms can be called dynamically - i.e. the name of the form isn't known until runtime. Maybe these forms are used to that purpose.
There are two remaining possibilities,
1. The forms aren't needed - just delete them.
2. The navigation indexes need updating.
You still haven't really answered the most important question.
Why is this a problem to you?
matt
‎2008 Oct 21 8:15 AM