‎2007 Sep 04 5:45 AM
Where can i check if the parameter id has been assigned or not in Debugging or anywhere.
Code:
Data f like vbak-vkorg.
get parameter id 'VKO' field f. "(VKO for sales organisation)
Although sales organisation has value,
f remains blank.
I tested f by using SET parameter id also then f is assigned the value.
Thanks
‎2007 Sep 04 5:51 AM
Hi..
Try this . then you can see the Value..
Data f like vbak-vkorg.
CALL TRANSACTION 'VA01' .
get parameter id 'VKO' field f. "(VKO for sales organisation)
write : f.
In debugging you can see the Values using menu path:
Utitlites -> Memory Debugging (On)
<b>reward if Helpful</b>
‎2007 Sep 04 5:55 AM
Hi ,
Thank u for ur reply.
Actually,i am using this code within an function module exit in VA01/VA02.
Thn how do i use Parameter id here.
‎2007 Sep 04 6:01 AM
Hi..
If you want to get the Sales orgranization value within the Tcode VA01 or VA02 there is no need to use the Get parameter ID .. instead you can directly from the Parameters of the Function module Exit that you are using. Check the Parameters of the FM exit and Find this field.
<b>reward if Helpful.</b>
‎2007 Sep 04 6:06 AM
Hi,
can u expalin for wat functionality u need parameter id in the exit?
‎2007 Sep 04 11:13 AM
‎2007 Sep 04 11:14 AM
I need this for i Need this for EXIT_SAPLATPC_001 and in its parameter definition this field isn't there.
‎2007 Sep 04 11:27 AM
Hi..
As i can see the FM exit EXIT_SAPLATPC_001 does not have any parameter for the field VKORG.
But if u give the code: COPY THIS CODE AND TRY
<b>DATA : V_VKORG TYPE VBAK-VKORG.
GET PARAMETER ID 'VKO' FIELD V_VKORG.
MESSAGE V_VKORG TYPE 'I'.
</b>
Reward if Helpful..
‎2007 Sep 04 11:40 AM
ok...then try this
first find the program and variable name where vkorg is stored in std pgm.like if it is a function pool ,progarm name will be SAPLxxxx.let say variable in which it is stored is i_vkorg in std pgm
data: w_vkorg(4). "length of vkorg
field-symbols: <f1> type any.
w_vkorg = '(SAPLxxxx)i_vkorg'.
assign (w_vkorg) to <f1>.
if <f1> is assigned.
vkorg = <f1>. "u get the value here.
endif.
<b>reward if useful</b>
‎2007 Sep 04 5:54 AM
Hi,
If you are calling a transaction and passing a value from your program to that transaction,you need parameter id.You can find it in the F1 help->Tech. Info of the field in any transaction.If you passed all the mandatory values in a screen,it is even possible to skip the screen.
Example:
set parameter id 'MAT' field lwa-matnr.
call transaction 'MM02' and skip first screen.
Regards
‎2007 Sep 04 5:54 AM
Hi
go in se11 tcode
go for data element
give the data element name
and display and further characteristics
Parameter ID you can find it
thanks & regards,
Venkatesh
‎2007 Sep 04 5:56 AM
hi,
u will get the value in f only if vkorg has been assigned a value prior to it.Check if it has been set using SET parameter id.
Then in debugging mode after execution of get statement check the value of f.