cancel
Showing results for 
Search instead for 
Did you mean: 

how to declare variables for getting values from r_param structure..

Former Member
0 Kudos

Hi experts,

I have generated an ALV which displays material number with hyperlink. Using OnClick event, i'm getting the values in

R_PARAM. But i dont know hw to get that values from it.. Even i tried with field symbols too..


field-symbols: <l_value> type any.

assign r_param->value->* to <l_value>.

Now hw can i read the value from this <l_value>..

Please help me out..

Thanks in advance..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Data lv_att type string.
assign r_param->value->* to <l_value>.
lv_att = <l_value>.

Now lv_att will have your value.

Former Member
0 Kudos

hi..



data: value type string.
field-symbols: <l_value> type any.

assign r_param->value->* to <l_value>.
 value = <l_value>.
set PARAMETER ID 'MAT' FIELD value.
call TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

While activating, im getting an error like 'Value' is not a charater type likewise..

Edited by: RameshKumar on Dec 8, 2009 10:48 AM

arjun_thakur
Active Contributor
0 Kudos

Hi,

data: value type mara-matnr
field-symbols: <l_value> type any.
 
assign r_param->value->* to <l_value>.
 value = <l_value>.
set PARAMETER ID 'MAT' FIELD value.
call TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

Try using this.

Former Member
0 Kudos

hi all..


data: value type string.
field-symbols: <l_value> type any.

assign r_param->value->* to <l_value>.
 value = <l_value>.
set PARAMETER ID 'MAT' FIELD value.
call TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

While activating, im getting an error lke "value is not a character type"

Former Member
0 Kudos

What exactly this <l_value> holds...what kind of data is expected in this.

if the value is of type string then why did not you declare the <l_value> as string type..

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> hi..

>

>


> 
> data: value type string.
> field-symbols: <l_value> type any.
> 
> assign r_param->value->* to <l_value>.
>  value = <l_value>.
> set PARAMETER ID 'MAT' FIELD value.
> call TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
> 

> While activating, im getting an error like 'Value' is not a charater type likewise..

>

> Edited by: RameshKumar on Dec 8, 2009 10:48 AM

I think that is the least of your problems. You can use parameter IDs or issue a call transaction from Web Dynpro ABAP anyway. Even if you get around this syntax error (which you can by declaring value of type char18 or matnr) it won't matter as what you utlimately want to acomplish here won't work anyway.

To jump to an SAP Classic Dynpro tranaction consider using OBN or one of the other portal navigation APIs. If you aren't running in the portal, then you might want to build a URL link to the SAPGUI for HTML via Integrated ITS and fire it.

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi,

Just use <l_value> as a simple variable after it has been assigned.

Refer the code below:


field-symbols: <l_value> type any.
assign r_param->value->* to <l_value>. " Now value has been assigned to <l_value>. 
SELECT carrid connid fldate price currency planetype seatsmax seatsocc
  from sflight into CORRESPONDING FIELDS OF TABLE itab1
   where connid = <l_value>.

I hope it helps.

Regards

Arjun

Edited by: Arjun Thakur on Dec 8, 2009 2:54 PM

Former Member
0 Kudos

Hi Arjun,

Thanks for ur reply..

But i dont want to write that query n all.. See wen i clicked that material number (say for eg 100-100) , im getting that value

in r_param->value and even in <l_value>..

By fething that number , i need to call transaction MM03.. so i need to get that value in one variable

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

FIELD-SYMBOLS: <fs_appr_status> TYPE data.

ASSIGN r_param->value->* TO <fs_appr_status>.

pass the value of <fs_appr_status> to a varaible.

lt_value = <fs_appr_status>.

Priya

arjun_thakur
Active Contributor
0 Kudos

Hi Ramesh,

Create a variable of type mara-matnr. Get the value in <l_value>. Then move the value of <l_value> to that variable.

move <l_value> to var. " var is the name of variable.

Regards