‎2014 Jul 16 3:52 PM
Hi Expert,
i want to call MR21 transaction code from program with filling plant ,company code and material from the production order
my first question is
is it possible to call MR21 with filling material?
if possible then how ?
Thanks,
Mahipal
‎2014 Jul 16 4:01 PM
‎2014 Jul 18 12:17 PM
Sample if you were not successful :
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE,
opt TYPE ctu_params.
CLEAR opt.
opt-dismode = 'E'.
opt-nobinpt = 'X'.
opt-nobiend = 'X'.
REFRESH: bdcdata.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_field USING 'RMMG1-MATNR'
'AA0D45'.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(01)'
'X'.
CALL TRANSACTION 'MM02' USING bdcdata OPTIONS FROM opt.Regards,
Raymond
‎2014 Jul 16 6:13 PM
‎2014 Jul 17 6:41 AM
Try this one: BAPI_MATVAL_PRICE_CHANGE
Previously you have to customize view VCKML_PRICE_SEND (check note 646630)
Regards
‎2014 Jul 17 6:50 AM
Hi Friend,
You can try like
CALL FUNCTION 'BAPI_M_REVAL_CREATEPRICECHANGE' "BAPI: Material Revaluation - Generate Price Change
EXPORTING
comp_code = " bapi2027_pc_hd-comp_code Company Code
pstng_date = " bapi2027_pc_hd-pstng_date Posting Date
IMPORTING
ml_doc_year = " bapi2027_pc_ex-ml_doc_year Material Revaluation Document: Year Saved
ml_doc_num = " bapi2027_pc_ex-ml_doc_num Material Revaluation Document Number
TABLES
material_price_list = " bapi2027_pc_list List of Materials and Prices (per C&V Type)
return = " bapireturn1 Return Parameter
. " BAPI_M_REVAL_CREATEPRICECHANGE
regards Ashwin kv
‎2014 Jul 17 7:33 AM
Hi all,
My issue is how to call this transaction by programe is possible with filling header fields and item fields from production order???
Thanks.
‎2014 Jul 17 9:14 AM
Hi,
then, you have to call your transaction through BDC Technology.
Please, refer this:
Hope that help you.
Best regards.
‎2014 Jul 17 1:41 PM
‎2014 Jul 17 1:57 PM
‎2014 Jul 18 11:10 AM
Hi All,
I have done it but now my problem is it will ask me every time for enter like in image
i want to remove this popup then how can i do this?
Thanks,
‎2014 Jul 18 11:40 AM
Hi,
Put MODE = 'N'(No screen) with Call transcation, below is the code
call transaction 'MR21' using BDCDATA Mode 'N'..
No screens are displayed with above mode.
‎2014 Jul 18 11:42 AM
Hi,
you just need to change the MODE.
N | Screens are not displayed. You must choose this mode when you run the BDC in a background job. |
A | All screens are displayed. On each screen, a little popup is displayed with the next recorded function, the user has to press Enter to execute it. |
E | By default, screens are not displayed, except if an error occurs, or if the end of BDC data is reached although the recorded transaction was not exited |
Do not forget to click on "Correct Answer", to close the topic.
Rachid.
‎2014 Jul 18 11:59 AM
Hi Mahipalsinh,
Check the Recording, if not found add
PERFORM bdc_field USING 'BDC_OKCODE' '=ENTR'.
Regards,
Venkat.
‎2014 Jul 18 11:53 AM
hi
you can use call transaction bdc
and use mode 'E' .
Do recording in SHDB .