CALL FUNCTION 'PIQ_CALCULATE'
EXPORTING
IV_CALLER_ID = 'PL' / 'STD'
IS_CONTROL = LS_CONTROL
IS_GLOBAL = LS_GLOBAL
IT_HEAD = LT_HEAD
IT_ITEM = LT_ITEM
IMPORTING
ET_RESULT_EXT = LT_RESULT_EXT
ET_MESSAGE = LT_MESSAGE.
DATA: GT_CALLER_DATA_HEAD TYPE PIQT_NAME_VALUE,
GT_CALLER_DATA_ITEM TYPE PIQT_NAME_VALUE,
GT_RESULT_EXT TYPE PIQT_CALCULATE_RESULT_EXT.
GT_CALLER_DATA_HEAD = VALUE #( ( NAME = 'INCO1' VALUE = IV_INCTRM )
( NAME = 'WAERK' VALUE = IV_CURR )
( NAME = 'LAND1' VALUE = IV_CNTRY )
( NAME = 'ZZKDKG5' VALUE = IV_CNTRY )
( NAME = 'HWAER' VALUE = IV_CURR )
( NAME = 'KURRF_DAT' VALUE = IV_DATE )
( NAME = 'PRSDT' VALUE = IV_DATE )
INSERT VALUE #( VBELN = IV_VBELN KUNNR = IV_KUNNR CALLER_DATA = GT_CALLER_DATA_HEAD ) INTO TABLE LT_HEAD.
GT_CALLER_DATA_ITEM = VALUE #(
( NAME = 'VARCOND' VALUE = LS_MATNR-VARCOND )
( NAME = 'USE_MULTIVAL_ATTR' VALUE = iv_multi )
( NAME = 'USE_PREREAD_COND' VALUE = ABAP_FALSE )
( NAME = 'PMATN' VALUE = LS_MATNR-MATNR )
( NAME = 'MGLME' VALUE = LS_MATNR-MENGE )
( NAME = 'MGAME' VALUE = LS_MATNR-MENGE )
( NAME = 'PRSFD' VALUE = ABAP_TRUE )
INSERT VALUE #( KPOSN = LS_MATNR-KPOSN MATNR = LS_MATNR-MATNR CALLER_DATA = GT_CALLER_DATA_ITEM ) INTO TABLE LT_ITEM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |