Iconet Services Ltd - SAP ABAP / SAPScript Consultant

Home Page
Company Profile
Search Internet for SAP Information
Subscribe to SAP R3 Mailing list
Sample ABAP Programs
ABAP How to
General Purpose layout set

Overcome problem with material number in ALV (4.6 version)

LOOP AT t_data INTO w_data.

MOVE-CORRESPONDING w_data TO w_out.

* strangely if a report variant is used the material disappears if

* the material is converted to output format, BUT if no variant is used

* NOT reformatting causes leading zeros to be displayed.

* therefore reformat if no variant used!!!!!!!!!!!!!!!

* format for output

if p_vari is initial.

CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'

EXPORTING

input = w_out-matnr

IMPORTING

output = w_out-matnr.

endif.

ENDLOOP.

Back to How To list