Problems with form 10022 (selecting offer from order form)

Hi,
I'm trying to capture the event of form load of the form 10022, but I can't. It doesn't execute that event, the ones that it execute are form activate and got focus, so I've tried with them but the problem is that although beforeaction is false,they execute before loading the matrix data. How can I capture this event so that the matrix is loaded? I've also tried with matrix load and datasource load events. This form is the one that appears when clicking in the offer button in an order form.
Thanks

Hi Vanesa,
Try using the menuevent or button click event which makes the 10022 form to be shown. After this form is loaded and activated, it should raise again with the beforeaction = false value.
Keep in mind that if you use the menuevent, you should catch the form using ActiveForm Property.
Hope this helps.
Ibai Peñ

Similar Messages

  • Problem with printing oracle 9i report from my form

    i got some problem in printing my report in PDF format. i am printing the report from
    my form as mentioned below. the report is printing but its giving a message
    File does not begin with '%PDF-'
    my idea is to show the report and print the report simultaneously. if i remove the
    web.show_document part then i didn't get that error.
    what is reason for this and how can i rectify it?
    pl_id:=create_parameter_list('GinMastList');
                   add_parameter(pl_id,'P_GINO',text_parameter,Trim(:Block3.text_item7));
                   --add_parameter(pl_id,'P_ToDt',text_parameter,Trim(:Block3.text_item9));
                   --add_parameter(pl_id,'P_todt',text_parameter,Trim(:Block3.text_item10));
              repid := find_report_object('PREPGIN');
                   --Set_Report_Object_Property(repid,Report_FileName,VarSetFName||'reports\NewParamGin.rdf');           
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\NV\HPLaserJ');
              --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rserver90');
              --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
              v_rep := RUN_REPORT_OBJECT(repid,pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
              LOOP
              rep_status := report_object_status(v_rep);
              END LOOP;
         message(rep_status);
         message(rep_status);
              IF rep_status = 'FINISHED' THEN
              WEB.SHOW_DOCUMENT('http://sylnvb2:8888/reports/rwservlet/getjobid'||
              substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rserver90','_blank');
              ELSE
              MEssage(Message_Code||' '||Message_Type||' '||Message_TExt);
                        MEssage(Message_Code||' '||Message_Type||' '||Message_TExt);
              END IF;
              -- the paramter list is to be destroyed only the end of the report execution or else it will generate
              -- empty report
                   if not id_null(pl_id) then
                        destroy_parameter_list(pl_id);
                   end if;

    hello,
    there are two ways to do this :
    1) submit two jobs, one that prints and one that creates the PDF
    2) use reports advanced distribution to print and create a PDF file on the server as part of the same job, and then use web.show_document to bring up the PDF in the browser.
    however, this brings up the question, why exactly you want to print and display at the same time. why not display it and let the user print form Acrobat Reader.
    thanks,
    ph.

  • HT1338 Problem with MAIL, when select names that start with "E" the mail freeze. Can't fix it.

    Problem with MAIL, when select names that start with "E" the mail freeze. Can't fix it.

    Now I checked the materials that I got from AT&T Yahoo and
    port 25 is used as the outgoing mail port, 110 for incoming.
    This is for the POP type account provided by AT&T, not necessarily for an email account and SMTP server not provided by AT&T.
    Sounds like AT&T blocks using an SMTP server that is outside of their network or not provided by AT&T on Port 25.
    Try the following first.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings button below for the .Mac SMTP server.
    Enter 587 in place of 25 in the Server Port field and when finished, select OK to save the changed setting.
    If this doesn't work, we will go to plan B.

  • F-32 : Problem with Open Item selection

    Hi,
    We have a strange problem with open Item selection for customer clearing in t-code F-32
    In My QA system
    if I input spl GL indicator ="*" and uncheck Normal OI tick,
    the system selects all open items,
    (those with spl GL indicator and those without spl GL indicator)
    In My Dev system
    If I input spl GL indicator ="*" and uncheck Normal OI tick
    the system does not select any open items,
    Please let me know which setting controls this behaviour ?
    Regards
    Sachin

    Hello,
    Check your data in FBL5N for the option "Special GL Transactions". There could be that there is no data in the system with SPECIAL GL TRANSACTIONS.
    In F-32, there is no value like *
    You need to input right Special GL Indicator. "*" will not work here.
    I am sure in both the systems if you put "*" and UNTICK your normal transaction, you will NOT get any items to clear.
    Please DOUBLE CHECK whether you have unticked normal transaction.
    Regards,
    Ravi

  • OneKey Recovery 6.0. Problem with back up operating system from recovery cd'ies

    Hello, i have problem with back up operating system from recovery cdies.
    When i acceped start button to backup partition system i get an alert "space not enough"
    I had linux before and i whant change it to windows back. i deleted all ext partitions. I have all unlocated space.I shouldnt have problems.
    Please help me

    I would use something like Partition Magic or Acronis Disk Director to first create a FAT32 partion for your C: Drive where your OS will go and be sure to leave 10GB or so unallocated for the secondary FAT32 Partition where your "factory image" will go. 
    You then create a Logical Drive with the unallocated space and make it hidden (PM or ADD will do this).   Install your OS (preferably Windows XP if you want less problems) and then after you have setup everything the way you want (drivers, applications, etc), then use Acronis True Image to create your "factory restore" image on the hidden partition and activate the Startup Recovery Manager.
    This is the way I do it and it works like a charm!

  • Problem with called Report 6.0 from Forms

    Hi all,
    I have built a form in 6.0 which calls a Report through a RUN_PRODUCT procedure.
    I pass a few parameters to send it directly to a printer, but all that comes out is a white page.
    When i send to the screen, there's no problem. The cause of the white paper is that apparently the margins are set in such a way that the report falls of the page.
    Any idea how i can correct this ...? This only occurs when it is called from the form. Is there a parameter i've missed...?
    Thanks.
    PS Please mail any sollution you can think of. I don't have an internet-connection at work. The mailaddress is [email protected]

    There have been some changes between 10.1.2.0 and 10.1.2.3. In some cases, java beans will need to be recompiled against the latest frmall.jar file. One example of this issue is noted in the following places:
    MyOracleSupport Note 559213.1
    and here:
    http://forms.pjc.bean.over-blog.com/
    Also, be sure to consider other changes you have made. For example, if you were using Jinitiator with 10.1.2.0 and are now using the Java Plug-in this may also be a cause of the problem. I am not suggesting that using the JRE (java plug-in) is causing the problem, but simply that some minor other changes may be required in order to have everything work in harmony together.

  • Problem with prod. ver. explosion to production order

    Hi
    I have problem with production versions. I have FERT with 3 production versions. Additionaly we have Z-program (on Z-table) which control parameter sold to party (from sale order) with production version. So after MRP I see in planned order right production version for example 3 - field PLAF-VERID; in master data in planned order I see right alternative BOM and routing; but when I make a conversion to production order I see that system always explode 1st version; additionaly in planned order in components (button)  I see 1st pr.ver (1st alternative BOM) and in Bill of Material (it seems like to manually expolding BOM) I see right version??? But it couldn't be like this that to have right data I need to go to transaction MD12, explode BOM manully, save and after that make a prod. ord.
    I would like to system explode BOM according to production version (field VERID) already in planned order; so after that it should be that when I will converted it to production order I should have right BOM and right routing from production version signed in planned order.
    I know it sounds complicated Add. in configuration all parameters are set right to explode BOM etc. etc. system version: 4.7
    Thanks and regards. Joanna
    Additional info: I cancel this question cause problem is in Z-program; becuase when according to Z-table system change input in field VERID for system it is only "digital" not parameter for which system should explode right BOM; sorry for disturbing, we need to change Z-programm; I do not know how but maybe any function module can help - we will think. Regards
    Edited by: Kostkaj on Aug 17, 2010 10:25 AM

    HI
    Check this link and find valuable suggestion by Mr Mangalraj regarding selection of PVs
    Produciton version selection in MRP
    Regards
    Anupam Sharma

  • Problem with performance of a query having order by, distinct clause

    Hi,
    I have a problem with queries having order by, distinct clause.
    While its executing its taking lot of time. With DBMS_PROFILER identified the queries taking long time.
    The table is having approximately 70 million rows.
    Problem -1
    select * from table_name order by col1;
    select distinct col1,col2 from table_name;
    Here i am having 2 solutions request to let me know whether i am right if not suggest me right solution.
    Solution1:
    Max parallel servers is 8.
    select /* + parallel(table_name,8) */ * from table_name order by col1;
    select /* + parallel(table_name,8) */ distinct col1, col2 from table_name ;
    Solution-2:
    select /* + first_rows */ * from table_name order by col1;
    select /* + first_rows */ distinct col1, col2 from table_name ;
    Problem-2
    I am having a query with where condition on columns.
    Select * from table_name where col1='value1' and col2!='value2';
    Index created on col1 and col2.
    As we no that not equal won't use index as it is a composite index it should use the lead column. but its not using the index.
    Should i forcibly use index with hint or suggest me better solution.
    Any help really appreciated.
    Thanks in advance

    unique wrote:
    The table is having approximately 70 million rows.
    select * from table_name order by col1;Do you really want 70,000,000 rows from your table without any restrictions ? And furthermore ordered output ? I honestly understand the slowness of that query.
    Here i am having 2 solutions request to let me know whether i am right if not suggest me right solution.Who knows if you choosed the right solution. I would suggest to reconsider your query and the need of 70,000,000 returned rows.
    Problem-2
    I am having a query with where condition on columns.
    Select * from table_name where col1='value1' and col2!='value2';Please, provide the explain plan, eventually the tkprof output could also help. And tables descirption AND indexes description.
    And OS and Oracle version.
    Nicolas.

  • Problem binding a matrix in the Sales Order Form

    Hi everybody!
    I am working in an Add-On. What I do is modify the sales order form in runtime. I catch the event when the form is loading and then I add a new folder with some fields and a matrix.
    I've got a matrix in this form with the employees that participate in an order and when I go through all the orders by using the next and previous record buttons I have to rebind it to show the participants in a specific order. The code for the event is the following:
            If (pVal.ItemUID = "57") And pVal.Before_Action = False And pVal.EventType = et_ITEM_PRESSED Then
                BindParticipantGrid
                BubbleEvent = False
            End If
    After bind the grid, BO shows a System message indicating that the form has been changed and asking me if I want to save the changes to the order. Looks like, whenever the bind function finds rows to add to the matrix it changes the mode of the form by adding rows to the matrix. How can I prevent that when I'm in view mode?
    This is the code for the binding function
    Sub BindParticipantGrid()
        Dim myForm As SAPbouiCOM.Form
        Dim oMatrix As SAPbouiCOM.Matrix
        Dim rs As sapbobsCOM.Recordset
        Dim strSQL, OrdreNr As String
        Dim oText As SAPbouiCOM.EditText
        Set myForm = SBOApplication.Forms.GetFormByTypeAndCount(139, 1)
        Set oText = myForm.Items("8").Specific
        If oText.Value <> "" Then
            OrdreNr = oText.Value
        Else
            OrdreNr = "0"
        End If
        Set oMatrix = myForm.Items("matrix").Specific
        oMatrix.Clear
        Set rs = myCompany.GetBusinessObject(sapbobsCOM.BoObjectTypes.BoRecordset)
        strSQL = "SELECT [@HL_PART].Code as Code, [@HL_PART].U_DocNum as DocNum, [@HL_PART].U_EmpId as EmpId, [@HL_PART].U_EmpName as EmpName, [@HL_PART].U_Message as Message, [@HL_PART].U_MessRead as MessRead, [@HL_PART].U_MainPart as MainPart, [@HL_PART].U_StartDt as StartDt, [@HL_PART].U_StartHr as StartHr, [@HL_PART].U_FinishDt as FinishDt, [@HL_PART].U_FinishHr as FinishHr, [@HL_PART].U_Finished as Finished FROM [@HL_PART] WHERE [@HL_PART].U_DocNum = " & OrdreNr
        rs.DoQuery strSQL
        While Not rs.EOF
            myForm.DataSources.UserDataSources.Item("EmpId").Value = rs.fields("EmpId").Value
            myForm.DataSources.UserDataSources.Item("EmpName").Value = rs.fields("EmpName").Value
            myForm.DataSources.UserDataSources.Item("Message").Value = rs.fields("Message").Value
            myForm.DataSources.UserDataSources.Item("MessRead").Value = rs.fields("MessRead").Value
            myForm.DataSources.UserDataSources.Item("MainPart").Value = rs.fields("MainPart").Value
            myForm.DataSources.UserDataSources.Item("StartDt").Value = rs.fields("StartDt").Value
            myForm.DataSources.UserDataSources.Item("StartHr").Value = rs.fields("StartHr").Value
            myForm.DataSources.UserDataSources.Item("FinishDt").Value = rs.fields("FinishDt").Value
            myForm.DataSources.UserDataSources.Item("FinishHr").Value = rs.fields("FinishHr").Value
            myForm.DataSources.UserDataSources.Item("Finished").Value = rs.fields("Finished").Value
            oMatrix.AddRow
            rs.MoveNext
        Wend
        oMatrix.SelectionMode = ms_Auto
    End Sub
    I will apreciate all king of help
    Thanks in advance.

    You have a property of the form which allows you to change the mode
    myForm.Mode = fm_ADD_MODE
    myForm.Mode = fm_EDIT_MODE
    myForm.Mode = fm_VIEWMODE_MODE
    You may change it after you modify you matrix data to fm_VIEWMODE_MODE and I guess you won't have the system question again.
    Sebastien

  • Problem with populating a fact table from dimension tables

    my aim is there are 5 dimensional tables that are created
    Student->s_id primary key,upn(unique pupil no),name
    Grade->g_id primary key,grade,exam_level,values
    Subject->sb_id primary key,subjectid,subname
    School->sc_id primary key,schoolno,school_name
    year->y_id primary key,year(like 2008)
    s_id,g_id,sb_id,sc_id,y_id are sequences
    select * from student;
    S_ID UPN FNAME COMMONNAME GENDER DOB
    ==============================
    9062 1027 MELISSA ANNE       f  13-OCT-81
    9000 rows selected
    select * from grade;
          G_ID GRADE      E_LEVEL         VALUE
            73 A          a                 120
            74 B          a                 100
            75 C          a                  80
            76 D          a                  60
            77 E          a                  40
            78 F          a                  20
            79 U          a                   0
            80 X          a                   0
    18 rows selectedThese are basically the dimensional views
    Now according to the specification given, need to create a fact table as facts_table which contains all the dim tables primary keys as foreign keys in it.
    The problem is when i say,I am going to consider a smaller example than the actual no of dimension tables 5 lets say there are 2 dim tables student,grade with s_id,g_id as p key.
    create materialized view facts_table(s_id,g_id)
    as
    select  s.s_id,g.g_id
    from   (select distinct s_id from student)s
    ,         (select distinct g_id from grade)gThis results in massive duplication as there is no join between the two tables.But basically there are no common things between the two tables to join,how to solve it?
    Consider it when i do it for 5 tables the amount of duplication being involved, thats why there is not enough tablespace.
    I was hoping if there is no other way then create a fact table with just one column initially
    create materialized view facts_table(s_id)
    as
    select s_id
    from student;then
    alter materialized view facts_table add column g_id number;Then populate this g_id column by fetching all the g_id values from the grade table using some sort of loop even though we should not use pl/sql i dont know if this works?
    Any suggestions.

    Basically your quite right to say that without any logical common columns between the dimension tables it will produce results that every student studied every sibject and got every grade and its very rubbish,
    I am confused at to whether the dimension tables can contain duplicated columns i.e column like upn(unique pupil no) i will also copy in another table so that when writing queries a join can be placed. i dont know whether thats right
    These are the required queries from the star schema
    Design a conformed star schema which will support the following queries:
    a. For each year give the actual number of students entered for at A-level in the whole country / in each LEA / in each school.
    b. For each A-level subject, and for each year, give the percentage of students who gained each grade.
    c. For the most recent 3 years, show the 5 most popular A-level subjects in that year over the whole country (measure popularity as the number of entries for that subject as a percentage of the total number of exam entries).
    I written the queries earlier based on dimesnion tables which were highly duplicated they were like
    student
    =======
    upn
    school
    school
    ======
    school(this column substr gives lea,school and the whole is country)
    id(id of school)
    student_group
    =============
    upn(unique pupil no)
    gid(group id)
    grade
    year_col
    ========
    year
    sid(subject id)
    gid(group id)
    exam_level
    id(school id)
    grades_list
    ===========
    exam_level
    grade
    value
    subject
    ========
    sid
    subject
    compulsory
    These were the dimension table si created earlier and as you can see many columns are duplicated in other tables like upn and this structure effectively gets the data out of the schema as there are common column upon which we can link
    But a collegue suggested that these dimension tables are wrong and they should not be this way and should not contain dupliated columns.
    select      distinct count(s.upn) as st_count
    ,     y.year
    ,     c.sn
    from      student_info s
    ,     student_group sg
    ,     year_col y
    ,     subject sb
    ,     grades_list g
    ,     country c
    where      s.upn=sg.upn
    and     sb.sid=y.sid
    and     sg.gid=y.gid
    and     c.id=y.id
    and     c.id=s.school
    and      y.exam_lev=g.exam_level
    and      g.exam_level='a'
    group by y.year,c.sn
    order by y.year;This is the code for the 1st query
    I am confused now which structure is right.Are my earlier dimension tables which i am describing here or the new dimension tables which i explained above are right.
    If what i am describing now is right i mean the dimension tables and the columns are allright then i just need to create a fact table with foreign keys of all the dimension tables.

  • Problem with the default selection screen condition

    hi guys,
    I have got some problem with the default screen given by the PNP logical database, P0000 infotype automatically populated according to the condition given in default screen.
    Reg,
    Hariharan

    Don know what u r trying to acheive.
    1) when u have specified PNP in the logical databse field of attributes of program, the SAP wil proivde u default PNP screen and here u can also add ur paramters if u want.
    2) in the program u have to declare like
    INFOTYPES: 0000,0001. "Etc
    for all the infotypes u want to use in the program.
    3) it is the GET PERNR event which wil fil all the p0000 and p0001 (internal tables for al the infotypes declared via INFOTYPES syntax as shown above)
    4) after tht get pernr, u now have data in P tables and u can use it for further reporting.
    5) refer below dummy code -
    REPORT  ZPPL_PREVEMPLOYERS   message-id rp
                                 line-size 250
                                 line-count 65.
    *Program logic :- This Report is used to Download all the Previous
    * Employer (IT0023) records of the employees
    *eject
    *& Tables and Infotypes                                                *
    tables: pernr.
    infotypes: 0000,
               0001,
               0002,
               0023.
    *eject
    *& Constants                                                           *
    constants: c_1(1)       type c               value '1'   ,
               c_3(1)       type c               value '3'   ,
               c_i(1)       type c               value 'I'   ,
               c_x(1)       type c               value 'X'   ,
               c_eq(2)      type c               value 'EQ'  ,
               c_pl03       like p0001-werks     value 'PL03'.
    *eject
    *& Selection-Screen                                                    *
    parameters: p_file  like rlgrap-filename default 'C:TempABC.xls',
                p_test  as checkbox default c_x               .
    *eject
    *& Internal tables                                                     *
    * Internal Table for Output
    data: begin of t_output occurs 0    ,
           pernr like pernr-pernr       ,
           nachn like p0002-nachn       ,
           vorna like p0002-vorna       ,
           orgeh_stext like p1000-stext ,
           plans_stext like p1000-stext ,
           begda like p0023-begda       ,
           endda like p0023-endda       ,
           land1 like p0023-land1       ,
           arbgb like p0023-arbgb       ,
           ort01 like p0023-ort01   .
    data: end of t_output           .
    *eject
    *& Variables                                                           *
    data: o_stext like p1000-stext,
          p_stext like p1000-stext.
    *eject
    *& Initialization                                                      *
    Initialization.
    * Initialize Selection-Screen values
      perform init_selction_screen.
    *eject
    *& AT Selection-screen                                                 *
    at selection-screen .
    * Check if Test run selected, download file name should be entered
      if p_test is initial.  "
        if p_file is initial.
          message e016 with 'Please enter file name'
                            'specifying complete path'.
        endif.
      endif.
    *eject
    *& Start-of Selection                                                  *
    Start-of-selection.
    get pernr.
      clear t_output.
    * Read Infotype 0
      rp-provide-from-last p0000 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    * Check if employee is active
      check p0000-stat2 in pnpstat2.      "pernr Active
    * Read Infotype 1
      rp-provide-from-last p0001 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    * check if employee belongs to PL03
      check p0001-werks in pnpwerks.  "belongs to PL03
    * Check if emp belongs to Active Group
      check p0001-persg in pnppersg.
    * Read Infotype 2
      rp-provide-from-last p0002 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    * Read Org Unit Text.
    CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
         EXPORTING
              OTYPE                   = 'O'
              objid                   = p0001-orgeh
              begda                   = p0001-begda
              endda                   = p0001-endda
              reference_date          = p0001-begda
         IMPORTING
              object_text             = o_stext
          EXCEPTIONS
              nothing_found           = 1
              wrong_objecttype        = 2
              missing_costcenter_data = 3
              missing_object_id       = 4
              OTHERS                  = 5.
    *Read Position Text.
    CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
         EXPORTING
              OTYPE                   = 'S'
              objid                   = p0001-plans
              begda                   = p0001-begda
              endda                   = p0001-endda
              reference_date          = p0001-begda
         IMPORTING
              object_text             = p_stext
         EXCEPTIONS
              nothing_found           = 1
              wrong_objecttype        = 2
              missing_costcenter_data = 3
              missing_object_id       = 4
              OTHERS                  = 5.
    * Gather all the required information related to the emp
      move: pernr-pernr to t_output-pernr,
            o_stext to t_output-orgeh_stext,
            p_stext to t_output-plans_stext,
            p0002-nachn to t_output-nachn,
            p0002-vorna to t_output-vorna.
    * Gather previous Employee details
      loop at p0023.
        move-corresponding p0023 to t_output.
        append t_output.
      endloop.
    *eject
    *& End-of Selection                                                    *
    end-of-selection.
      perform print_report.
    * Downlaod the file
      if not t_output[] is initial.
        if p_test eq space.
          perform download_file.
        endif.
      else.
        write: 'No records selected' color col_negative.
      endif.
    *eject
    *& Top-of-page                                                         *
    Top-of-page.
    * Print Header
      perform print_header.
    *eject
    *&      Form  download_file
    * Description :
    FORM download_file .
      DATA: full_file_name    TYPE string,
            z_akt_filesize    TYPE i     .
      full_file_name = p_file.
    *  download table into file on presentation server
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename                = full_file_name
          filetype                = 'DAT'
          NO_AUTH_CHECK           = c_x
          codepage                = '1160'
        IMPORTING
          FILELENGTH              = z_akt_filesize
        CHANGING
          data_tab                = t_output[]
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          not_supported_by_gui    = 22
          error_no_gui            = 23
          OTHERS                  = 24.
      IF  sy-subrc               NE        0.
        MESSAGE e016 WITH 'Download-Error; RC:' sy-subrc.
      ENDIF.
    ENDFORM.                    " download_file
    *eject
    *&      Form  print_report
    *Description:
    FORM print_report .
      data: i       type i,
            w_count type i.
      sort t_output.
    * Print the report
      loop at t_output.
        i = sy-tabix mod 2.
        if i eq 0.
          format color col_normal intensified on.
        else.
          format color col_normal intensified off.
        endif.
        write:/1     t_output-pernr          ,
               10     t_output-vorna(25)     ,
               35    t_output-nachn(25)      ,
               61   t_output-orgeh_stext     ,
               102  t_output-plans_stext     ,
               143  t_output-begda           ,
               154   t_output-endda          ,
               168   t_output-land1          ,
               178   t_output-arbgb(40)      ,
               219   t_output-ort01          ,
               249   space              .
      endloop.
      uline.
      Describe table t_output lines w_count.
      Skip 2.
      Write:/ 'Total No of Records Downloaded: ' color col_total,
              w_count.
    ENDFORM.                    " print_report
    *eject
    *&      Form  print_header
    *Description:
    FORM print_header .
      skip 1.
      Uline.
      format Intensified on color col_heading.
      write:/1   'Pers. #'        ,
             10   'Last Name'     ,
             35   'First Name'    ,
             61   'Org Unit'      ,
             102  'Position'      ,
             143  'Beg Date'      ,
            154   'End Date'      ,
            168   'Cntry Key'     ,
            178   'Prev Employer' ,
            219  'City'           ,
            249   space          .
      format intensified off color off.
      uline.
    ENDFORM.                    " print_header
    *eject
    *&      Form  init_selction_screen
    *Description:
    FORM init_selction_screen .
      refresh: pnpwerks,
               pnppersg,
               pnpstat2.
      clear:   pnpwerks,
               pnppersg,
               pnpstat2.
      pnpwerks-sign   = c_i.
      pnpwerks-option = c_EQ.
      pnpwerks-low    = c_pl03.
      append pnpwerks.
      pnppersg-sign   = c_i.
      pnppersg-option = c_EQ.
      pnppersg-low    = c_1.
      append pnppersg.
      pnpstat2-sign   = c_i.
      pnpstat2-option = c_EQ.
      pnpstat2-low    = c_3.
      append pnpstat2.
    ENDFORM.                    " init_selction_screen

  • Getting the primary key from order form

    Does anyone know how to get the primary key (DocEntry) off of the order form for an existing order?  I don't really want to use the DocNum field since it is not the primary key and theoretically two different orders could have the same DocNum.  Thanks in advance for your help.

    Hi Joe,
    DocEntry and DocNum values are unique, so you cannot have in db 2 orders with the same DocNum. It's possible, that DocEntry and DocNum values can vary.
    If you know the DocNum value (f.e. from Order's Form), you can simple use RecordSet object:
    Dim sQuery as String
    Dim oOrder as SAPbobsCOM.Documents
    Dim oRecordSet As SAPbobsCOM.Recordset
    Set oOrder = oCompany.GetBusinessObject(oOrders)
    Set oRecordSet = oCompany.GetBusinessObject(BoRecordset)
    sQuery = "Select DocEntry From ORDR Where DocNum = '" & DocNumber & "'"
    oRecordSet.doQuery sQuery
    If oRecordSet.RecordCount > 0 Then
      oOrder.GetByKey(oRecordSet.Fields(0).Value)
    End If
    And this should work.
    Regards
    Libor.

  • Problem with Headstart Multi-Select LOV

    Hi,
    I'm working on a few forms which should include a Multi-Select
    LOV. Now here's the problem: One MSEL doesn't close; you can
    select record(s), the LOV returns them, but doesn't disappear.
    Clicking Cancel doesn't help.
    Another MSEL-problem in another form: if you click Select All,
    this selection isn't visible in the MSEL. He returns all of the
    records, but it looks like he only selected one. Working with
    CTRL to select more than one record doesn't work either. This
    one closes fine.
    As you know I have to include module component
    QMS_MSEL_LOV_BUTTONS (which includes all button-functionality),
    and then it should work, but it doesn't.
    We've checked all the properties and they seem to be correct. It
    isn't the first time we encountered these problems. We always
    rebuilt the MSEL LOV, but it doesn't help this time.
    Has anyone got an idea what's causing this problem.
    P.S. There are also MSEL LOV's which operate just fine, without
    any problems; only these two are doing strange things.
    Thx,
    Wouter

    Workaround provided by Lauri Boyd seems to have worked:
    A bug (#1985903) was introduced in Forms 6.0.8.13.0 and later which affected Headstart. This was fixed in Headstart patch 6.5.2.1 which is available through the Supplement Option.
    Description
    ===========
    1. When using a multi-select LOV (which is displayed in a modal dialog
    window), you select the records you want, press OK, and the application exits.
    2. When using a shuttle control to move records from left to right or vice
    versa, you select the records you want, press '>' to move them, and the
    application exits.
    This occurs in Forms 6.0.8.13.0 and 6.0.8.14.1. It did NOT occur in prior
    releases. This is some kind of forms bug.
    Workaround
    ==========
    For some reason the call to procedure renumber in qms$msel.process_records
    causes the application to exit. If you copy the code from renumber to all the
    places from which it is called, it works fine.
    - open qmslib65.pll in Form Builder
    - open package body qms$msel
    - find procedure process_records and define a local variable l_recno of type
    number.
    - find local procedure renumber and copy the body of this procedure
    (everything
    after 'begin' and before 'exception').
    - replace each call to 'renumber;' with the copied code.
    Regards,
    Lauri

  • Problem with focus and selecting text in jtextfield

    I have problem with jtexfield. I know that solution will be very simple but I can't figure it out.
    This is simplified version of situation:
    I have a jframe, jtextfield and jbutton. User can put numbers (0-10000) separated with commas to textfield and save those numbers by pressing jbutton.
    When jbutton is pressed I have a validator which checks that jtextfield contains only numbers and commas. If validator sees that there are invalid characters, a messagebox is launched which tells to user whats wrong.
    Now comes the tricky part.
    When user presses ok from messagebox, jtextfield should select the character which validator said was invalid so that user can replace it by pressing a number or comma.
    I have the invalid character, but how can you get the focus to jtextfield and select only the character which was invalid?
    I tried requestFocus(), but it selected whole text in jtextfield and after that command I couldn't set selected text. I tried with commands setSelectionStart(int), setSelectionEnd(int) and select(int,int).
    Then I tried to use Caret and select text with that. It selected the character I wanted, but the focus wasn't really there because it didn't have keyFocus (or something like that).
    Is there a simple way of doing this?

    textField.requestFocusInWindow();
    textField.select(...);The above should work, although read the API on the select(...) method for the newer recommended approach on how to do selection.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • Font problem with Montserrat and Maven Pro from google

    Seems like some fonts don't render as they should in Firefox 29.0.1. I tried to use google web fonts like Montserrat and Maven Pro, no problem with downloading but this fonts don't look good.
    I tried to install Montserrat to my Windows 7 (64) and deactivated css so that FF runs the font but same problem occurs.
    A really strange problem is that from my computer at work this fonts don't work from FF or Chrome, all versions of IE is fine.
    At home i have a laptop with same OS and version of FF and from home it works! But not Chrome..
    I have search on the net and at your support site but haven't find any answers yet.
    You can look at http://arenago.axiell.com for your self. Below is troubleshooting information from my version of FF where this problems occurs (Sorry about the Swedish)
    Programfakta
    Namn: Firefox
    Version: 29.0.1
    Användaragent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
    Kraschrapporter för de senaste 3 dagarna
    Alla kraschrapporter
    Tillägg
    Namn: Classic Theme Restorer
    Version: 1.1.8
    Aktiverad: true
    ID: ClassicThemeRestorer@ArisT2Noia4dev
    Namn: Firebug
    Version: 1.12.8
    Aktiverad: true
    ID: [email protected]
    Namn: HostAdmin
    Version: 1.4.9.2
    Aktiverad: true
    ID: {bd54afa8-b14a-4d7a-aecf-37e34e882796}
    Namn: Web Developer
    Version: 1.2.5
    Aktiverad: true
    ID: {c45c406e-ab73-11d8-be73-000a95be3b12}
    Viktiga ändrade inställningar
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.places.smartBookmarksVersion: 6
    browser.sessionstore.upgradeBackup.latestBuildID: 20140506152807
    browser.startup.homepage: about:blank
    browser.startup.homepage_override.buildID: 20140506152807
    browser.startup.homepage_override.mstone: 29.0.1
    browser.tabs.drawInTitlebar: false
    browser.tabs.onTop: false
    dom.mozApps.used: true
    extensions.lastAppVersion: 29.0.1
    font.default.x-western: sans-serif
    font.internaluseonly.changed: true
    font.name.sans-serif.x-western: Montserrat
    font.name.serif.x-western: Montserrat
    network.cookie.prefsMigrated: true
    network.dnsCacheEntries: 0
    network.dnsCacheExpiration: 0
    places.database.lastMaintenance: 1400218745
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_bgcolor: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_bgimages: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_colorspace:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_command:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_downloadfonts: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_duplex: -983728976
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_bottom: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_left: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_right: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_top: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_evenpages: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_footercenter:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_footerleft: &PT
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_footerright: &D
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_headercenter:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_headerleft: &T
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_headerright: &U
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_in_color: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_bottom: 0.5
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_left: 0.5
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_right: 0.5
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_top: 0.5
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_oddpages: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_orientation: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_page_delay: 50
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_data: 9
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_height: 11,00
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_name:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_size_type: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_size_unit: 1
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_width: 8,50
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_plex_name:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_resolution: 1
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_resolution_name:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_reversed: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_scaling: 1,00
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_shrink_to_fit: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_to_file: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_bottom: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_left: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_right: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_top: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_bgcolor: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_bgimages: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_colorspace:
    print.printer_\\tina\NRG_MP_C3501_PS.print_command:
    print.printer_\\tina\NRG_MP_C3501_PS.print_downloadfonts: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_duplex: -983728976
    print.printer_\\tina\NRG_MP_C3501_PS.print_edge_bottom: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_edge_left: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_edge_right: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_edge_top: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_evenpages: true
    print.printer_\\tina\NRG_MP_C3501_PS.print_footercenter:
    print.printer_\\tina\NRG_MP_C3501_PS.print_footerleft: &PT
    print.printer_\\tina\NRG_MP_C3501_PS.print_footerright: &D
    print.printer_\\tina\NRG_MP_C3501_PS.print_headercenter:
    print.printer_\\tina\NRG_MP_C3501_PS.print_headerleft: &T
    print.printer_\\tina\NRG_MP_C3501_PS.print_headerright: &U
    print.printer_\\tina\NRG_MP_C3501_PS.print_in_color: true
    print.printer_\\tina\NRG_MP_C3501_PS.print_margin_bottom: 0.5
    print.printer_\\tina\NRG_MP_C3501_PS.print_margin_left: 0.5
    print.printer_\\tina\NRG_MP_C3501_PS.print_margin_right: 0.5
    print.printer_\\tina\NRG_MP_C3501_PS.print_margin_top: 0.5
    print.printer_\\tina\NRG_MP_C3501_PS.print_oddpages: true
    print.printer_\\tina\NRG_MP_C3501_PS.print_orientation: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_page_delay: 50
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_data: 9
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_height: 11,00
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_name:
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_size_type: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_size_unit: 1
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_width: 8,50
    print.printer_\\tina\NRG_MP_C3501_PS.print_plex_name:
    print.printer_\\tina\NRG_MP_C3501_PS.print_resolution: 1
    print.printer_\\tina\NRG_MP_C3501_PS.print_resolution_name:
    print.printer_\\tina\NRG_MP_C3501_PS.print_reversed: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_scaling: 1,00
    print.printer_\\tina\NRG_MP_C3501_PS.print_shrink_to_fit: true
    print.printer_\\tina\NRG_MP_C3501_PS.print_to_file: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_bottom: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_left: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_right: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_top: 0
    privacy.cpd.siteSettings: true
    privacy.sanitize.migrateFx3Prefs: true
    privacy.sanitize.timeSpan: 0
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1399495195
    user.js-inställningar
    Din profilmapp innehåller en user.js-fil som inkluderar inställningar som inte har skapats av Firefox.
    Grafik
    Adapter-RAM: 512
    Adapterbeskrivning: NVIDIA GeForce 7950 GT
    Adapterdrivrutin: nvd3dumx,nvd3dum
    ClearType-parametrar: D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ]
    DirectWrite aktiverat: false (6.2.9200.16492)
    Drivrutinsdatum: 1-31-2013
    Drivrutinsversion: 9.18.13.783
    Enhets-ID: 0x0295
    GPU #2 aktiv: false
    Grafikaccelererade fönster: 1/1 Direct3D 9
    Leverantörs-ID: 0x10de
    WebGL-renderare: Google Inc. -- ANGLE (NVIDIA GeForce 7950 GT Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: skia
    AzureContentBackend: cairo
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    JavaScript
    Incremental GC: true
    Tillgänglighet
    Aktiverad: false
    Förhindra tillgänglighet: 0
    Biblioteksversioner
    NSPR
    Förväntad minimiversion: 4.10.3
    Version som används: 4.10.3
    NSS
    Förväntad minimiversion: 3.16 Basic ECC
    Version som används: 3.16 Basic ECC
    NSSSMIME
    Förväntad minimiversion: 3.16 Basic ECC
    Version som används: 3.16 Basic ECC
    NSSSSL
    Förväntad minimiversion: 3.16 Basic ECC
    Version som används: 3.16 Basic ECC
    NSSUTIL
    Förväntad minimiversion: 3.16
    Version som används: 3.16

    Many site issues can be caused by corrupt cookies or cache.<BR><BR>
    Clear the Cache<BR>
    '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''
    <BR><BR>and<BR><BR>
    Remove Cookies<BR>'''''Firefox/Tools > Options > Privacy.'''''<BR>
    Under '''History''', select Firefox will '''Use Custom Settings'''.<BR>
    There is a button on the right side called '''Show Cookies'''.<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Poke around safe web sites and see if there is still a problem. Then restart.
    <BR><BR><BR>
    This may or may not help you;<BR><BR>
    '''''[https://addons.mozilla.org/en-US/firefox/addon/nosquint/?src=external-Add-ons_Manager_Context_Menu-extension NoSquint]'''''<BR><BR>
    NoSquint allows you to adjust the text-only and full-page (both text and images) zoom levels as well as color settings both globally (for all sites) and per site.

Maybe you are looking for

  • Remove partition created in reformat/reinstall for A50

    So when I got my Toshiba Satellite A50, it had no partition I knew of, just a C drive with XP installed on it. But the disc that it came with for reformatting the hard drive and reinstalling XP is creating a partition! So this is not the original ins

  • Why mac pro shuts down when idle, even when charging ipad?

    why mac pro shuts off when idle, even while charging ipad?

  • Create new view within Report; use different data

    I am using Oracle OBIEE 11.1.x.x.x I have 2 existing views saved as separate reports. One is a Pivot; the other is a Table. Their data sources are unrelated. I want to be able to combine both views into one compound view within one report, so I can e

  • Sub-interfaces on PO

    Hi, I have put 2 physicl interfaces (te0/8 & 9) on the ASA-5585 into a PO and am assigning ips/vlans to the sub-interfaces. I have 2 issues: - Why am I not able to ping the other sub-interface from the ASA itself? (I can ping the 1st one), Secondly,

  • Net Manager vs Configuration Assistant

    Hi. What's are the common tasks, or otherwise the differences, between these two utilities? I know that both can be used to configure the listener, as well as adding service names. Is there a big advantage that Net Manager has over Configuration Assi