2018 Aug 28 11:22 AM
Hello folks,
I am creating a BDC for changing alternate UOM conversion values. My problem is that my program is not changing required values in UOM tab in mm02.
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' WA_IT_MATNR-MATNR.
* 'ABC'.
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'.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'=ZU01'.
perform bdc_field using 'BDC_CURSOR'
'MAKT-MAKTX'.
*perform bdc_field using 'MAKT-MAKTX' WA_IT_MATNR-MAKTX.
** 'ABC'.
perform bdc_field using 'MARA-MEINS' "WA_IT_MATNR-MEINS.
'KG'.
perform bdc_field using 'MARA-MATKL' "WA_IT_MATNR-MATKL.
'SS05'.
perform bdc_dynpro using 'SAPLMGMM' '4300'.
perform bdc_field using 'BDC_OKCODE'
'=ZU02'.
perform bdc_field using 'BDC_CURSOR'
'SKTEXT-SPRAS(01)'.
perform bdc_dynpro using 'SAPLMGMM' '4300'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'MAKT-MAKTX' WA_IT_MATNR-MAKTX.
perform bdc_field using 'BDC_CURSOR'
'SMEINH-UMREZ(02)'.
perform bdc_field using 'SMEINH-UMREN(02)'
WA_IT_MATNR-UMREN.
* '111'.
perform bdc_field using 'SMEINH-UMREZ(02)'
WA_IT_MATNR-UMREZ.
* '999'.
perform bdc_dynpro using 'SAPLMGMM' '4300'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
Not able to figure out what is wrong
2018 Aug 29 1:01 PM
The problem was with the data that was being copied into SAP window. While copying data from file and pasting it in sap window some how alot of blank spaces were included with the data, which in turn was increasing the length of the data that can be punched inside that field removing those extra spaced resolved my problem.
2018 Aug 28 1:06 PM
Better use a BAPI than an obsolete tech such as BDC.
(e.g. BAPI_MATERIAL_SAVEDATA or BAPI_MATERIAL_SAVEREPLICA)
In any case, check correct format of units of measure (conversion exit CUNIT)
2018 Aug 29 6:17 AM
I am not able to open link provided by you. Will appreciate your efforts for detailed information.
2018 Aug 29 6:25 AM
IF you search in google for these BAPIs you'll find a wealth of detail and examples.
2018 Aug 29 6:59 AM
If you don't have access to the sap launchpad use the search included in the forum or google.
2018 Aug 29 12:58 PM
Well thanks for your response. In the mean time i solved my problem my self. cheers !!!
2018 Aug 29 1:01 PM
The problem was with the data that was being copied into SAP window. While copying data from file and pasting it in sap window some how alot of blank spaces were included with the data, which in turn was increasing the length of the data that can be punched inside that field removing those extra spaced resolved my problem.