‎2015 Dec 16 4:00 AM
Hi,
I have developed a Z report in that while executing in foreground for limited period customer no is coming correctly(10 digits), while doing the same in background for unlimited period and while checking in spool or downloading to excel file the last 3 digits of customer no is missing. Even though the values are limited in background.
WA_FIELDCAT-FIELDNAME = 'KUNNR'.
WA_FIELDCAT-REF_FIELDNAME = 'KUNNR'.
WA_FIELDCAT-OUTPUTLEN = 12.
So please guide me how to rectify the problem.
Regards,
Watch point.
‎2015 Dec 16 4:33 AM
Hi
There's not enough code here to identify your issue.
Please provide more
Thanks
Arden
‎2015 Dec 16 4:33 AM
Hi
There's not enough code here to identify your issue.
Please provide more
Thanks
Arden
‎2015 Dec 16 5:00 AM
Hi Arden,
The below is the code for KUNNR from select to fieldcatalog. Kindly let me know the problem.
BEGIN OF TY_VBPA,
VBELN TYPE VBELN,
POSNR TYPE POSNR,
PARVW TYPE PARVW,
KUNNR TYPE KUNNR,
LIFNR TYPE LIFNR,
ADRNR TYPE ADRNR,
END OF TY_VBPA,
BEGIN OF TY_FINAL,
ERDAT TYPE VBAK-ERDAT,
VBELN TYPE VBELV,
POSNR TYPE POSNR,
VTWEG TYPE VBAK-VTWEG, " Distribution Channel Added By smruti .
EDATU TYPE EDATU, "GI date(VBEP)
KUNNR TYPE KUNWE,
End of ty_final.
SELECT VBELN POSNR PARVW KUNNR LIFNR ADRNR FROM VBPA INTO TABLE IT_VBPA with where condition.
read table IT_VBPA into wa_vbpa with key vbeln = WA_VBEP-VBELN.
if sy-subrc = 0.
WA_FINAL-KUNNR = WA_VBPA-KUNNR.
endif.
WA_FIELDCAT-FIELDNAME = 'KUNNR'.
WA_FIELDCAT-TABNAME = 'IT_FINAL'.
WA_FIELDCAT-SELTEXT_L = 'Customer'.
WA_FIELDCAT-REF_FIELDNAME = 'KUNNR'.
WA_FIELDCAT-OUTPUTLEN = 12.
WA_FIELDCAT-EMPHASIZE = 'C100'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR : WA_FIELDCAT.
Regards,
watch point
‎2015 Dec 16 5:12 AM
Still hard to tell from your code.
Debug the online process using the parameters you use for the Background process.
Ultimately your code most likely is at fault here.
Regards
Arden
‎2015 Dec 16 9:00 AM
‎2015 Dec 16 5:59 AM
Hi, Please use the FM 'CONVERSION_EXIT_ALPHA_OUTPUT' for customer when you are creating final internal table and check. It may help you.
Thanks,
Satya
‎2015 Dec 16 11:27 AM
Hi,
Make the column name length 12 or more i.e.
pass WA_FIELDCAT-SELTEXT_L = 'Customer Number' instead of Just customer. This is my tried and tested method.
alternate I think FM 'CONVERSION_EXIT_ALPHA_OUTPUT' will also work.
Regards
Chudamani Gavel
‎2015 Dec 16 3:00 PM
Check that that the report width doesn't exceed the LINE-SIZE parameter on the REPORT statement.
Rob