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

Multiple values using Parameter ID

Former Member
0 Likes
2,443

Hi,

I have a situation. I want to pass values to selection screen of a standard report - to a field that is generated at runtime.

This screen field has a paramter id - but I have to pass more than a single value to that field - so that the report can show me the results according to the selection required.

I hope you got my point.

The Paramter id is "CRM_OBJECT_ID". This field appears in the "Other attributes" of report SAPLSPROJECT_SOLAR_DOC_EVAL_IM.

Regards,

Navdeep

8 REPLIES 8
Read only

Former Member
0 Likes
1,436

Hi,

u can use select-options instead of parameter,here u can give value range 4 that field.

i think this is wat u r asking.

Regards,

Sneha.

Read only

0 Likes
1,436

May be I did not explain well.

I am calling a standard - report that has a select-options with parameter_ID .

I want to pass multiple values to that - standard report, from my program.

I can use ranges - OK, but how do I pass it on to the standard program - that is the question.

Regards,

Andy

Read only

0 Likes
1,436

Hi,

You can store internal table in the parameter ID and can pass at the run time, rest SAP will take care.

If parameter ID is passed, it means whole table is passes into selection-screen

-Sujatha

Read only

0 Likes
1,436

Hi,

check this SAP notes 1212323

check this link.

[https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=multiplevaluesusingParameterID+++&adv=false&sortby=cm_rnd_rankvalue]

hope it'll help u ans u'll get some idea.

Regards,

Sneha.

Edited by: sneha kumari on Jun 22, 2009 2:06 PM

Read only

0 Likes
1,436

Sorry but I cannot pass a table to the paramter id.

set PARAMETER ID 'CRM_OBJECT_ID' FIELD it_obj.

Compilation error.

"IT_OBJ" must be a character-type field (data type C, N, D or T).control structure introduced by "INTERFACE". by "INTERFACE". by "INTERFACE".

I solved the problem though. I am telling you in another reply how to do it.

Regards,

Navdeep

Read only

Former Member
0 Likes
1,436

Hi,

Are you using submit statement to call this standard program...

like this...

ZREPORT.

....

.....

SUBMIT SAPLSPROJECT_SOLAR_DOC_EVAL_IM....

.....

.....

use SUBMIT statement in your report and pass the value.

And read about SUBMIT statement once....

Read only

0 Likes
1,436

Submit program will not work - as the field is dynamic and not in the program untill we click on

"Other Attributes"

Regards,

Navdeep

Read only

Former Member
0 Likes
1,436

Hi,

I solved the problem. If you are in similar situation use -

CALL METHOD clgui_frontend_services=>clipboard_export

IMPORTING

data = it_obj_

to export the values to clipboard and then further use the BDC to put the values to the screen.

Regards,

Navdeep