Application Development 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: 

Form Without Perform

former_member676613
Participant
0 Kudos

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.

8 REPLIES 8

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

hi,

in ALV reports we can write forms without perform statement.

it will not cause any problem.

regards,

sreelakshmi

Former Member
0 Kudos

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.

matt
Active Contributor
0 Kudos

>

> 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

former_member676613
Participant
0 Kudos

answered