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

Regarding Smartforms

Former Member
0 Likes
546

Hi all,

Here is my requirement.

How to upload standard text created in SO01in my smartform.

regards

Reddy

4 REPLIES 4
Read only

Former Member
0 Likes
519

Hi,

Create a Text element in the Window, there in that text element Line editor, you can insert the INCLUDE statment to access the Standard text.

and also, you can write the READ_TEXT function module in the program lines to get the Standard texts

Regards

Sudheer

Read only

Former Member
0 Likes
519

Text element Window Line editor,

INCLUDE statment to access the Standard text

aftere do this steps

ABAP READ_TEXT functions to read the SAP Long Text

All the long text can be retrieve using this method.

You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.

To check your long text header, go into the long text. Click Goto -> Header

Example of READ_TEXT functions reading tables PBIM - Independent requirements for material.

REPORT ZTEXT .

TABLES: PBIM.

  • stxh, stxl, stxb - trans tables for text

  • ttxit - text on text-ids

  • ttxot - Short texts on text objects

  • Transaction MD63

SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR,

S_WERKS FOR PBIM-WERKS.

DATA: BEGIN OF HTEXT.

INCLUDE STRUCTURE THEAD.

DATA: END OF HTEXT.

DATA: BEGIN OF LTEXT OCCURS 50.

INCLUDE STRUCTURE TLINE.

DATA: END OF LTEXT.

DATA: BEGIN OF DTEXT OCCURS 50.

DATA: MATNR LIKE PBIM-MATNR.

INCLUDE STRUCTURE TLINE.

DATA: END OF DTEXT.

DATA: TNAME LIKE THEAD-TDNAME.

SELECT * FROM PBIM WHERE WERKS IN S_WERKS.

MOVE PBIM-BDZEI TO TNAME.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

ID = 'PB'

LANGUAGE = 'E'

NAME = TNAME

OBJECT = 'PBPT'

  • ARCHIVE_HANDLE = 0

IMPORTING

HEADER = HTEXT

TABLES

LINES = LTEXT

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

LOOP AT LTEXT.

IF LTEXT-TDLINE NE ''.

MOVE LTEXT-TDLINE TO DTEXT-TDLINE.

MOVE PBIM-MATNR TO DTEXT-MATNR.

APPEND DTEXT.

ENDIF.

ENDLOOP.

ENDSELECT.

LOOP AT DTEXT.

WRITE:/ DTEXT-MATNR, DTEXT-TDLINE.

ENDLOOP.

Read only

varma_narayana
Active Contributor
0 Likes
519

Hi...

To include a standard text created SO10 in smartform.

Create a Text node under a window where u want to display it.

In the <b>General attributes</b> of the Text node, Select the <b>Text type</b> as <b>Include Text</b>

Then it wiil Ask for the Name and the attributes of the Text.

This will work for u.

<b>Reward if Helpful.</b>

Read only

Former Member
0 Likes
519

hi,

smartform->click the window->text type->include text give the text name which u create in so10 text object as text,text id as st,language as en.

save and activate.

Regards,

Divya