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: 

ca02 long text can not display

0 Kudos
2,232

Dear:

when ADDON-PGM called ca01/ca02 bapi,and call function 'save_text' (THEAD no error, SAVEMODE_DIRECT= 'X') ps:PLPO ROUTING

The long text can not display on the CA02/CA03. and when double click(long text check box TXTKZ),message CP752 will output.

but table STXH have the saved text. How to save the text correctly? (English ok,Japanese ok,chinese ok)

ps: directly update plpo-txtsp can solve the problem,but except this...plz...

16 REPLIES 16

RaymondGiuseppi
Active Contributor
2,068

Don't use SAVE_TEXT,

0 Kudos
2,068

this 'add-on' means my se38 pgm,my pgm already use text parameter [TEXT,TEXTALLOCATION] of 'BAPI_ROUTING_CREATE', but error.

it_textallocation-OBJECT_TYPE = '13'.
it_textallocation-VALID_FROM = SY-DATUM.
it_textallocation-ACTIVITY = '0010'.
it_textallocation-VALID_TO_DATE = '99991231'.
it_textallocation-LANGU = SY-LANGU.
it_textallocation-LINE_FROM = 1.
it_textallocation-LINE_TO = 4.
APPEND it_textallocation.

best regards

0 Kudos
2,068

Hello, as already say use standard behavior for manage text, but for information, store text is not sufficent.

PLKO (and / or PLPO) field TXTSP have to be updated with language and PLKO-KTEXT (PLPO-LTXA1 / PLPO-LTXA2) have to be filled with first (and 1er + 2d lines for PLPO) line(s) from text...

0 Kudos
2,068

(Don't use the 'Add-On' term for Customer Development)

  • Which error message did you get in RETURN table?
  • Did you try to debug forms convert_external_txt_hdr and convert_external_txt

0 Kudos
2,068

(Don't use the 'Add-On' term for Customer Development) ->got it,thanks
i'm debugging forms 'convert_external_txt_hdr' and 'convert_external_txt', this is the text value


ps:return message is 'CPWB 833'

best regards

0 Kudos
2,068

To stanislaslemaire

Yes...I tested the same results, I just want to ask if there are any other solutions
thank u

rest regards

0 Kudos
2,068

From the OSS note, I would suggest usage of FM CP_CL_S_OPR_LTEXT_CREATE which wraps required FM to change long text of an opertation (CP_CL_S_OPR_PROVIDE...SAVE_TEXT...CP_CL_S_OPR_CHANGE)

0 Kudos
2,068

raymond.giuseppi

thank u, Giuseppi

The function doesn't work cause gobal table 'g_opr_adm' have no value.

maybe the value come from the others function?

0 Kudos
2,068

Look at the 'Load' FM such as CP_CL_P_OPR_LOAD or CP_CC_S_LOAD_COMPLEX_BY_OPR as written in the OSS note. (also look at the CP_CC_S_SAVE at end of your code?)

0 Kudos
2,068

raymond.giuseppi

thank u, Giuseppi

CP_CC_S_LOAD_COMPLEX_BY_TSK(load object)-->CP_CL_P_OPR_LOAD(lock the operation)-->CP_CL_S_OPR_LTEXT_CREATE(change text)

-->CP_CC_S_SAVE(save data)-->COMMIT WORK

I use these function by the sorting above. there are only one question make the 'save text' error -->no_authority .

In function 'CP_CL_S_OPR_LTEXT_CREATE(change text)' 's lines 363, function 'CP_CL_S_OPR_CHANGE'called.And subrc = 2 will return.
Lock at the picture,IF i debug <ls_plankz>-flg_ecm to space.And run the process until commit.The text will create successfully.

※CP_CL_S_OPR_LTEXT_CREATE-->CP_CL_S_OPR_CHANGE-->CP_CL_P_TSK_AUTHORITY_CHECK-->line 144

Do u know why i have no authority?

Best regards.

0 Kudos
2,068

Which value of I_ECN_S did you pass to CP_CL_S_OPR_LTEXT_CREATE?

0 Kudos
2,068

I_ECN_S is space

0 Kudos
2,068

only pass ' I_KEY_DATE,I_PLNTY,I_PLNNR,I_PLNAL,I_PLNFL,I_VORNR,I_LANGUAGE, tables:I_TEXT '

0 Kudos
2,068

today,i try it again. data comes success without debug.

but it usually error

0 Kudos
2,068

it's ok now,thank u..

Is there any other way, such as patching

RaymondGiuseppi
Active Contributor
0 Kudos
2,068

Which add-on?