![]() ![]() Ls_extensioninx-structure = 'BAPI_TE_MARAX'. " End of the do loop for all fields of the mara "Add an 'X' where you want to activate the updateĮNDDO. "Don't forget to change 'lv_x TYPE char41' if needed Ls_extensionin-structure = 'BAPI_TE_MARA'.ĭO 41 TIMES. "At least the mendatory key field: 'material' Ls_mara-material = ls_head-material = us_result-matnr. Lt_extensioninx TYPE TABLE OF bapiparexx, "Input entry of mara with masterdata to update in the system #FM TO UPDATE ADRC TABLE CODE#I commented the code to help you if you want to use it :) FORM update_mara We used BAPI_MATERIAL_SAVEDATA with the extension. ![]() I'm interested in all recommendations, tutorials or advices :)įinally this is the solution choosen. CONCATENATE sy-mandt lv_matnr INTO lv_mara_key.įoreign_lock = 1 system_failure = 2 OTHERS = 3. Has I make my checks on integrity on my code, I guess I can use a simple INSERT/UPDATE (MODIFY) ? How I can find the mapping between the fields on this FM and the fields on the MARA table ? Solution 3 If I'm checking the FM, I have some objects but the columns names are not the same. Moreover, I didn't find a solution to update the fields of the table. I guess I have to add each Z* fields on it, before use this FM ? This FM allow to update MARA table with standard fields + custom (via EXTENSION(X))įor information, my BAPI_TE_MARA & BAPI_TE_MARAX looks like: Use function module BAPI_MATERIAL_SAVEDATA. ) depending of the tcode used.ĭo you know how I can skip these checks? Or known the initial tcode? Solution 2 - BAPI_MATERIAL_SAVEDATA If I correctly understand the functionality of this FM, the modification will be executed through a tcode (i.e.: MM01/02/03).īut, I don't know what was the initial tcode for each row and I have functional issues (i.e: Article category not correct. Problem: I successfully executed the code, but now I caught some functional errors. Use function module MATERIAL_MAINTAIN_DARK. I have only information about the MARA, no data about related tables. SELECT SINGLE * INTO ls_mara FROM mara WHERE matnr = lv_matnr. "" matnr from CONVERSION_EXIT_MATN1_INPUT
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |