Professional Documents
Culture Documents
Abap Resume
Abap Resume
IT_FIELDCAT = IT_FCAT.
Tables
T_OUTTAB = it_mara
And In the tables we have to give whatever the internal table that is containing data
If we want to remove before zeroes in matnr then go to matnr field and add
Wa_fcat-NO_ZERO = ‘X’.
If we want to highlight the particular field row like matnr in output list then use
WA_fcat-HOTSPOT = ‘X’ .
So one hand symbol will be there instead of cursor on matnr, here one click on matnr is equal to
double click.
SY-UCOMM is a system variable which will hold the user action. This sy-ucomm variable will capture
one value whenever an user do any action.
When user perform any action in the output the value of r_ucomm means the value ofsy_ucomm is
‘&IC1’ .
Tabi index one field is there which is of type sy-tabix which will store the line no that the user has
clicked.
Here our requirement is to when we click on any line the particular material description will be
displayed in the next page.
In order to do that we need to know which material no the user has clicked, the line that user clicked
on will be stored in sy-tabix so from this field value we came to know what material description we
need to give in o/p.
Change the field name and description for every field.
We have to refresh the internal table IT_FCAT because we are using same internal table for two lists
the data will get multiplied and we will receive duplicate data.
ALV REPORTS :
SLIS_T_FIELDCAT_ALV.
SLIS_FIELDCAT_ALV.
SLIS_LAYOUT_ALV.
Suppose in output , if our field is not completely visible meaning we need to drag our field in order
to see the full name of the field then in order to resolve that issue.
Wa_layo-colwidth_optimize = ‘X’ .
Wa_layo-zebra = ‘X’ .
And in reuse_alv_grid_display
In matnr field , if we don’t want zeroes infront of material number then use
Wa_fcat-NO_ZERO = ’X’ .
Wa_fcat-edit = ‘X’ .
If you want to remove multipe selection button meaning if you want to remove that arrow mrks.
Suppose you don’t want to see selection screen ,menaing when you execute you will directly get
report then you need to write no display.
IDOC means intermediate document which is responsible for taking data to sap and from sap to
other system.
Modularization techniques :
Macros(out dated)
Includes
Sub routines
Function modules
INCLUDES :
The syntax for creating include is : include <include name> and you can double click on it.
If you want to use some piece of code in some 60 programs , you can create include and call it.
If there is any changes needs to be done you can not open 60 programs and do changes instead we
can do that changes in include.
SMART FORMS
Smart forms are updated version of scripts.
Multiple page orientation means portrait, landscape and portrait is not possible in scripts.
Wither we should use portrait or landscape
In order to create smart forms
And then suppose if we want to print just a text as output then click on main window and create and
then text.
Type the text in the editor that you want to print in the output.
Select any address from adrc table and copy it and mention it in the address window and click on
execute.
If you want to know the FM – go to smart form tcode -> environment -> FM.
NAME1
I will take these two values in the smart form and whatever values I will pass into these fields that
values should get displayed in the output.
O/P will be
NEXT REQ is how to upload graphic/logo into smart forms:
when you click on form painter then the below screen will appear