How to hold the value in List box.
Hi All,
On my screen painter Screen I am displaying the Sold to party and ship to party with thier address.
I am also displaying the Shipping condition based on ship to party. To display the shipping condition i am using list box. Once the user enter the sold to party automatically all the field is going to populate in their respective fields. I am facing the problem that, The list box getting populated with shipping condition but once you choose the shipping condition and hit the enter the list box getting refreshed. I am using this code in PAI event. And I can Only use this in PAI.
The Function i am using for list box is CALL FUNCTION 'VRM_SET_VALUES'.
Pls suggest me how to hold the value in List box.
Thanks,
Rakesh
Hi,
Now i am using in PBO.
the code below in in PBO.It is still not holding the value.
if list[] is initial.
perform SHP_COND.
endif.
form SHP_COND .
*DATA: SHOP(80).
clear : GT_VSBED, list.
refresh : GT_VSBED, list.
select vsbed
from knvv AS K
into table GT_VSBED
where Kvkorg = vbak-vkorg "Kkunnr = GV_STPH
and K~vtweg = vbak-vtweg
and K~spart = vbak-spart.
select VSBED vtext
from TVSBT
into table list
for all entries in GT_VSBED
where spras = sy-langu
and vsbed = GT_VSBED-VSBED.
*break-point.
NAME = 'SHP_CON'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = NAME
values = LIST[]
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " SHP_COND
Thanks,
Rakesh
Similar Messages
-
How to fill the values in List Box?
Hi Experts,
Can anyone explain me how to fill the values in the List Box such that the value should be from the table?
For Example : Fill the EmpID from table T1 into the ListBox?
Thanks in Advance,
Regards,
Raghuhi,
and u doing it through report means from se38 than here is code...
DATA : BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
END OF itab.
DATA : ok_code LIKE sy-ucomm.
CALL SCREEN 0200.
*& Module STATUS_0200 OUTPUT
text
MODULE status_0200 OUTPUT.
SET PF-STATUS 'Z200'.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE user_command_0200 INPUT.
CASE ok_code.
WHEN 'BACK' OR 'UP' OR 'CANC'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
*& Module mat_val INPUT
text
MODULE mat_val INPUT.
SELECT matnr FROM mara INTO CORRESPONDING FIELDS OF TABLE itab
WHERE matnr BETWEEN '000000000000000101' AND '000000000000000109'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
VALUE_ORG = 'S'
tables
value_tab = itab
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " mat_val INPUT
<b>And this is flow logic..</b>
PROCESS BEFORE OUTPUT.
MODULE status_0200.
PROCESS AFTER INPUT.
MODULE user_command_0200.
PROCESS ON VALUE-REQUEST.
FIELD itab-matnr MODULE mat_val. -
Problem in picking up the value from list box
Hi,
I have created a parameter list box on the selection screen using VRM_SET_VALUES fn module and populating the list box. Now my problem is when i select one value from the list box and executing, it shows null value.
AT SELECTION-SCREEN OUTPUT.
PERFORM f_f4help.
FORM f_f4help .
REFRESH: gt_tvaut,
gs_list.
CLEAR: gs_tvau,
gs_value.
SELECT spras
augru
bezei
FROM tvaut
INTO TABLE gt_tvaut
WHERE spras EQ sy-langu.
IF NOT gt_tvaut[] IS INITIAL.
LOOP AT gt_tvaut INTO gs_tvau.
gs_value-key = sy-tabix.
CONCATENATE gs_tvau-augru
gs_tvau-bezei
INTO gs_value-text
SEPARATED BY space.
APPEND gs_value TO gs_list.
ENDLOOP.
ENDIF.
param = 'P_AUGRU'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = param
values = gs_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
How to get the value which is selected in the selection screen becoz i'm using p_augru in further selection queries..
i have tried reading gs_list table but its not working.Move the portion of function call 'VRM_SET_VALUES' to event at selection-screen on value-request for P_AUGRU. Rest is OK...
I mean, Your code should be like this.
AT SELECTION-SCREEN OUTPUT.
PERFORM f_f4help_values.
FORM f_f4help_values.
REFRESH: gt_tvaut,
gs_list.
CLEAR: gs_tvau,
gs_value.
SELECT spras
augru
bezei
FROM tvaut
INTO TABLE gt_tvaut
WHERE spras EQ sy-langu.
IF NOT gt_tvaut[] IS INITIAL.
LOOP AT gt_tvaut INTO gs_tvau.
gs_value-key = sy-tabix.
CONCATENATE gs_tvau-augru
gs_tvau-bezei
INTO gs_value-text
SEPARATED BY space.
APPEND gs_value TO gs_list.
ENDLOOP.
ENDIF.
ENDFORM.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_AUGRU.
PERFORM f_f4help.
FORM f_f4help
param = 'P_AUGRU'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = param
values = gs_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM.
Rgds,
Birendra -
How to hold the values as it's not holding the values when it cross 255
DATA : fval1 TYPE edidd-sdata.
DATA : fval2 TYPE edidd-sdata.
DATA : fval3 TYPE edidd-sdata.
DATA : fval4 TYPE edidd-sdata.
DATA : fval5 TYPE edidd-sdata.
DATA : len(3) TYPE n.
values1 = wa_final-low.
values2 = wa_final-high.
IF wa_final-high IS NOT INITIAL.
CONCATENATE values1 values2 INTO fval1 SEPARATED BY '-'.
ELSE.
fval2 = values1.
ENDIF.
IF fval3 IS NOT INITIAL.
IF fval1 IS NOT INITIAL.
fval = fval1.
CONCATENATE fval3 fval INTO fval3 SEPARATED BY '/'.
ENDIF.
IF fval2 IS NOT INITIAL.
fval = fval2.
CONCATENATE fval3 fval INTO fval3 SEPARATED BY '/'.
ENDIF.
ELSE.
IF fval1 IS NOT INITIAL.
fval3 = fval1.
ENDIF.
IF fval2 IS NOT INITIAL.
fval3 = fval2.
ENDIF.
ENDIF.
DATA : len(3) TYPE n.
len = STRLEN( fval3 ).
IF len > 250.
fval4 = fval3+0(250).
fval3 = fval3+250(5).
* CONCATENATE fval4 fval3 INTO fval5.
ENDIF.
IF fval4 IS INITIAL.
wa_final1-varbl31 = fval3.
ELSE.
CONCATENATE fval4 fval3 INTO fval5.
wa_final1-varbl31 = fval5.
ENDIF.
MODIFY it_final1 FROM wa_final1
TRANSPORTING varbl31 WHERE agr_name = wa_final-agr_name.
at this point also it's not holding the values when it exseds 255
kindly please helpH friends ,
i am not the expert at the same time i know some thing in abap
fval4 = fval3+0(250).
fval3 = fval3+250(5).
in the above case fval3 have 255 char at that time iam transporting 250 char to fval4 with this statment
fval4 = fval3+0(250).
and iam keeping the remaining 5 char in fval3 with this statment
fval3 = fval3+250(5)
so that i can push some more values in fval3 and at i am
CONCATENATE fval4 fval3 INTO fval5.
so that fval5 may get all values this is the way i try but fval5 is not holding all the values
i asked solution for that
fval 3 = fval3+250(250)
dosen't have any meaning i know that friend
my question is how to hold the remaining value -
How to specify the value help list of a variable?
Hi Gurus
My requirement is like this. The query has at least two fields( manager and employee). A group of employees belong to a certain manager. When an employee is going to run the query, he will fill an employee number into a variable so that the information of the employee will be displayed in the query. My question is that is it possible to display all the employees of the same manager when the user trys the value help of the variable? Right now, the list of all employees will be displayed. I just want the ID list of employees of the same manager will be displayed.
for example: here is the data
manager employee
A 101
A 102
A 103
B 104
C 105
C 106
C 107
IF user 105 runs the query and he clicks on the value help button of the varibale, only 105, 106, 107 will be displayed for him to choose instead of list of all employees.
if is possible? how to? thanksHi Stephen Xue,
I think it can be done through Compounding option in the maintenance of the characteristics. Make the Manager as the compounding attribute of Employee. I am not sure about it, but have a try on it.
Hope it helps.
Veerendra. -
How to hold the value of a prompted password in a variable while file is open?
I have this little VBA macro that uses ADODB to execute a SQL Server Agent job remotely. It is in an Excel file, and there will be several other similar macros in the same Excel file. They will be used at least 10 times, each time the user opens
the Excel file. If I leave it like this, the user will be prompted for the password every single time they run one of the macros. How can I change it to instead prompt the user for the password value initially when they open the file, store it
in a variable, and then utilize that variable value for the database connection every time they run one of the macros (to avoid repeated prompting)? Also, are there any security concerns with my proposed approach?
Sub Test_SSIS()
Dim conn As Object
Set conn = CreateObject("ADODB.Connection")
conn.Provider = "sqloledb"
conn.Properties("Prompt") = adPromptComplete
conn.Open = "Data Source=MYSERVER;USER ID=JOHNDOE;"
conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
End SubOne possibility is to use the workbook_open event to prompt for and store the password temporarily in the registry. Add the following code to the thisworkbook module of the workbook
Option Explicit
Private Sub Workbook_Open()
Dim strPassword As String
strPassword = GetSetting("myApp", "Config", "Password", "")
If strPassword = "" Then
strPassword = InputBox("Enter password")
SaveSetting "myApp", "Config", "Password", strPassword
End If
lbl_Exit:
Exit Sub
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
RegKeyDelete "HKEY_CURRENT_USER\Software\VB and VBA Program Settings\myApp\Config\"
If RegKeyDelete("HKEY_CURRENT_USER\Software\VB and VBA Program Settings\myApp\") = True Then
MsgBox "Password cleared"
Else
MsgBox "Password not stored"
End If
lbl_Exit:
Exit Sub
End Sub
Function RegKeyDelete(i_RegKey As String) As Boolean
Dim myWS As Object
On Error GoTo ErrorHandler
Set myWS = CreateObject("WScript.Shell")
myWS.RegDelete i_RegKey
RegKeyDelete = True
Exit Function
lbl_Exit:
Exit Function
ErrorHandler:
RegKeyDelete = False
GoTo lbl_Exit
End Function
Then modify your macro code as follows:
Sub Test_SSIS()
Dim strPassword As String
Dim conn As Object
strPassword = GetSetting("myApp", "Config", "Password", "")
If strPassword = "" Then
strPassword = InputBox("Enter password")
SaveSetting "myApp", "Config", "Password", strPassword
End If
Set conn = CreateObject("ADODB.Connection")
conn.Provider = "sqloledb"
conn.Open "DATA SOURCE=MYSERVER;USER ID=JOHNDOE;Password=" & strPassword & ";"
conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
End Sub
The workbook must obviously be saved as macro enabled
This will then prompt once when the workbook is opened. When the macro is run it will read the password from the registry thus not requiring a prompt, unless for some reason the password is missing or nothing has been entered as a value in the first box.
When the workbook is closed, the workbook before close event deletes the registry entries completely.
The only snag to this is if the workbook is crashed, the registry entry is not removed and there will be no prompt next time, until the workbook is closed correc tly. This might not be an issue, if the users don't know about it, so hide your code from them.
Graham Mayor - Word MVP
www.gmayor.com -
We have a GUI swing screen in which we have navigation buttons.
when the user clicks the previous ,next, last,first buttons we have to show the records accordingly.
The min. size of the database is around 1 million.and each row has 60 columns.
Our approach is screen--->servlet-->ejb beans --->database.
since the database is huge how to hold the values, and where, without affecting the performance.
If we get the resultset it holds all the data.since the data size is huge,we are looking for a solution.The user may browse through the data ,edit the data and delete the data.
we have to perform accordingly. Also, if, for example, user1 is seeing record no.1 & user 2 has modified record no.3 in the meanwhile, when user1 goes to record no.3, he should see the
modified record. In short, the user should always see the latest values.
please give us the best approach to solve this problem.
Also this is in a multi user environment.It seems like you need to look at threads to update current values in the display and narrow the result set that you retrieve to match the criteria needed for display. You might consider making the method to change values a syncronized one.
-
How to capture the multiple value in list box
Hi forums,
How to select the multiple values in list box and how to catch that values in OnInputProcessing.
Regards,
Ravi.Hi,
A possible method is:
Get all fields of the form
CALL METHOD request->get_form_fields
CHANGING
fields = table_fields.
loop over the fields
LOOP AT table_fields INTO wa_fields.
test the name of the field
CASE wa_fields-name.
WHEN 'test'.
retrieve the value of the field
test = wa_fields-value.
endcase
endloop.
Eddy -
How to increase the width of the drop down list box in SSRS multi value parameter
Hi,
I am using SSRS 2012. I have a parameter, which accepts multi value.
The width of the drop down list box is very small, and the user need to scroll to the right to view the complete view of the content in the list box. But, if I don't use multi value then the length is good. Kindly suggest how to I increase the width
of the list box when it set to multi value parameter.
Thanks in advance,
Mahalengam ArumugamHi Mahalengam,
After testing the issue in my local environment, I can reproduce it. When the values for a single parameter are too long, the drop-down list of the parameter will automatically enlarge to an appropriate size. While the values for a multiple parameter are
too long, we need to scroll to the right to view the complete view of the content in the list box in SSRS 2008. But in SSRS 2008R2 and SSRS 2012, we can directly drag the black control at the bottom of the list box to control the size.
The following screenshot is for your reference:
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Hi Katherine,
Thanks for your reply. I understood we need to drag the list box to a maximum size to view the contents.
But, this seems an additional task, i know this is a limitation in the current version of SSRS and hope it will be resolved in the next versions.
Thanks for your efforts,
Mahalengam Arumugam -
How to populate values in List Box in Adobe form
Hi,
How to populate values in List box in adobe forms?
Thanks
RBif you want to display a fixed values in the dropdown you can use list box ui and can specify values there
or if u want to display values from the context node of the webdynpro
1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
with regards
shanto aloor -
How to get the value entered in input enabled field of a list output?
Hi all,
I am developing a program to display list with two input enabled fields . After users enetered the values into these fields I need to do some calculations based on these values and modify the value of another field in the list.
But i couldn't have an idea how to read the values after users enter into these fields.
Please help me on solving this problem? If possible please provide the sample code.
Thanks,
Aravind.You can enable disable screen fields in at selection screen output event.
And by using loop at screen.
And for changing the values you can do in initialization event.
I Hope you are doing these in Reports. -
How to compare the values stored in the list
Hi,
I am having the requirement that i want to compare the values stored in the list.How to store the values in the list and compare the list values stored inside it.
Regards,
Ahamadhttp://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#sort(java.util.List)
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#sort(java.util.List,%20java.util.Comparator)
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Comparator.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html -
How to insert data to the specified row column of the multi column list box
Hi All
How do i insert data into the specified column of the multi cplumn list box?
I have a table that containsall station nos and name.Then another table contains the data the various stations having at for 24 hrs.That is 12 am to 11 pm.
And i want to display each stations details as follows using a multi column list box/table
My stationinfo table
stnno stnname......................
s1 stn1
s2 stn2
s3 stn3
The other table
stnno sysdatetime data
s1 12am 1
s2 12am 4
s1 1 am 2
So the station s1,s2.... will have data for 24 hrs.
And i want to display it as follows using a multicolumn listbox
stnname 12am 1 am ......................................11pm
s1 ...................
s2 ........................
What i have in my mind is to get all station nos
and in a for loop get the station's data from 12 am to 11 pm
or
select every statios data for each hor.But in this case i have to query the database 24 times.So i dont think its a good way.
Or any other better query available?
Can anybody suggest me a good idea?
One more thing...how to insert data into the specified field row or column of a multi column list box?
Thanks in advancehi
i want to know,,can u say ur need clearly...and i attached two image u see that one
Indrajit
| [email protected] | [email protected] .
Attachments:
station.JPG 35 KB
station2.JPG 79 KB -
How to trace the value passed by select list
Hi,
Is it possible to know what value is passed by the select list.
eg:
:p1_testid -- is the select list name .
if select list contains 3 values ... value1, value2, and value3. and I select value2 from the select list.
I want to confirm it that the value I selected is the same value passed to the query.
- select * from Test where Testid=:p1_testid;
How to trace the value of :p1_testid before query execution.
Thanks.check your session state to see what value the select list has..
From developer tools at bottom of running page, select session, then look for the value associated with your select list..
Thank you,
Tony Miller
UTMB/EHN -
How to get the value from databank
Hi,
How to get the value from databank? and how to set the same value to visual script object?
thanks,
raHi,
You can use GetDatabankValue(HeaderName, Value) to get the value from databank and SetDataBankValue(HeaderName, Value) to set the value to databank.
You can refer to the API Reference to see list of associated functions and techniques we can use with related to Data Bank.
This is the for OFT but if you are using Open Script then you have direct access for getting the databank value but when it comes to setting a value you have to use File operation and write you own methods to do the set operation.
Thanks
Edited by: Openscript User 100 on Nov 13, 2009 7:01 AM
Maybe you are looking for
-
Updated to IOS6, maps doesn't work
So I updates my software to ios6, was really looking forward to it as iv waited months like so may others and its terrible. My maps doesn't work at all, the location is completely wrong and when I switch to hybrid or satellite view it just goes into
-
Transport from bi dev to bi prod - Ended with return code: 8
In transport connection we have collected infocube an its all related objects and created a transport request when moving from dev to prod it is showing this error log file KBDK900082 HBT-BI HBT-BI/CUBE ZIC_C03/ KBDK900083
-
Error en Import abap phase Linux Red hat 5.4- oracle
Hello I had been got this messaje in the installation 's screen sapinst.log WARNING[E] 2010-03-12 15:28:13.393 CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log
-
Problem in launching Web cleint
hi there i am new in CRM and i am facing following problem when i go for CRM IC web cleint please help me in details The runtime repository could not be interpreted An exception has occurredException Class CX_BSP_WD_HTTP_COMM_ERROR Text: Error oc
-
PC-CAM 935 Slim - blurry photos
Hello: After finally digging up the old drivers for the PC-CAM 935 slim, I read through the manual, and started taking photos. The photos all appear to come out blurry after being transferred to my PC (Athlon 64 3700+, 1GB RAM, Win XP Pro SP2). I've