Creating select option to get wadat from likp to use in the query
Hi People,
Urgent Help. I have to make a select-option in my selection screen for date to use the field wadat from likp. Now the after the following code what should I be doing:
Selection-Screen BEGIN OF BLOCK b with frame Title t1.
PARAMETERS:
SELECT-OPTIONS: p_date for likp-wadat.
SELECTION-SCREEN END OF BLOCK b.
INITIALIZATION.
AT SELECTION-SCREEN.
START-OF-SELECTION.
<b>SELECT avbeln alfdat awadat akunnr bwerks bspart INTO
CORRESPONDING FIELDS OF TABLE typ_tab FROM likp as a INNER JOIN lips as b on avbeln = bvbeln where wadat IN p_dat.</b>
On the selection screen there will be two boxes for the from -to date...How does it work? If I have to make it only for one date or for range of dates. Please help asap. I have to use this value in a report to pull out delivery document details from likp and lips through the query mentioned above.
Thanks in advance.
AM
Hey Nishanth,
Thanks for the reply. I made the changes as suggested but when I am entering a date which does not exist in the table, the screen does nothing. Can you suggest something for that.
Here is my code:
tables: likp.
SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE date.
SELECT-OPTIONS p_date FOR likp-wadat NO-EXTENSION.
PARAMETERS p_glAccNo(80) TYPE C.
SELECTION-SCREEN END OF BLOCK b_0.
DATA: BEGIN OF typ_likp occurs 0,
vbeln LIKE likp-vbeln, " Bill Of Lading Number
lfdat LIKE likp-lfdat,
wadat LIKE likp-wadat,
END OF typ_likp.
AT SELECTION-SCREEN ON p_date.
if p_date[] is NOT INITIAL.
SELECT vbeln wadat INTO TABLE typ_likp FROM LIKP WHERE wadat IN p_date.
IF sy-subrc <> 0.
WRITE: / 'No Values for this date.'.
Exit.
ENDIF.
ELSE.
WRITE: 'NO ENTRIES HAVE BEEN MADE'.
ENDIF.
START-OF-SELECTION.
SELECT vbeln lfdat wadat INTO TABLE typ_likp fROM LIKP where
wadat in p_date.
LOOP AT typ_likp.
Write: / typ_likp-vbeln, typ_likp-lfdat, typ_likp-wadat,
/ 'I am here.'.
ENDLOOP.
Please reply soon. I need to finish this at the earliest.
Thanks for your help, regards,
AM
Similar Messages
-
Rich text box used in Infopath Form not displaying option to get images from Computer
Hello,
We have used "Rich text box" in Infopath Form which is not displaying option to get images from Computer.
Options available are : From Address, From SharePoint
But if we Rich text box in list, then it works fine with "From Computer" option.
can you please help me out to get this option.
Thanks in advance.
REgards,
JayashriHi,
From your description, there is no “From Computer” option to get images with rich text box in InfoPath form.
Per my knowledge, by design there are “From Address” and “From SharePoint” options without “From Computer” option in rich text box in InfoPath form. As a workaround, you can develop a custom InfoPath Rich Text box to do it.
About developing a custom InfoPath control, I suggest you create a new thread on the forum “Visual Studio Tools for Office”, more experts will assist you with InfoPath development.
Visual Studio Tools for Office:
https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=vsto&filter=alltypes&sort=lastpostdesc
Thanks,
Dean Wang -
How to create select-options in module pool program
Hi
i am structed at this point could you please tell me
how to create select-options in module pool programSteps to get SELECT-OPTIONS in module pool programs.
<li>. Start one dialog program with SAPZ_TEST.
<li>. Place the below code in the TOP include of the dialog program.
PROGRAM SAPMZ_TEST.
TABLES mara.
SELECTION-SCREEN BEGIN OF SCREEN 2100 AS SUBSCREEN.
SELECT-OPTIONS: matnr FOR mara-matnr.
SELECTION-SCREEN END OF SCREEN 2100.
<li>. Create one screen 2000 .
<li>. Go to Layout of the screen and Define subscreen area on the screen and Name it as g_subscreen.
<li>. Place the below code in the Flow logic of the screen.
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN g_subscreen INCLUDING 'SAPMZ_TEST' '2100'.
PROCESS AFTER INPUT.
CALL SUBSCREEN g_subscreen.
<li>. Activate all.
<li>. Create Transaction code for the dialog program SAPZ_TEST.
<li>. Execute the transaction code. You will see the select-option like we see on Selection-screen.
I hope that it gets u clear idea.
Thanks
Venkat.O -
How to create select-options in my own screen?
Hi
I create my screen and i wish to place select-options on screen. how to do that?There is no SAP standard way of creating select options on screen.However you can create your own select options by providing two fields on screen in which maximum and minimum values can be entered.
screen fields :
input1 : <minimum value>
input2 : <maximum value>
data :
range for <some field>
then you can fill a range with these values.For eg.
range-low = <low value input field>.
range-sign = 'I'.
range-option = 'BT'.
range-high = <high value input field>.
append range.
*Now write your select statement.
select * from <some table> where <field> in <range> -
How to create select-options for 3 fields out of 5 by FREE_SELECTIONS_INIT
Hi Experts,
I am using the Function Modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG to create the select-options dynamically on the selection screen.
My problem is that I am passing a field list of 10 fields in the FIELDS_TAB of the function.
Now it creates the select-options for all 10 fields. I want to create select-options for only 5 fields initially and let the user select out of the remaining 5 fields to create the select-options.
How to achieve this.?
I tried by passing the 5 fields in FIELDS_NOT_SELECTED table but they get hidden and once hidden I am not able to get them back in my field list.
Please help me out.
Useful answers will be suitably rewarded.
Thanks in advance.
Regards,
HimanshuHi Experts,
I am using the Function Modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG to create the select-options dynamically on the selection screen.
My problem is that I am passing a field list of 10 fields in the FIELDS_TAB of the function.
Now it creates the select-options for all 10 fields. I want to create select-options for only 5 fields initially and let the user select out of the remaining 5 fields to create the select-options.
How to achieve this.?
I tried by passing the 5 fields in FIELDS_NOT_SELECTED table but they get hidden and once hidden I am not able to get them back in my field list.
Please help me out.
Useful answers will be suitably rewarded.
Thanks in advance.
Regards,
Himanshu -
Create select-options using internal table
Hello,
I have number of table-fields in one internal table.
I need to create select-options on screen for each of the table field in that internal table.
Can anybody please provide a code for it ?
Thanks.hi,
you can create in this way :
select-options: <name> for itab-<field name>.
example code:
TABLES: vbak. " standard table
TYPE-POOLS: slis.
*-- Structure to hold data from table
TYPES: BEGIN OF tp_itab1,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
werks LIKE vbap-werks,
lgort LIKE vbap-lgort,
END OF tp_itab1.
*-- Data Declaration
DATA: t_itab1 TYPE TABLE OF tp_itab1.
DATA : i_fieldcat TYPE slis_t_fieldcat_alv.
* Selection Screen *
*--Sales document-block
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
s_posnr FOR vbap-posnr,
s_werks FOR vbap-werks,
s_lgort FOR vbap-lgort.*
SELECTION-SCREEN END OF BLOCK b1.
hope it will help you
regards
Rahul sharma
Edited by: RAHUL SHARMA on Sep 19, 2008 8:25 AM -
How to creat select-option on module pool screen???
Hi All,
please tell me how to creat select-option on module pool screen???
Regards
DeepakHi Deepak Kumar Sharma,
There are Two ways to achieve it...
1) How to create a select-options in a module pool screen.
Method 1
a) Create a subscreen area in your screen layout where you want to create the select options.
b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
select-options s_matnr for mara-matnr.
SELECTION-SCREEN END OF SCREEN.
c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
CALL SUBCREEN sub_area INCLUDING <program> <screen>
This call subscreen statement is necessary for transport of values between screen and program.
Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
Method 2
a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
struc_tab_and_field-fieldname = con_cust. " 'KUNNR'
struc_tab_and_field-tablename = con_kna1. " 'KNA1'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = ' '
text = g_titl1 " 'Customers'
tab_and_field = struc_tab_and_field
TABLES
RANGE = rng_kunnr
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
INVALID_FIELDNAME = 4
OTHERS = 5.
IF NOT rng_kunnr[] IS INITIAL.
Read the very first entry of the range table and pass it to
dynpro screen field
READ TABLE rng_kunnr INDEX 1.
IF sy-subrc = 0.
g_cust = rng_kunnr-low.
ENDIF.
You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
Also have a look on below threads
how to make select option in module pool
select option in module pool program
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7 -
To create select option in module pool prograaming.
I want to create Select-option in module pool programming like a report where i want to enter range in my dialog screen.
Can anybody suggest me...with coding
thanks
kumar nIt is possible .
you can do that using COMPLEX_SELECTIONS_DIALOG mentioned by me or
using the Subscreen approach mentioned by Rich in the below thread..
https://forums.sdn.sap.com/click.jspa?searchID=15000207&messageID=1501162 -
How do i get data from a structure using join?
hi,
what is the actual use of a structure.?
my problem is :
KUAGV is an existing STRUCTURE. it has got one fields each which links to MARA, AND VBKD tables. i want to fetch all related information from KUAGV, mara, vbkd . which is the better way : using joins or views or anything else? how do i
get data from a structure using join?structure temporarily holds any data passed to it dynamically throughout the runtime but doesnot store it permanently. so
a structure cannot be included in a join.so instead of incuding structure KUAGV's field in a join
search the transparent table in which same field are present and use it in join.
A structure if created in DDIC(Data Dictionary) is a global DATA STRUCTURE which is used to group related information, for example you would group all the details of your bank account into a structure BANK_ACCOUNT that contains fields like account_Id, account_holder_name etc.
If you create a structure in your program then it is local to your program. So you use this structure to create data holders of this DATA TYPE to hold data in your program.
Edited by: suja thomas on Feb 11, 2008 6:24 AM
Edited by: suja thomas on Feb 11, 2008 6:31 AM -
How to get resultset from oracle procedure use ejb3
how to get resultset from oracle procedure use ejb3
i know oracle procedure should like this
Create or replace PROCEDURE resultset_test(
aaa IN NUMBER,
bbb OUT sys_refcursor) ....
but what s the ejb3 scripts looks like? please give me an example or link~
ths- there are no EJB3 scripts, only compiled application code
- the part of the EJB spec that deals with databases is called the Java Persistence API, but likely you are just looking for the JDBC API.
Now you should know what to Google to get your "example script": "java jdbc oracle procedure" -
How to get Time from Different Work Station on the Network
Hi,
How do I get time from different work station on the network using its ip:port etc.
Lets say, my main server-side Java application is running on a work station 123.12.123.1:1527,
the client-side applications are accessing it using above IP.
what I wanna do is, use the time of 123.12.123.1 machine throughout the application, not client local time.
Appreciated..Ok, this network service on IP:Port is working for me, I hope this is the best way of doing it.
In server application, I have this
package RenameItToYourOwnPackage;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.text.SimpleDateFormat;
public class ServerSocketExample implements Runnable {
private ServerSocket server;
private int port = 7777;
Socket socket;
public void run() {
try {
System.out.println("Waiting for client message");
server = new ServerSocket(port);
while (true) {
socket = server.accept();
// Read a message sent by client application
ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
String clientMessage = (String) ois.readObject();
System.out.println("Message sent by client: " + clientMessage);
// send current datetime to client
ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
oos.writeObject(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date()));
ois.close();
oos.close();
socket.close();
} catch (IOException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}In the client application I have
package RenameItToYourOwnPackage;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
public class ClientSocketExample {
static String dateTimeString;
public ClientSocketExample() {
public static String getServerDateString() {
try {
// Create a connection to the server socket on the server application
InetAddress host = InetAddress.getByName("127.0.0.1");
Socket socket = new Socket(host.getHostName(), 7777);
// Send a message to the server application
ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
oos.writeObject("Send me today's timestamp as string");
// Read the response by server application
ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
dateTimeString = (String) ois.readObject();
//System.out.println("Message sent by server: " + message);
ois.close();
oos.close();
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
return dateTimeString;
}And I run the service on the server-side with
new Thread(new ServerSocketExample()).start();On the client-side I receive the date with
System.out.println("DateTime on Server : " + ClientSocketExample.getServerDateString());Edited by: nkamir on Sep 13, 2010 2:53 PM -
I changed my id. When I want, now, update my apps I'm asked my pwd corresponding to my old id. I forgot this old pwd and can(t get it from apple. It seems the old id doesn(t exist anymore. What should I do?
J'ai changé mon id. Je veux mettre à jour mes appli mais on me demande le pwd de mon ancien id que j'ai oublié. Je ne peux pas le récupérer. Il semblerait que mon ancien id n'existe plus. que dois je faire?Did yoo go to Settings>iTunes and App Stores and sign out and sign back in?
Next see:
Frequently Asked Questions About Apple ID -
Best way To get data from another application using NDDE lbrary
My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
This is my code:
l : is the list of stocks.
This Sub connects to server and requests the data :
Public Shared Sub GetQuotes()
Try
client1 = New DdeClient(server, topic)
client1.Connect()
For i As Integer = 0 To l.Count - 1
client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
Next
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
This the client_Advise Sub:
Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
For q As Integer = 0 To l.Count - 1
If l(q).t = w(1) Then
Dim item() As String = e.Item.Split("$")
If l(q).Open = "#" Then
l(q).Open = "0"
End If
If l(q).hi = "#" Then
l(q).hi = "0"
End If
If l(q).lo = "#" Then
l(q).lo = "0"
End If
If l(q).Close = "" Or l(q).Close = "#" Then
l(q).Close = "0"
End If
If l(q).pclose = "#" Then
l(q).pclose = "0"
End If
If item(1) = "open" Then
l(q).Open = Format(Val(e.Text), "0.00")
ElseIf item(1) = "last" Then
l(q).Close = Format(Val(e.Text), "0.00")
ElseIf item(1) = "high" Then
l(q).hi = Format(Val(e.Text), "0.00")
ElseIf item(1) = "volume" Then
l(q).Volume = Val(e.Text)
ElseIf item(1) = "low" Then
l(q).lo = Format(Val(e.Text), "0.00")
ElseIf item(1) = "pclose" Then
l(q).pclose = Format(Val(e.Text), "0.00")
If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
End If
l(q).flag1 = 2
ElseIf item(1) = "date" Then
l(q).Date1 = e.Text
ElseIf item(1) = "time" Then
l(q).Time = e.Text
End If
Exit For
End If
Next
End Sub
Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
Thanks in advance.Hi MikeHammadi,
According to your description, you'd like to get data from another app using NDDE library.
When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I get this from system log using latest version of Firefox:
[32282.000367] firefox:2114 freeing invalid memtype c02f2000-c0302000
What kind of problem is this?
Anyway Firefox seem to be working correct. I would like to be sure that it'snt a security problem.Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
Thanks for your help; hope this wasn't extremely long. -
I pay to get music from Kazaa which uses a WMA format, when I try to add it to my Itunes it says that the songs is from a WMA format and Itunes uses AAC format, how can I get this music to my Itunes to put on my I-pod/
By converting the WMA files to AAC formatted files.
Maybe you are looking for
-
Cost clearing account (COS) f.13 clearing small differences.
Hi, We have a COS clearing account 1234. We have small differences which we would like to clear with F.13. I tried with OBA0, but I do not know how to activate the tolerance group on the G/L account because the tolereance group is missing and I canno
-
I want to fetch the data from Infotype 581 from field of Rent paid --- ( Field : RTAMT Table : Q0581 ) and want to calcualte as per the eligibility criteria and the result should be displayed in the Infotype 585 --- ( Field : PCNTR Table : Q0585 ) i
-
Hello. I installed a new free software app and it had an option to add a competitor of Firefox's toolbar and change the home page, I believe. I first unchecked it but because of a hiccup during the installation, the checks reappeared and I couldn't c
-
Can we stop shared server from client m/c
Hi all, Can we stop Oracle Shared and Dedicated server from Client Machine if i am connecting through SYSDBA. Thanks Vipin
-
Junk photo booth effects left behind by some software
hi. there are a lof of photo booth effects left behind by some software i had installed ( i dont remember which it was). i deleted the application but it left behind the effects. i want to get rid of them as all of them have a watermark which can be