‎2008 Apr 24 5:40 AM
Hi Frnds,
I am new to ABAP
I want to develop a report by calling different fields from different location , this i will do my using abap programming , but how to develop the screen .
Like for example if we go to transaction like xyz a screen gets opend and where we can give details like customer name, material number , date .... etc how to do this .
I am new to abap if any material or links available pls refer it to me .
regards,
rakesh
‎2008 Apr 24 5:45 AM
HI ,
you dont need to devlop any screen.
SAP dynamically generates a selection scree.
check the below example code.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS :
For Company Code
pa_mpc LIKE t001k-bukrs OBLIGATORY,
For Reporting Date
pa_date TYPE dats OBLIGATORY DEFAULT sy-datum,
For Reporting Time
pa_time TYPE tims DEFAULT sy-uzeit.
SELECT-OPTIONS:
For Dealer
so_dl FOR vlcvehicle-kunnr,
For Commission Number
so_cn FOR vlcvehicle-zz_commnos,
*For Billing Document Number
so_bill FOR vlcinvoice-vbeln,
For Credit check status
so_crst FOR /dceur/z_crstext-cr_check.
SELECTION-SCREEN END OF BLOCK b1.
Regards,
Anand Lokineni,
Reward if it is useful.......
‎2008 Apr 24 5:45 AM
HI ,
you dont need to devlop any screen.
SAP dynamically generates a selection scree.
check the below example code.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS :
For Company Code
pa_mpc LIKE t001k-bukrs OBLIGATORY,
For Reporting Date
pa_date TYPE dats OBLIGATORY DEFAULT sy-datum,
For Reporting Time
pa_time TYPE tims DEFAULT sy-uzeit.
SELECT-OPTIONS:
For Dealer
so_dl FOR vlcvehicle-kunnr,
For Commission Number
so_cn FOR vlcvehicle-zz_commnos,
*For Billing Document Number
so_bill FOR vlcinvoice-vbeln,
For Credit check status
so_crst FOR /dceur/z_crstext-cr_check.
SELECTION-SCREEN END OF BLOCK b1.
Regards,
Anand Lokineni,
Reward if it is useful.......
‎2008 Apr 24 5:50 AM
Hi Anand,
Thanks for ur reply, can u send me a small sample programme of calling fields from other location and preparing a report just to learn , and also if possible any links or materail where i can get sample coding or learn more about abap.
rakesh
‎2008 Apr 24 6:34 AM
Hi Rakesh,
The best URL for learning SAP concepts is help.sap.com.
use that. There u can search for the Selection screen concepts.
U'll get the entiree information for that.
U can also use the following URL:
abapprogramming.blogspot.com.
Reward points if helpful.
Pavan.
‎2008 Apr 24 8:49 AM
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_infile LIKE dxfields-longpath LOWER CASE.
parameters : p_r1 RADIOBUTTON GROUP group default 'X',
p_r2 RADIOBUTTON GROUP group .
SELECTION-SCREEN : END OF BLOCK b1.
to fetch data seelct statement can be used
for ex
SELECT objid begda endda FROM hrp1271 INTO TABLE it_begda_1271 WHERE objid = it_survey-object_id.
it_begda_1271 is an internal table in which data be stored.
please reward points