05-25-2011 10:27 AM
Hi,
I am working in 4.6 C and here the master data ANLA we have 4 Zfields.
I have done the append structure to bapi. I am able to create the asset But, its not getting updated in the AS03.
Please let me know what to do.
Is it possible if i create EXTENSIONIN the fields will get updated. If so, Please let me know the steps.
Regards,
Prathima Talari.
05-25-2011 10:43 AM
Weren't you supposed to add your customer fields to table ANLU ? (CI_ANLU)
(Check SMOD Enhancement AIST0002)
Regards,
Raymond
05-25-2011 10:51 AM
05-25-2011 11:44 AM
Okay, then
- Read documentation of BAPIPAREX to understand how to fill EXTENSIONIN parameters (or SAP documentations like [Appending Customer Field|http://help.sap.com/saphelp_nw04/helpdata/en/3e/0e1089c24611d1ad09080009b0fb56/content.htm])
- Structure to use is BAPI_TE_ANLU
Regards,
Raymond
05-25-2011 1:15 PM
yes i have done that part.
what i am not able to make it is in the following link i got teh steps but in my version nls_langu_cp_tab is not there. They have asked me to include that SAP note.
Please help me with the steps what i have to do .
i have done the declaretions and all.
Regards,
Prathima Talari.
05-25-2011 3:54 PM
947304 is an obsolete (or hidden, or not allowed for me to read) SAP OSS note, when we were in 46C SP33 we did not need this OSS note.
Regards,
Raymond
05-25-2011 4:07 PM
i have ignored that thread. as per ur posts i have done the following steps.
i have created the 4 fields in CI_ANLU
ZZORD46 LAND1 country
ZZORD47 REGIO region
ZZORD48 ZZORD48 County
ZZORD49 ZZORD49 City
still its not working.
step 1 :
DATA :
ex_anlu LIKE bapi_te_anlu ,
ex_marax LIKE bapi_te_marax ,
it_extension LIKE bapiparex OCCURS 0 WITH HEADER LINE,
it_extensionx LIKE bapiparexx OCCURS 0 WITH HEADER LINE.
Constants: c_bapi_te_anlu(12) TYPE c VALUE 'BAPI_TE_ANLU'.
ex_anlu-ZZORD46 = 'US'.
ex_anlu-ZZORD47 = 'FL'.
ex_anlu-ZZORD48 = 'DUVA'.
ex_anlu-ZZORD49 = 'JACK'.
it_extension-structure = c_bapi_te_anlu.
it_extension-valuepart1 = ex_anlu.
APPEND it_extension.
and i have passed this internal table to bapi extension.
2. I have done the following in the exit in the enhancement AIST0002 suggested by you .
in this exit
EXIT_SAPL1022_001
in this include
INCLUDE ZXAISU05 .
Code:
anlu = i_anlu.
e_anlu = i_anlu.
in this exit
EXIT_SAPLAIST_002
in this include
INCLUDE ZXAISU03
Code:
move i_anla-zzord46 to i_anlu-zzord46.
move i_anla-zzord47 to i_anlu-zzord47.
move i_anla-zzord48 to i_anlu-zzord48.
move i_anla-zzord49 to i_anlu-zzord49.
move parameters of function module EXIT_SAPLAIST_002 to global
variables
anla = i_anla.
anlv = i_anlv.
anlu = i_anlu.
gd_mode = i_mode.
gd_xsubno = i_xsubno.
gt_anlz[] = t_anlz[].
gt_anlb[] = t_anlb[].
in this exit
EXIT_SAPLAIST_003
in this include
INCLUDE ZXAISU04 .
Code:
data: ls_anlu like anlu.
import ls_anlu from memory id 'anlu_flds'.
if sy-subrc = 0.
move ls_anlu-zzord46 to anlu-zzord46.
move ls_anlu-zzord47 to anlu-zzord47.
move ls_anlu-zzord48 to anlu-zzord48.
move ls_anlu-zzord49 to anlu-zzord49.
free memory id 'anlu_flds'.
endif.
move-corresponding anlu to e_anlu.
Please let me know if i need to do anything else.