Posts

Showing posts from December, 2024

Create PDF from Internal Table

This code sample explains how to create a PDF xstring from internal table.   SELECT * FROM but000 INTO TABLE @DATA(lt_tab) UP TO 100 rows. DATA(lo_pdf) = NEW cl_apoc_pdf_generator( ). lo_pdf->create_pdf( EXPORTING input = lt_tab RECEIVING pdf_binary_output = DATA(rv_bin) ).

Transporting SAP standard text

Image
  STEP 1 : Create Standard Text.  To create standard text, you have to use T-Code SO10. In next window, pass the Text Name -> Click on CREATE Push Button. This will open a new window where you can save the TEXT. Next step is to create the TRANSPORT REQUEST to transport the TEXT. This can be done using T-Code: SE09. Go to Home screen and run T-Code SE09. To create Transport request, you have to click on CREATE button at the top. This will open Transport Organizer as below: This will open Create Request window. Enter the Short Description, Project and click on Save button as below. You can also change Transport Request status by navigating to Request/Task tab at the top. This can be changed from Unclassified to Correction or Repair. For this select your transport request (BCDK906932) and then click on Request/Task on main menu à Change Type and then select the Correction. Now you can see that from Unclassified the request type changed to Development/Correction. Next step is t...

ABAP DYNAMIC CELL COLORING

  FORM  create_dynamic  .    PERFORM  create_dynamic_fieldcat  TABLES  gt_fieldcat2 .    PERFORM  create_dynamic_table  TABLES  gt_fieldcat2 .    PERFORM  create_dynamic_data .    PERFORM  set_dynamic_color . ENDFORM .                     " create_dynamic_table ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ   FORM  create_dynamic_fieldcat  TABLES  pt_fieldcat  TYPE  lvc_t_fcat .    DEFINE  $_set_fieldcat .      clear  :  pt_fieldcat .     pt_fieldcat - fieldname  =  &1 .     pt_fieldcat - ref_table  =  &2 .     pt_fieldcat - ref_field  =  &3 .      if  &4  is  not  initial .   ...