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

set parameter id.........

Former Member
0 Likes
2,242

hi,

i need to call a tcode 'pa30' and populate certain fields (personnel no,infotype and STY) with the values and then call the next screen.(call transaction....leave first screen)

using the parameter id's of Personnel no,STy i have displayed the initial value,when the Tcode is called....

Since there is no parameter id for the field infotype iam unable to populate my initial value in that field,how to solve this problem.

thanks,

sivaraman

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,568

Hello Siva,

You have parameter ids for these parameters.

In your program, add these three commands.

SET PARAMETER ID 'PER' FIELD RP50G-PERNR.

SET PARAMETER ID 'SUB' FIELD RP50G-SUBTY.

SET PARAMETER ID 'ITP' FIELD RP50G-CHOIC.

CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.

Hope that solved your problem.

Regards,

Susmitha

9 REPLIES 9
Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,568

hi,

if there is no parameter id, solution is to record the tcode using SHDB and pass it to the call transaction.

see this exmaple may give an idea of how to do it

DATA: IBDCTAB TYPE TABLE OF BDCDATA WITH HEADER LINE.

IBDCTAB-PROGRAM = 'SAPLSEUK'.

IBDCTAB-DYNPRO = '390'.

IBDCTAB-DYNBEGIN = 'X'.

IBDCTAB-FNAM = 'BDC_OKCODE'.

IBDCTAB-FVAL = '=CHNG'.

APPEND IBDCTAB.

IBDCTAB-PROGRAM = 'SAPLSETX'.

IBDCTAB-DYNPRO = '0120'.

IBDCTAB-DYNBEGIN = 'X'.

IBDCTAB-FNAM = 'BDC_OKCODE'.

IBDCTAB-FVAL = '=NEXT'.

APPEND IBDCTAB.

CALL TRANSACTION 'SE93' USING IBDCTAB

Message was edited by: Hymavathi Oruganti

Read only

Former Member
0 Likes
1,568

HI sivaraman,

1. use CALL TRANSACTION 'PA30' using bdcdata.

2. in the internal table,

bdcdata,

put values for simulation of the first screen,

and the values in it.

regards,

amit m.

Read only

Former Member
0 Likes
1,568

Hai Siva Raman

use the following Statements

SET PARAMETER ID 'PER' FIELD fieldname.

CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.

Thanks & regards

Sreenivasulu P

Read only

Former Member
0 Likes
1,569

Hello Siva,

You have parameter ids for these parameters.

In your program, add these three commands.

SET PARAMETER ID 'PER' FIELD RP50G-PERNR.

SET PARAMETER ID 'SUB' FIELD RP50G-SUBTY.

SET PARAMETER ID 'ITP' FIELD RP50G-CHOIC.

CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.

Hope that solved your problem.

Regards,

Susmitha

Read only

0 Likes
1,568

THANK U FRIENDS.

HELLO SUSMITHA,

SET PARAMETER ID 'ITP' FIELD RP50G-CHOIC.

THIS IS WORKING FINE.

BUT

CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.

ITS NOT WORKING IN MY CASE....ONCE ALL THE VALUES ARE POPULATED,DISPLAY SCREEN SHOULD BE DISPLAYED.

SCREEN : MP016700

SCREEN NO : 2000.

Read only

0 Likes
1,568

Hi Susmitha,

This doesn't skip the first screen, I think it has ambiguity in choosing among display/change/create/delete modes.
So is there any solution apart from doing a BDC?

Read only

Former Member
0 Likes
1,568

Hi,

The other form of transmitting data would be Export/Import statement.

You can use this statement, for filling the values on the screen dynamically, this also doesnt need any screen attribute settings.

If found useful, award points please.

Thanks,

Bharadwaj

Read only

Former Member
0 Likes
1,568

Hi,

we've got the same problem..

can you please tell me how did you implement it?

i've been following your thread and i can see that this one is answered..

so, i hope you can share some of your knowledge.

thanks a lot in advance.

hope to hear from you soon.

Read only

0 Likes
1,568

even i m also facing thesampe problem. there is no parameterid for a field, then how to set some value to the screen field