SAP Adobe Interactive Form Tutorial Part VIII Displaying Include Texts in Adobe forms

SAP Adobe Interactive Form displaying include texts

Today, we will explore another relative of the Text Module, i.e., Include Text. I like to refer to this Include Text as Standard Texts, which can be created and saved using transaction SO10. In SAP Adobe Interactive Form Tutorial Part VIII Displaying Include Texts in Adobe forms, we will dive into how to efficiently use these texts in your Adobe forms.

Allow us to make the Structure Connection point utilizing Exchange Code SFP. Enter the Connection point name and Make (Connection point is required for Adobe structure).

SO10

Enter the required short description and Save.

SO10 transaction

Click the Package name and Save.

SAP ABAP Training


Allow us to add our own custom Boundary Name. Select the Import choice under Structure Point of interaction (left side) and press the Make button (right side) to add a Bringing in Boundary.

Free Adobe Training
IV_LANGU TYPE SY-LANGU

Save, Check and Enact the Connection point.

Go to back SFP Exchange primary screen. Make the structure.

Press on make button. Give the short depiction and Connection point name which you have made before.

Enter the Bundle name and Save.

Drag IV_LANG Field from Connection point to Setting

Go to setting. Right snap on the YRAM_ADOBE_FORM6 under the specific circumstance and make a Message.

Select the drop down. You can see 3 choices:

1. Text Module
2. Include text
3. Dynamic text

We have proactively talked about Text Module in our past article. Today we will discuss include Text.
Incorporate Texts are only Standard Texts. Go to Exchange SO10 for Incorporate Text.

Create texts in required languages: English

Press on Make. Enter the necessary text in English and Save it.

Allow us to save some text in another dialect: German.

language translation

Press on Create. Enter the required text in German and Save it.

You can create in all available languages and use them.
Right snap on the YRAM_ADOBE_FORM8 under the specific circumstance and make a Message (or change the Message made previously)
Select the TEXT and double tap. Change the text type to include Text and hit Enter.

Enter the details like below
Name: TEXT_FROM_SO10
Text Name: ‘YRAM_TEXT1’
Text Language: IV_LANGU
No error if text not available = Check the box.

Save .
Go to Layout. Go to Data View Select TEXT_FROM_SO10, drag and drop to Layout.

Save and enact the structure.

Allow us to plan the Driver program for the above structure.

*&---------------------------------------------------------------------*
*======================================================================*
* YRAM_ADOBE_FORM_PROGRAM8 *
*======================================================================*
* Project : SAP Adobe Forms Tutorial *
* Author : Varad (www.elearningsolutions.co.in) *
* Description : Printing SO10 Text in Adobe form *
*======================================================================*
REPORT yram_adobe_form_program8.

*======================================================================*
* Selection Screen
*======================================================================*
PARAMETERS : p_langu TYPE sy-langu.
*======================================================================*
* Data Objects
*======================================================================*

DATA: gv_fm_name TYPE rs38l_fnam, " FM Name
gs_fp_docparams TYPE sfpdocparams,
gs_fp_outputparams TYPE sfpoutputparams.

*======================================================================*
* Constants
*======================================================================*
CONSTANTS : gv_form_name TYPE fpname VALUE 'YRAM_ADOBE_FORM8'.

*======================================================================*
* START of Calling the Form
*======================================================================*
*&---------------------------------------------------------------------*
**&&~~ Form Processing: Call Form - Open
*
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
" Suitable Error Handling
ENDIF.
*&---------------------------------------------------------------------*
**&&~~ Get the Function module name based on Form Name
*
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = gv_form_name
IMPORTING
e_funcname = gv_fm_name.
IF sy-subrc <> 0.
" Suitable Error Handling
ENDIF.

*&---------------------------------------------------------------------*
**&&~~ Take the FM name by execuing the form - by using Pattern-
**&&~~ call that FM and replace the FM Name by gv_fm_name
**&&~~ Call the Generated FM

CALL FUNCTION gv_fm_name
EXPORTING
/1bcdwb/docparams = gs_fp_docparams
iv_langu = p_langu
* IMPORTING
* /1BCDWB/FORMOUTPUT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

*&---------------------------------------------------------------------*

*&---------------------------------------------------------------------*
*&---- Close the spool job
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* <error handling>
ENDIF.

In the event that your client has roll outs in two unique nations with two distinct dialects. In light of the sign on language of the SAP framework, the structure ought to print the result in that language. Incorporate/Standard Text helps in such interpretations.

The IV_LANGU field of the structure ought to preferably be populated progressively in genuine undertakings. However, for our test, we would include them as our choice screen boundary.

Test 1 :
Run the Program : YRAM_ADOBE_FORM_PROGRAM8
Enter the Language as ‘EN’.

Press on Print preview

Test 2 :
Run the Program : YRAM_ADOBE_FORM_PROGRAM8
Enter the Language as ‘DE’.

Press on Print preview

Thank you very much for your time! I hope you found this SAP Adobe Interactive Form Tutorial Part VIII Displaying Include Texts in Adobe forms helpful and informative.

YOU MAY BE INTERESTED IN

ABAP Units – Test a Little, Implement a Little, Reflect a Little

Application Development Life Cycle in Cloud Computing: A Comprehensive Guide

A to Z of OLE Excel in ABAP 7.