Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tpbjr
  • Order by date
  1. tpbjr

    Customer Tab and command buttons?

    Hi, I have the wonderful task of modifying an SAP program. The screen has a tab control and a customer (custom) tab labeled 'Art Prod'. When I click the Art Prod tab there is nothing in that tab. However, there is another screen that does have two command buttons. I have stepped through code...
  2. tpbjr

    Hot Spots in ALV grid and returning to the grid?

    Hi, I am like a new born baby to ABAP so please help and bare with me. When using a hotspot on the grid to go to another form/program, is there a way to get back to the ALV when clicking the SAP green back button while in the form/program that you went to from the hotspot? If you could...
  3. tpbjr

    Building a SELECT result into a variable?

    Ok, I figured it out with the help of all of you. Sorry Dagon, I did not see your last suggestion until I come up with what is below. The code below is inside of my first cursor LOOP. The initial unit test appears to have passed. Thanks again. -- build message with all records that are...
  4. tpbjr

    Building a SELECT result into a variable?

    I guess I am so not in the loop with PL/SQL and I have results that I have to produce, I am trying to anything and getting nowhere. :( Then let me ask you this. This is the format that I have in my script. DECLARE ... variables declared here ... Initial main input CURSOR here ... several...
  5. tpbjr

    Building a SELECT result into a variable?

    Ok, now I am really confused. I have a table OTHER_JOURNAL (not a cursor) that I want to read in PL/SQL code. I am trying to not do a loop type thing. At most it will return 4 records based on my WHERE clause. I would have to do define all fields of my table like this... DECLARE TYPE...
  6. tpbjr

    Building a SELECT result into a variable?

    Hi, I am not following your code! DECLARE TYPE NumTab IS TABLE OF emp.empno%TYPE; TYPE NameTab IS TABLE OF emp.ename%TYPE; enums NumTab; -- no need to initialize names NameTab; BEGIN ... EXCEPTION WHEN DUP_VAL_ON_INDEX THEN SELECT empno, ename BULK COLLECT INTO enums, names FROM...
  7. tpbjr

    Building a SELECT result into a variable?

    Hi again everyone, This is kind of the second part to my chr(10) issue. I have a process that attempts to INSERT but when throws an exception (DUP_VAL_ON_INDEX) I need to detect that a related child record(s) exists. If a child record exists then I have to delete the child record(s) but first...
  8. tpbjr

    How to do a linefeed inside PL/SQL?

    You all are great! :) So I am going to attempt to use the following code and see what happens. I guess I am being lazy because I am using VI (I do not prefer) and I am use to stepping through code to watch line by line and I cannot in this environment. gv_msg_build := 'CANNOT DELETE THE OCD...
  9. tpbjr

    How to do a linefeed inside PL/SQL?

    Cool that worked for my test. So is it safe to say that this will work in the PL/SQL code. gv_hdr_build1 := 'FOUND DUPLICATE OCD RECORD(S) WITH RELATED OJ RECORD(S) ' ||chr(12) Man, you do not know how much I appreciate this information. Thank you for all your help www.besware.com Tom
  10. tpbjr

    How to do a linefeed inside PL/SQL?

    Hi, I am trying to figure out the syntax for a linefeed in the UNIX environment for PL/SQL. I tried the following as a test but the result is not what I want. What I am actually doing is building a variable with a message. In this message I need to move to another line sometimes. I appreciate...
  11. tpbjr

    How do I join two group by queries to find an amount difference

    SORRY! I forgot to mention that in a real situation the OCD_TRANS_NO will not be in the WHERE clause because I will not know what records are out of balance. Thanks again. Thank you for all your help www.besware.com Tom
  12. tpbjr

    How do I join two group by queries to find an amount difference

    Hi All, This one is going to be lengthy but it is necessary to have you fully understand my problem. I have a table with a debit/credit (C/D)indicator and an amount, along with other key fields. I am trying to have a query give back as few records as possible where the the C/D records are...
  13. tpbjr

    Hiding Columns in a Databound Datagrid

    Hi again, I have tried this bunch of code and it does not error out. However, it has no effect. My first two columns are not hidden and the LoginID field name still displays in the grid column header. Can anyone recommend a good book that will help an idiot like me understand .NET Windows...
  14. tpbjr

    Hiding Columns in a Databound Datagrid

    I really appreciate all the support. However, I cannot get this to work. I am so disappointed in .NET. I had no problems programming in VB6. Even the help file information does not make sense to me. Microsoft must have gotten antirely different crew to write the help file. It is not...
  15. tpbjr

    Hiding Columns in a Databound Datagrid

    That is what I am tinkering with now but have had no luck yet. :( Thank you for all your help www.besware.com Tom
  16. tpbjr

    Hiding Columns in a Databound Datagrid

    I do not see a AutoGenerateColumn property available. Man, I thought VB would be getting easier but this .NET is a step backwards. Thank you for all your help www.besware.com Tom
  17. tpbjr

    Hiding Columns in a Databound Datagrid

    I am using VB.NET 2003 My code that works with the one of the datagrids looks like this. Private Sub CreateDataGrid() Dim strSQL As String strSQL = "SELECT ID, LoginID, Diagnosis FROM tblDiagnosis " strSQL = strSQL & "WHERE LoginID = " & gUserID_Number...
  18. tpbjr

    Get ID of new record.

    I will jump in but by far--I am know expert. Can you do a simple SQL command getting the max ID number. Since it is most likely indexed it should be a fast retrieval. Select max(ID) into myLastID from myTable Have your procedure some how return myLastID. Thank you for all your help...
  19. tpbjr

    Hiding Columns in a Databound Datagrid

    Hi, Does anyone know of an easy way to hide columns in a databound datagrid (Windows form). I programmatically have created the dataadapter, connection, and dataset. How can I programmatically hide the first two columns. In addition, if the columns are hidden, will I still be able to populate...
  20. tpbjr

    Datagrid - Databound issue

    It appears as though I have answered my own question with the following code/event usage. But now I would like to hide column 1 and column 2 (AutoID and LoginID) as long as it does not disrupt the new code listed below. Can someone please tell me how to hide specific columns in a datagrid? In...

Part and Inventory Search

Back
Top