Application Development 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: 

Populate long text in the 'Confirm. text' of the confirmation data

Former Member
0 Kudos

In our requirement, we are able to create an order confirmation using RFC 'BAPI_ALM_CONF_CREATE' (plant maintenence) but we are not finding anyway to populate the long text OF 'Confirm. text' of the the confirmation(transaction IW41). Please suggest how to populate Long text. in 'Confirm. text' using any RFC or thrugh 'BAPI_ALM_CONF_CREATE' .

Edited by: Rohit Kumar on Oct 7, 2008 3:25 PM

3 REPLIES 3

Former Member
0 Kudos

Any Idea please help???

0 Kudos

V_OBJ = SY-MANDT.

SELECT SINGLE RUECK RMZHL INTO (V_RUECK, V_RMZHL) FROM AFRU WHERE AUFNR EQ Order_No AND GRUND = 'WORK'.

CONCATENATE V_OBJ V_RUECK V_RMZHL INTO V_OBJ.

l_header-tdobject = 'AUFK'.

l_header-tdname = V_OBJ.

l_header-tdid = 'RMEL'.

l_header-tdspras = 'EN'.

if strlen( TEXT ) GT 40.

update AFRU set TXTSP ='E' WHERE AUFNR EQ Order_No.

endif.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

CLIENT = SY-MANDT

HEADER = l_header

INSERT = 'X'

SAVEMODE_DIRECT = 'X'

TABLES

LINES = t_textlines.

CALL FUNCTION 'COMMIT_TEXT'

EXPORTING

name = V_OBJ

savemode_direct = 'X'.

CLEAR : V_RUECK, V_RMZHL, V_OBJ , L_HEADER.

Here, t_textlines is a long text( set of lines in th elong text)

0 Kudos

Hi,

I need help on this long text.