‎2013 Sep 23 10:23 AM
Hi,
as such there is no functions available in WWI for barcode.
there are 2 option available
1. use bar code interface
2. use bar code fonts
we have to proccess through 2 option
because i m prepairing a DEMO.
i have downloaded required barcode fonts in my system.
now as per wwi we have to use C128_DUMMY_CONVERSION_METHOD function module,
but when i check this FM there is no source code . if we go through Z of this FM
then what perameter we have to take care of and how to design source code .
here i attached some thread for the same..
‎2013 Sep 23 11:24 AM
Hi Abhay,
The standard function module C128_DUMMY_CONVERSION_METHOD is called in the Report template for expanding Barcode fonts, you need to write your own code by copying standard FM as ZC128_DUMMY_CONVERSION_METHOD and include your specific requirements and then you need to call this ZFM into Report symbol.
Regards,
Sujeet
‎2013 Sep 23 1:17 PM
hi sujeet,
thanks for quick reply.
as advice by you i have alreaady copy this FM in ZFM, but i am working with C128, C_39 and EAN13 all three bar code type.
so i m looking for code which we have to write in source code.
‎2013 Sep 23 1:36 PM
Abhay,
Example Code:
DATA: W_SO(4) TYPE C,
W_ADDR TYPE ADRNR,
W_EMAIL TYPE AD_SMTPADR,
W_RES TYPE TDLINE,
W_RECN TYPE RCGLSYSELC-RECNTLP,
W_RCGLSYSELC TYPE RCGLSYSELC.
" Assign the import of Selection criteria for symbol values to a locale variable. After that, get the RECN from the RGV.
W_RCGLSYSELC = I_SEL_CRIT.
W_RECN = W_RCGLSYSELC-RECNTLP.
" Select Sales Organization, first 4 characters from the name of RGV are equal to the name of SO...
SELECT SINGLE LDEPID FROM ESTLP INTO W_SO WHERE RECN = W_RECN.
" Select the Adress RECN from the SO. Adress data is saved in table ADRC with a unique adnr key...
SELECT SINGLE ADRNR FROM TVKO INTO W_ADDR WHERE VKORG = W_SO.
IF SY-SUBRC EQ 0.
SELECT SINGLE SMTP_ADDR FROM ADR6 INTO W_EMAIL WHERE ADDRNUMBER = W_ADDR.
IF SY-SUBRC EQ 0 AND ( W_EMAIL NE ' ' OR W_EMAIL NE '' ).
W_RES = W_EMAIL.
ELSE.
W_RES = 'Not available.'.
ENDIF.
ELSE.
W_RES = 'Not available.'.
ENDIF.
X_RCGLSYVAL-VAL_STRING = W_RES.
Refer below link for more Details:
http://help.sap.com/saphelp_erp60_sp/helpdata/EN/a7/28750c0a6c11d28a220000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
http://scn.sap.com/thread/3201059
Regards,
Sujeet
‎2013 Sep 24 10:24 AM
hi Sujeet,
Thanks for your reply,
provided code and threads are seems for report but i m looking for the code for customize FM of C128_DUMMY_CONVERSION_METHOD.
from which i have to genrate barcode for c128, EAN39 ..
please revert.
‎2014 Aug 19 3:03 PM
hello Abhay ,
Did you get the answer for this issue .I come across the same situation like yours . No one is replying back for the code actually . This function module is supposed to be used if you want to expand the bar code right . Suppose if we do not want to expand then is it still necessary to use this function module and modify and write the code ? let me know how did you handle this situation to output bar code in wwi template .
Regards,
M D