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

please help out

Former Member
0 Likes
587

Hi all,

my selection screen consists of following filelds:

billing document no:(vbrk-vbeln) -->obligatory

vat regestration no: (vbrk-stceg)

billing date(vbrk-fkdat)

company code (t001-bukrs) --> obligatory.

the requirement is,by giving the billing document no. and company code as input,i should get the data in rest of the two fields dynamically.

Waiting for reply.

regards

akmal

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
560

hi,

you can fill these fields in.

At selection-screen

Event.

use simple select queries and fill the above fields inside this event.

Regards

Anver

4 REPLIES 4
Read only

anversha_s
Active Contributor
0 Likes
561

hi,

you can fill these fields in.

At selection-screen

Event.

use simple select queries and fill the above fields inside this event.

Regards

Anver

Read only

Former Member
0 Likes
560

write code like this

at selection-screen on p_bukrs. <or vbeln>

select single stceg fkdat into p_stceg p_fkdat where vbeln = p_vbeln and bukrs = p_bulrs.

just put that code and after giving entry in those fields press enter and check whether the data is filled to rest of two fields or not.

here all the things are parameters.

regards

shiba dutta

Read only

Former Member
0 Likes
560

Hi,

In the

At Selection-screen on p_bukrs . [ assuming co.code is a parameter field ]

clear: p_stceg, p_fkdat.

select single stceg fkdat into (p_stceg,p_fkdat)

from vbrk where vbeln = p_vbeln

and bukrs = p_bukrs. [ chk if vbrk has co.cde]

Regards

Subramanian

Read only

Former Member
0 Likes
560

Hello Akmal,

Check the following code

PARAMETERS: p_bukrs LIKE t001-bukrs OBLIGATORY,

p_vbeln TYPE vbrk-vbeln OBLIGATORY,

p_stceg LIKE vbrk-stceg MODIF ID dis,

p_fkdat LIKE vbrk-fkdat MODIF ID dis.

TABLES: VBRK.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'DIS'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

AT SELECTION-SCREEN ON P_vbeln.

SELECT SINGLE stceg INTO p_stceg FROM vbrk WHERE vbeln = p_vbeln

AND bukrs = p_bukrs.

SELECT SINGLE FKDAT INTO p_FKDAT FROM vbrk WHERE vbeln = p_vbeln

AND bukrs = p_bukrs.

This will work out.

Reward point if helped.

Best Regards

Renjan