07-12-2007 7:41 AM
07-12-2007 7:43 AM
Hi joseph,
If ur variable is of type C and size 10 and the value of that variable is 3456.
when u display it it will come by 3456.
but if u use unpack var to var.
then the value will be 0000003456.
07-12-2007 7:43 AM
Hi joseph,
If ur variable is of type C and size 10 and the value of that variable is 3456.
when u display it it will come by 3456.
but if u use unpack var to var.
then the value will be 0000003456.
07-12-2007 7:43 AM
07-12-2007 7:46 AM
07-12-2007 7:46 AM
Hi Frankln,
Please find the piece of code .
LOOP AT it_mara INTO wa_mara.
************************************************************
this syntax is used for truncating leading zeros like
'0000000018' = '18'. but if data is like 'ABCD' then
it gives Dump.
**pack wa_mara-matnr to e_matnr.
************************************************************
******************************************************************
this function module changes matnr '00000018' = '18'
'ABCD' = 'ABCD'
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = wa_mara-matnr
IMPORTING
output = e_matnr.
*******************************************************************
WRITE:/ e_matnr ,
25 wa_mara-mtart ,
45 wa_mara-meins .
ULINE.
WRITE:/65 'Plant' .
LOOP AT it_marc INTO wa_marc.
WRITE:/65 wa_marc-werks.
ENDLOOP.
Reward Points if Helpful .
Regards,
Amber S