Question:
Hi,
i need to update the data loaded using API_SEMBPS_GETDATA with API_SEMBPS_SETDATA. Input parameters are the same, itk_data is the same but how to fill itk_row?
Thank you.
Answer:
The row data contain the row number, the charateristics name and the value of the characteristic. You start by defining the row data with the following data statemment
DATA: BEGIN OF ITAB_ETK_ROW OCCURS 0.
INCLUDE STRUCTURE UPC_YS_API_ROW.
DATA: END OF ITAB_ETK_ROW.
Then you fill in the row data
ITAB_ETK_ROW-ROW = TR_TABLE-Z_EXCEL_ROW.
ITAB_ETK_ROW-CHANM = '0CALMONTH'.
ITAB_ETK_ROW-CHAVLEXT = TR_TABLE-Z_EXCEL_VAL.
APPEND ITAB_ETK_ROW.
ITAB_ETK_ROW-ROW is the number of the row
ITAB_ETK_ROW-CHANM is the charateristics name
ITAB_ETK_ROW-CHAVLEXT is the value of the field
mfwstchas