Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
vijay_hariharan
Contributor
Forms usually have certain fixed sections like Company Logo, Company Address at the Bottom, Bank details, Legal requirements (like FSSAI number in case of Food materials in India), certain Warnings (like ‘Dangerous goods, Handle carefully’) etc. which go through changes/updates periodically. Tracking and tracing which forms have what text maintained becomes a tedious process especially when the Project has moved to Maintenance phase and the Customized Smartforms are high in number. There is, currently, no means to track the Texts or Logos in the smartforms i.e. in short you will not find a WHERE-USED for Standard text(Transaction code - SO10) and Graphics Logos(Transaction code - SE78).

SO10 – No WHERE-USED as can be seen in the screen-shot below:

 

SE78 – No WHERE-USED as can be seen from the screen-shot below:



A few of the Time-Consuming activities that ensue as a result are:

  1. To find Smartforms with a particular standard text

  2. To find Smartforms with a particular Graphic/Logo

  3. To find Smartforms without a particular standard text

  4. To find Smartforms without a praticular Graphic/Logo

  5. Find a specific Text in a Form

  6. Find a specific Logo in a Form


and so on....

A UTILITY program has been developed which handles the above issues mentioned. This can be used by Development as well as Functional team alike. Below illustration is from a Development perspective but if someone is only aware of the Output type and not the actual Form name, can also use it using the Output type field on the Selection screen.
Selection Screen of the Program looks as below:



 

Snapshot of how each of the above Functionality works -

  1. Find Text in Form



  • Selection screen details




NOTE
Using only Application may cause long Run times as all Forms & relevant texts would be retrieved

  • Output



  • Choose a record and click on ‘Get full Text’ to view the Text content
              


 

2. Find Graphics/Logo in Form

  • Selection screen details




  • Output



  • Choose a record and click on button 
              


 

3. WHERE-USED List for SO10 Text or TM

      a. SO10 Text

  • Selection screen details

  • Note:On the above Selection screen for SO10, Entering the Language is optional i.e. if Language is blank and text is maintained in different languages in different forms, all would appear.Else if the Language is filled then all Forms with this language and Dynamic(using some variable) would only be displayed. Other Language Text(other than EN like DE, PT in the above case) inclusive Forms would be ignored. WHERE-USED would take considerable time hence using the Prefix Restrict or Application Restrict would help quite a bit

  • Output                                                                                                                                         


      b. Text Module

  • Selection screen details

  • Output                                                                                                                                        


 

   4. WHERE-USED for Graphic/Logo

  • Selection screen details

  • Output


5. Smartforms not NACE configured

It is sometimes a challenge to track the smartforms used in Reports and not configured as Output types in NACE. This button gives the option of displaying the non-configured smartforms in the system

  • Selection screen details

  • Output


 

Extra Functionality:

In the report Output, on click of the Form name, the Application and Output type configured can be seen as below –



You may find the Code snippet(its a bit long) at the below link:

https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=462038274

It may take some time to install but have maintained some inputs regarding the objects. Hope it helps & worth the effort for you!

Once installed, you can add/delete/modify functionalities in the program to suit your need
13 Comments
Sandra_Rossi
Active Contributor
Nice! One suggestion: you could deliver your tool as one file using ZSAPLINK, it would be much more easier to install.

 
vijay_hariharan
Contributor
0 Kudos
Hi Sandra,

Thank you for taking the time out to read!

Checking currently how ZSAPLINK works. It is surely a convenient way to install a new program but seems this also creates a .nugg file. I'm unable to upload any kind of file (except an Image file) in the Blog or the Wiki as of now. Would you know if this requires any special authorization or is there also an option to save the file as a Link, do let me know?

Thanks again,
Vijay
Sandra_Rossi
Active Contributor
0 Kudos
There's no issue with attaching a zip file (see the dummy zip file I have just attached at the bottom of the wiki page).
vijay_hariharan
Contributor
0 Kudos
Hi Sandra,

Could see the file but for me it still gives the same error for any non-image file. Pasting the error below:


Not sure if there is a Server Up/Down time. Will try this again after a few hours maybe.

Thanks,
Vijay
Sandra_Rossi
Active Contributor
0 Kudos
Did you try a ZIP file?
vijay_hariharan
Contributor
0 Kudos
Yup. No Luck 😞
Sandra_Rossi
Active Contributor
0 Kudos
Maybe it's because of your web browser? I'm using IE 11. Otherwise, you should contact the SCN support team to report the issue. If you prefer, download the file to some public place on the web and I will attach here.
former_member182371
Active Contributor
0 Kudos

Hi,

 

thanks for sharing!

while implementing the code i have problems with this:

* Set the text for TTYPE
CLEAR ls_ddic.
TRY.
go_col ?= go_columns->get_column( ‘TTYPE’ ).
ls_ddic-field = ‘TTYPE’.
ls_ddic-table = ‘ZSF_TTYPE_S’.
go_col->set_ddic_reference( ls_ddic ).
go_col->set_f4( abap_true ).
CATCH cx_salv_not_found .
MESSAGE text-e01 TYPE c_error. ” Error while Formatting ALV Columns
ENDTRY.

 

seems as if structure ZSF_TTYPE_S does not contain field TTYPE

am i wrong?

this is the solution i found:

ls_ddic-field = 'TEXTTYPE'.
ls_ddic-table = 'SSFSCREEN'.
go_col->set_ddic_reference( ls_ddic ).
go_col->set_f4( abap_true ).

 

Best regards,

Pablo

former_member182371
Active Contributor
0 Kudos
Hi,

another comment:



shouldn't we get TNAPR-SFORM instead of TNAPR-FONAM in the select above?

 

Best regards,

Pablo
vijay_hariharan
Contributor
0 Kudos
Hi Pablo,

 

Thank you for pointing this out! i found this issue as well while testing with the posted code(just to recheck) and made the update to the wiki. Hope it resolves the issue!

Thanks,
Vijay
vijay_hariharan
Contributor
Hi Sandra,

I was looking for ways to share but couldn't find any for now without having an email ID but the Forum rules do not allow us to ask for email ids. Not sure of another way. I have created the NUGG file meanwhile. Also tried uploading data again but to no Avail. Will look to raise a Support ticket then.

Thanks,
Vijay
vijay_hariharan
Contributor
0 Kudos
Hi Pablo,

Thanks again! 🙂

"MY BAD".. This is now updated also in the wiki.

Thanks & Regards,
Vijay
irinafgn
Explorer