REPORT ZSAMPLE_VALUE.
TYPES: gtt_sflight TYPE STANDARD TABLE OF SFLIGHT WITH DEFAULT KEY .
DATA(lt_flights) = VALUE gtt_sflight( ( carrid = 'AA' connid = '0017' fldate = '26.11.2020' price = '422,94' )
( carrid = 'AZ' connid = '0018' fldate = '29.12.2020' price = '100.89' )
( carrid = 'DL' connid = '0019' fldate = '30.05.2021' price = '422,94' ) ).
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = VALUE bapimathead( material_long = rv_matnr
ind_sector = 'M'
matl_type = 'FERT'
basic_view = 'X'
storage_view = 'X'
account_view = 'X'
purchase_view = 'X' )
clientdata = VALUE bapi_mara( matl_group = get_material_group( )
base_uom = get_unconverted_uom( )
net_weight = '10'
unit_of_wt = 'KG' )
clientdatax = VALUE bapi_marax( matl_group = 'X'
base_uom = 'X'
net_weight = 'X'
unit_of_wt = 'X' )
plantdata = VALUE bapi_marc( plant = get_plant( )
pur_group = get_purch_group( ) )
plantdatax = VALUE bapi_marcx( plant = get_plant( )
pur_group = 'X' )
valuationdata = VALUE bapi_mbew( val_area = get_valuation_area( )
price_ctrl = lv_price_ctrl
std_price = '10.00'
price_unit = lv_price_unit
moving_pr = '10.00'
val_class = get_valuation_class( iv_matl_type = 'FERT' ) ) "3300/7920 depends on system
valuationdatax = VALUE bapi_mbewx( val_area = get_valuation_area( )
price_ctrl = 'X'
std_price = 'X'
moving_pr = 'X'
price_unit = 'X'
val_class = 'X' )
storagelocationdata = VALUE bapi_mard( plant = get_plant( )
stge_loc = get_storage_location( ) )
storagelocationdatax = VALUE bapi_mardx( plant = get_plant( )
stge_loc = get_storage_location( ) )
TABLES
materialdescription = lt_create_material_matdscr
returnmessages = lt_returnmessages.
Code from CL_API_RESERVATION_DOC_DPC_EXT - Local Test Class
TABLES
materialdescription = value t_bapi_makt( ( langu = 'D'
langu_iso = 'DE'
matl_desc = 'Sample Material'
del_flag = ' ' ) )
returnmessages = value cfx_bi_tt_bapi_matreturn2( ( type = 'E'
ID = 'SD'
number = '120'
message = 'Sample' ) ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |