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

Smartforms - Function module.

Former Member
0 Likes
8,014

I have made a simple modification in a smarform, I only added a condition more in a loop.I transported it to QA.

Now when I go to the se80 and look at the module functions, in development and QA, in the tree of the left, only see 2 folders: Includes and Function Modules.

Before the change saw all these folders: Function Modules, Dictionary structures, type groups, classes, types, fields, macros, subroutines, includes.

Both development and quality have disappeared almost all.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
6,014

I got fix it.

In Menu of Function Module: Utilities --> Update Navigation Index

Thanks to all for yours replies.

20 REPLIES 20
Read only

Former Member
0 Likes
6,014

Probably in SE80 you are displaying a different function group

Why don't you try opening the FM from SE87 and than expand the selection?

Cheers!

Abhinab

Read only

0 Likes
6,014

Transaction SE87 does not exist

Read only

0 Likes
6,014

Sorry that should be SE37 and not SE87.

Read only

0 Likes
6,014

Thank you for the reply, but I already did SE37, utilities --> Display object list. This was my first attempt and I got nothing, only display 2 folders.

Read only

Former Member
0 Likes
6,014

Hi Joaquin,

As smart forms are client independent wen you move smart form from one system to another system the function module which is generated by smart form will be different so won't get that function module.

To run your smart form from the report try following code..

DATA zsmart_fm  TYPE RS38L_FNAM.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

   EXPORTING

     formname                 = 'Your smart form name'

*   VARIANT                  = ' '

*   DIRECT_CALL              = ' '

   IMPORTING

     FM_NAME                  = zsmart_fm

* EXCEPTIONS

*   NO_FORM                  = 1

*   NO_FUNCTION_MODULE       = 2

*   OTHERS                   = 3

           .

IF sy-subrc <> 0.

  MESSAGE 'No Smart Form Available' TYPE 'E'.

ENDIF.

CALL FUNCTION zsmart_fm

Read only

PeterJonker
Active Contributor
0 Likes
6,014

You say before the change these objects were there. But you don't tell us clearly if they are still present in your development system.

If they are then something most have gone wrong with the transport, check the transportlogs and transport agaian.

If they are not present in development, then they have been deleted and the transport was correct in deleting them as well on QA.

If they are not there in development you (or another developer or maybe even a malicious program)  must have deleted them. I don't think it is possible that a transport can delete objects in development.

Read only

0 Likes
6,014

Thanks for the reply.

After de transport the folders disappeared in two systems Development and QA.

In transport logs are good, and I transported it several times, There was no error in the transport.

I do not think that they deleted, maybe is a system memory error????

When I execute the invoice to see the form, it works good.

Read only

0 Likes
6,014

This message was moderated.

Read only

sandeep_katoch
Contributor
0 Likes
6,014

Hi Jaoquin,

Regenerate the smartform once again in development and then transport it to quality.

I strongly believe there must have been something wrong in the transports or the regeneration of smartform

Regards,

sandeep katoch

Read only

0 Likes
6,014

Thanks a lot for the reply,

the steps that I followed before transport are as follows:

1 Modify

2 Record

3. Include the in the task of an order

4 Activate.

5 Transport to Qa

I do it well, you have to give step any more, for example to generate?

Read only

0 Likes
6,014

Hi Joaquin,

Yes there are times when you have to regenerate the smartform completely even after activating it.

As regeneration of smartform regenerate the smartform from grass root level.

BR,

Sandeep Katoch

Read only

0 Likes
6,014

Sorry, I've regenerated the smartform and the module functions remains the same.

Read only

0 Likes
6,014

Last trick which you can do is

1: Go to Transaction smartforms

2: Give smartform name there

3: Press execute.

4: You will get the function module starting from /B

5: display the functioon module

6: press ctrl+shift_F5 and check whether there you can see all the necessary objects.

7: If found make an transport entry from there itself.

BR,

Sandeep Katoch

Read only

Former Member
0 Likes
6,014

Open smartform  from menu

go to Environment--->Function module name.

In devl & Quality the name may not be same check once...

Read only

0 Likes
6,014

In Development system:

     1º Smartforms trx. go to Environment -- > Function module name. the result is the following:                            /1BCDWB/SF00000005

     2ª Go to de SE37 and execute SSF_FUNCTION_MODULE_NAME with my smartform and the result is the following:    /1BCDWB/SF00000005

In QA system:

     1º Smartforms trx. go to Environment -- > Function module name. the result is the following:                            /1BCDWB/SF00000005

     2ª Go to de SE37 and execute SSF_FUNCTION_MODULE_NAME with my smartform and the result is the following:   /1BCDWB/SF00000005

    

4 attempts to return me the same  function module.

Read only

Former Member
0 Likes
6,014

Hi,

Please check whether the SmarForm is regenrated .

By activating the smart form its Fm gets regenrated.

Please activate it once.

regards,

Amit

Read only

0 Likes
6,014

I do it by differents ways:

1 Regenerate the smartform and after activate the FM.

2 Activate the smartform, regenerate the smartform and activate fm.

3 Activate and regenerate the smartform.

And don't see the FM, completly.

Read only

naimesh_patel
Active Contributor
0 Likes
6,014

Smartforms FMs are not generated till you try to execute them. Try running your output. This will generate the Smartforms FMs and link the includes with the main program.

Before generating, if you try to put a breakpoint in a include, you would get a message like Unable to find main program. After you run your output, the FM gets generated and all the includes gets properly linked to the FG. You should be able to see the tree after this generation.

Thanks,

Naimesh Patel

Read only

0 Likes
6,014

I've done what you said, i try to execute the smarform, but the FM does't generate with all elements.

I have attached some pictures of how are in development and in quality.

Development:

QA:

Read only

Former Member
0 Likes
6,015

I got fix it.

In Menu of Function Module: Utilities --> Update Navigation Index

Thanks to all for yours replies.