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: 

debug dynpro + call script form

Former Member
0 Kudos

Hello ,

I have a req, I need to debug the few dynpro, and one of the dynpro is calling a form and I have to figure it out, which form is this ( and from where it is called ). I have never worked with script form before, can any one let me know how I can figure it out that ( how to call a form, I mean it should be statemnt like, call form .... or ) ?

One another thing, I went into the coding, and there I see the screen ( in execution mode, the screen shows some button, ( e.g show , and after pressing this button show ,the form appers ), but when I went in flowlogic of the screen, I cant see those button ?

Any idea....

Regards,

13 REPLIES 13

former_member181962
Active Contributor
0 Kudos

HI Shah,

Scripts are called using OPEN_FORM function module.

YOu have to look for the modules under Process After Input section for seeing the logic to handle the Button.

Regards,

Ravi

0 Kudos

Hi Ravi,

Thanks yaar,

Okey, I know the screen where those buttons are ( how I can see ,which button has what name ), so once I know the button name, I can see what happen after clicking it. ( because after clicking the button, it displays the form and I just need to know the form name ( and from where it is called )...

Regards

kiran_k8
Active Contributor
0 Kudos

Shah,

Do like this.You might be pressing some push button after which the smart form or script is appearing.

do screen debugging.

enter /h in the command field and press enter.

now press the push button.

this will take you to the logic in the driver program where the smartform or script is getting invoked.

if it is a smartform you will see a function module SSF_FUNCTION_MODULE_NAME.

smartform name will be stored in LF_FORMNAME

put a watch point here to get the smartform name.

if it is a script you will come across the following functional modules.

open_form,write_form,close_form.

Script name will be given in the open form functional module.

If any doubt revert it.

K.Kiran.

Message was edited by:

Kiran K

Former Member
0 Kudos

Hi Kiran,

Thanks for your input, but there is no possiblity to do /H, else it would be easy

Any, I have found the button, and from the hint of Ravi, I am looking in PAI for SSF_FUNCTION_MODULE_NAME or open_form....

Thanks , and I will get back.....soon

Regards

Former Member
0 Kudos

hi,

Okey, I guess I have found one form, ( its called with SSF_FUNCTION_MODULE_NAME ), can anyone pls let me know how I can see this form , its tran se 72 or so ?

The name which I got from (ssf_functin_mo*) when I enter in se72, it say, does not exits ????

Okey one thing more, depending upon the organsization different form has to be called, ? is there any way, that I can read the text field of dynpro ( which contains the organization ) buks?

Regards,

Message was edited by:

Shah H

Message was edited by:

Shah H

kiran_k8
Active Contributor
0 Kudos

Shah,

1.You should chech it in SMARTFORMS.

tcode is SMARTFORMS.

2.You can code the same in the smartform itself either by hardocding the Sales Organisations,that will make this a dynamic smartform.

K.Kiran.

Former Member
0 Kudos

Hello Kiran,

How I can make it dynamic, is there any docu ?

I need to call different form depending upon the organization code. ( at this time only one form is called )....

One more thing, after calling functin SSF_FUNCTION_MODULE_NAME, the parameter fm_name is filled ( l_fm_name). and later in the program something like this happens:

call function l_fm_name....

does this fm calls the smartform?

Regards

Message was edited by:

Shah H

kiran_k8
Active Contributor
0 Kudos

1.check it in lf_fm_name

2.DATA: LS_BIL_INVOICE TYPE LBBIL_INVOICE.

Do you find any statement like this in your driver program?

3.What is the Driver program that you are using for the smartform.

4.go to nace transaction.

if you know the output type then it is a two sec job to know what is the smartform that is running and the driver program in one shot.

K.Kiran.

Message was edited by:

Kiran K

Former Member
0 Kudos

hi Kiran,

I have the smartform name ( and I have looked it into the smartform tran as well ). I just have to make the coading like this, that depending upon the organization code ( given in dynpro), different forms should be called....

Regards,

kiran_k8
Active Contributor
0 Kudos

Shah,

You have do the coding in the smartforms under Program lines nodes of a window.

Even I never tried a dynamic smartform.

K.Kiran.

Former Member
0 Kudos

Can you pls help me in some good docu, for basis of smartform ?

Regards,

NEVER WORKED WITH SMARTFORM BEFORE, so first I have to get the feelings; what's going on

Regards,

kiran_k8
Active Contributor
0 Kudos

Former Member
0 Kudos

hi, thanks

Points awarded

Regards,