Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in executing background

former_member213112
Participant
0 Likes
1,204

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,160

Hi

There's not enough code here to identify your issue.

Please provide more

Thanks

Arden

7 REPLIES 7
Read only

Former Member
0 Likes
1,161

Hi

There's not enough code here to identify your issue.

Please provide more

Thanks

Arden

Read only

0 Likes
1,160

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

Read only

0 Likes
1,160

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

Read only

0 Likes
1,160

Fill also REF_TABNAME ('VBPA') in field catalog, or fill more fields yourself.

Regards,

Raymond

Read only

Former Member
0 Likes
1,160

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

Read only

Former Member
0 Likes
1,160

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

Read only

Former Member
0 Likes
1,160

Check that that the report width doesn't exceed the LINE-SIZE parameter on the REPORT statement.

Rob