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

Not Getting Currect data.

Former Member
0 Likes
412

hi all,

here i have one form for print of CASH JOURNAL . And for this print i entered data from Transaction FBCJ. i can done every thing. and i put short text and long text in accounting document. then entry was done.

Now i want to print this document. when i print CASH JOURNAL this time report get only short text which i entered in FBCJ. for this my report in below. but now i want long text on the place of short text . But i don't know in which table this long text is SAVE and if this table is not include in this report then how can i merge table for text..............................

Please help me out....

LOOP AT it_tcj_positions.

move-corresponding it_tcj_positions to it_out.

modify it_out transporting POSITION_TEXT where awkey = it_tcj_positions-posting_number.

ENDLOOP.

loop at it_out.

SELECT COUNT( * ) FROM STXH WHERE TDOBJECT = 'DOC_ITEM' AND TDNAME = it_out-NAME AND TDID = '0001'

AND TDSPRAS = 'E'.

IF SY-SUBRC = 0 .

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = '0001'

LANGUAGE = 'E'

NAME = it_out-NAME

OBJECT = 'DOC_ITEM'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

LINES = LINE

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8

.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

LOOP AT LINE.

IF LINE-TDLINE <> ' '.

IF sy-tabix = '1'.

it_out-text2 = LINE-TDLINE.

ENDIF.

IF sy-tabix = '2'.

it_out-text3 = LINE-TDLINE.

ENDIF.

IF sy-tabix = '3'.

it_out-text4 = LINE-TDLINE.

ENDIF.

IF sy-tabix = '4'.

it_out-text5 = LINE-TDLINE.

ENDIF.

IF sy-tabix = '5'.

it_out-text6 = LINE-TDLINE.

ENDIF.

ENDIF.

ENDLOOP.

ENDIF.

endloop.

endform. " get_data

Thanks in Advance .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
386

Hi,

You can use the 'Read_Text' function to pupulate the long text you are entering,

The attributes of the FM 'Read Text' you can get from your transaction, just go to your Transaction and the place where your enter your Long text, In menu just check for header Details,

The main attributes you have to enter is 'ID' object', name, then you can get this data in one internal table from that table you can easily populate to ur program

May this wil help you

Rani

2 REPLIES 2
Read only

Former Member
0 Likes
386

Chauvan,

Use the Function Module READ_TEXT for getting the long text and pass the relavent parameters. The paramter you can find in Table STXH.

Regards,

Shakeel

Read only

Former Member
0 Likes
387

Hi,

You can use the 'Read_Text' function to pupulate the long text you are entering,

The attributes of the FM 'Read Text' you can get from your transaction, just go to your Transaction and the place where your enter your Long text, In menu just check for header Details,

The main attributes you have to enter is 'ID' object', name, then you can get this data in one internal table from that table you can easily populate to ur program

May this wil help you

Rani