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

screen

Former Member
0 Likes
713

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
685

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.......

4 REPLIES 4
Read only

Former Member
0 Likes
686

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.......

Read only

0 Likes
685

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

Read only

0 Likes
685

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.

Read only

0 Likes
685

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