2023 Jun 09 8:24 AM
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...
2023 Jun 09 8:50 AM
Don't use SAVE_TEXT,
2023 Jun 12 2:48 AM
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
2023 Jun 12 8:40 AM
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...
2023 Jun 12 9:24 AM
(Don't use the 'Add-On' term for Customer Development)
2023 Jun 12 10:20 AM
(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
2023 Jun 12 10:26 AM
To stanislaslemaire
Yes...I tested the same results, I just want to ask if there are any other solutions
thank u
rest regards
2023 Jun 16 2:51 PM
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)
2023 Jun 19 10:40 AM
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?
2023 Jun 19 11:49 AM
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?)
2023 Jun 20 11:43 AM
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.
2023 Jun 20 12:40 PM
Which value of I_ECN_S did you pass to CP_CL_S_OPR_LTEXT_CREATE?
2023 Jun 21 3:37 AM
2023 Jun 21 3:38 AM
only pass ' I_KEY_DATE,I_PLNTY,I_PLNNR,I_PLNAL,I_PLNFL,I_VORNR,I_LANGUAGE, tables:I_TEXT '
2023 Jun 21 3:41 AM
today,i try it again. data comes success without debug.
but it usually error
2023 Jun 26 9:35 AM
it's ok now,thank u..
Is there any other way, such as patching
2023 Jun 09 12:59 PM