Dynamic text in adobe form – content flow to next page. SAP
Introduction:
I had a requirement from the client which requires an adobe form with dynamic text i.e text content should overflow to next pages. So, we implemented the sub form.
A sub form is a section in the form design that provides anchoring, layout, and geometry management for objects. The object in a sub form can be arranged in rows, columns or some other kind of balanced arrangement.
More than one sub form can be used in a form design. Sub forms can be placed inside other sub form. This relationship is displayed in the Hierarchy palette.
In the Hierarchy palette each sub form is denoted by a node and the objects wrapped in a sub form is displayed under the sub form node. The children of the sub form do not inherit changes made on the sub form level. Each sub form properties are independent of each other.
The below is the process of creating a sub form with text content flowed to next pages.
Step-1:
Firstly, we need to create an interface and provide the required details.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-Z_BLfKXJkhQ/YYuQqLPpTTI/AAAAAAAApJ0/2DfvyZA5xcUF0nJyMwjfe49fLFDcb_qWwCLcBGAsYHQ/w400-h211/1.png)
We need to provide description and interface type.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-G121R38GxRA/YYuQr41e1wI/AAAAAAAApKQ/sSw3DuTe7wEl0PS1cL6gQwa1-FVo7IVqwCLcBGAsYHQ/w400-h213/2.png)
Step-2:
Here, we need to develop the interface according to the requirement. Firstly, we go with the types declaration.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-zBsGSGpjJEw/YYuQr-6PMUI/AAAAAAAApKU/vzINDRJ85rU56d1aYs4bR562W8V8IQUQgCLcBGAsYHQ/w400-h209/3.png)
We need to define the importing parameter.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-2gIBZXwnBng/YYuQsYKNpTI/AAAAAAAApKY/N-wUt-qEeLA36Ctse2UdlzEk2grL_2NNACLcBGAsYHQ/w400-h211/4.png)
We need to define global data.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-SNY7J-z_S6o/YYuQsohbcSI/AAAAAAAApKc/yzsBOoU2Q84zqaXA2NcAOSQhtWv3BfgYgCLcBGAsYHQ/w400-h213/5.png)
We need to implement the required logic in code initialization.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-FhzSgVI5rQA/YYuQst9SEKI/AAAAAAAApKg/CTjdcdqSwpImHgq4pJx4fdfc8OsAUQhEQCLcBGAsYHQ/w400-h213/6.png)
Step-3:
Here in we need to develop an adobe form.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-6bztInN0bGU/YYuQtBuB9MI/AAAAAAAApKk/QltAKlk-ChsjFJsdiW6wPWmWtSK9FceBwCLcBGAsYHQ/w400-h213/7.png)
Provide description and interface as seen below.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-0HcXmUrcOIY/YYuQtUMcXpI/AAAAAAAApKo/wFYxD1l-b7c4h6YZSIKTOHmhdic5aAq9wCLcBGAsYHQ/w400-h213/8.png)
Step-4:
Here, we need to develop the layout for the adobe form in the layout section. So, I created a table with respect to requirement.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-_7knpU_ZLL0/YYuQtdoMPfI/AAAAAAAApKs/OZynpdttc2Ajhg2ZQtFSuwL54OvD4EQ5wCLcBGAsYHQ/w400-h214/9.png)
Step-5:
Here, we need to select the page 1(Untitled sub form page 1) in the hierarchy section and in right and in the object section in the left we need to change the option to “Flowed” in the content section and we should make sure that the check box “Allow page break with content” is checked.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-PtuinQPuHGU/YYuQqfCfDuI/AAAAAAAApJ8/jE-DYUBdiuwz8sLnNn5Jo-xJkgRUMk4zQCLcBGAsYHQ/w400-h209/10.png)
Step-6:
Here, we need to select the table in the hierarchy and in the object section we need to make sure that “Allow page break with content” is checked.
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-UOLcKpcqsmI/YYuQqHHsJJI/AAAAAAAApJ4/VYi4aFOAVEEs3d2cY2uWWQtoabtX7eLDQCLcBGAsYHQ/w400-h209/11.png)
Output:
Please find the output below.
Page-1
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-994eIcfsCfg/YYuQqxAH1qI/AAAAAAAApKA/YKfsiPPZFmgpNvFy_nWqENB0n8vGrj-EACLcBGAsYHQ/w313-h400/12.png)
Page-2
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-yoH-p47eNT4/YYuQrCDKJmI/AAAAAAAApKE/A7MK9I3JMa4odHkL2pyyOks67L2MTYiHQCLcBGAsYHQ/w313-h400/13.png)
Page-3
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-I0srBZfkQUk/YYuQrL1xPVI/AAAAAAAApKI/hHkooUd_Ycc0d7TZLzX0xO_N-Hu8fIWZACLcBGAsYHQ/w308-h400/14.png)
Page-4
![Dynamic text in adobe from – content flow to next page SAP ABAP Development, SAP ABAP Exam, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Certification, SAP ABAP Preparation](https://1.bp.blogspot.com/-R-TLDScOgQI/YYuQrptOlMI/AAAAAAAApKM/TPAZiin-RdkkZoInMaZst1NJPk8XEX1UwCLcBGAsYHQ/w304-h400/15.png)
Source: sap.com