Order by problem

hi all
i have to make a report that has group fields.
and i need to change order by of this query in runtime
query must be ordered by each field that user select in runtime.
if i use sql query for making this report and at the end of my
sql statement i use a lexical parameter for order by:
select ...
from ...
where ...
& order_parameter
but in runtime the order by part doesnt work.
i think about Creating a local query by Ref Cursor Query tool.
in select for ref cursor i couldnt use order by.
any idea would be appretiate.
regards
shoja.

Shoja,
For this purpose you can you lexical column name. For example:
if originaly you have:
Select Dept_no,
group_no,
emp_name,
Sal
FROM EMP_DEPT
and you have group for dept_no and group_no columns. if User want to sort by dept_no, group_no, and emp_name.
You can use
you can define user_parameters Col1 to col3. Make sure the datatype for these is Character and also these are assigned some initial values like...Dept_no, group_no etc.
in data model define you sql as:
Select &col1 sort_col1,
&col2 sort_col2,
&col3 sort_col3,
Dept_no,
group_no,
emp_name,
Sal
FROM EMP_DEPT
No in AfterParameterForm trigger you can assign any value to these parameters for example:
you can say :col1 := 'group_no';
:col2 := 'dept_no';
:col3 := 'emp_no';
Also make sure that only these columns have sort property set. i.e. only these columns col1 to col3 have a blue arrow in front of them in data model.
You can arrange these in any groups and also put other columns in the groups.
This will enable you dynamically sort/group/break on any column.
Let me know if you still have problems..
Brinder Lally

Similar Messages

  • Post Moved Order installation problem

    Post Moved to Phones Board http://community.bt.com/t5/Phones/Order-installation-problem/td-p/558275
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    you need to phone sales on 0800800150 and ask them what is happening
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • Sale order change problem.-Variant configration

    Dear All,
    After  sale  order  configration and  material transfered  to  sale  order  stock ,  then when i  trying  to  change   mode  in  sale  order  i  am  getting  the  error  "Internal error in communication between  configuration and sales doc.GET_CONFIG_MODE"
    Please  give  the  correct  solution    above  problem
    Regards
    SVR
    Edited by: sunitha p on Apr 30, 2008 9:24 AM

    closed

  • Best Program(s) & Order for Problem (Kernel Panic on Start-Up)?

    I started off the problems trying to open a file in Pages ('08). Tried different files and such to try and get it to work, but didn't work. I restarted into single-user mode to boot Applejack to see if my disk had errors again (a previous run had fixed the ones it found).
    However, upon booting into it, it hung and after a while was still stuck at the same part of loading (some messages talking about errors). I turned off the power and then turned it back on, but when I got to the boot screen, my Mac kernel panicked, and it continued to do this.
    I then tried booting into my OS CD, and although Disk Utility repaired permissions, it ran into errors along these lines:
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Checking multi-linked files.
    <<sibling link error something or other>>
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    Volume needs repair
    So I figured a third-party tool would probably be more of a help. Looked at info about Data Rescue II, TechTool Pro, and DiskWarrior. Would any of those be a help for me? My primary concern is backing up the data on the drive (I have an external drive which functions fine, and enough free space, just no back-up because I figured Apple wouldn't push Leopard back), and after that getting the drive/computer to work, both if possible. Should I use more than one, and is there any particular order that would be necessary? Or would I be better off with doing something else?
    (and this is fresh off the heels of a new battery for those random shutdowns, too...)

    I am in the same boat. I have just spent half the day researching what is going on with my machine.
    I am getting the Kernal Panic screen on startup. Booted up from the Install disk and ran Disk Utility and came across the Invalid Sibling Link, and that the Volume needs to be repaired.
    I had backup of my hard drive scheduled for tomorrow but now this has happened. I am curious as to how I can retrieve the information safely to back it up to a different drive AND figure out how to solve this problem.
    Is Disk Warrior going to do the trick? And if so, can I still retrieve the information off of it?

  • Process order creation problem

    I am creating a process order . while creating the process order system is throwing error as Auto batch numbering not set up for material type XXXX in plant xxxx . System is not allowing to create process order.
    How to resolve the issue.

    Check in CORW   and switch off batch creation  to isolate the problem if needed.   Also see whether you have any batch managed compoents   for which you have set master data for automatic batch determination.
    There is no setting for material types and plant for batch.  May be the error message is not correct.  What is the message number?

  • Service order creation problem

    Hi Experts, I have a requirement to create a Service order using a BAPI. I'm trying to use the BAPI BAPI_BUSPROCESSND_CREATEMULTI. I found some code related to this BAPI on this forum . THE service order is created
    but ibase / component is not filled . How can i give the Ibase through the bapi and in which parameter of the bapi i have to fil this. Could anyone please help me figure out what the problem is .  my code is as follows.

    Please find the code current thread and below thread.
    FUNCTION ZBAPI_SERVICE_SORDER2.
    DATA :  IS_HEADER            TYPE TABLE OF      BAPIBUS20001_HEADER_INS,
            WA_HDR               TYPE               BAPIBUS20001_HEADER_INS,
            IS_ITEM              TYPE TABLE OF     BAPIBUS20001_ITEM,
            WA_ITEM              TYPE               BAPIBUS20001_ITEM,
           IT_ACTIVITY             TYPE TABLE OF      BAPIBUS20001_ACTIVITY_INS,
           WA_ACTIVITY           TYPE               BAPIBUS20001_ACTIVITY_INS,
            IT_PARTNER             TYPE TABLE OF      BAPIBUS20001_PARTNER_INS,
            WA_PARTNER           TYPE               BAPIBUS20001_PARTNER_INS,
            IT_SALES             TYPE TABLE OF      BAPIBUS20001_SALES,
            WA_SALES             TYPE               BAPIBUS20001_SALES,
            IT_ORG             TYPE TABLE OF      BAPIBUS20001_ORGMAN_INS,
            WA_ORG               TYPE               BAPIBUS20001_ORGMAN_INS,
            IT_PRICING             TYPE TABLE OF      BAPIBUS20001_PRICING,
            WA_PRICING           TYPE               BAPIBUS20001_PRICING,
            IT_SERVICE           TYPE TABLE OF      BAPIBUS20001_SERVICE_OS_INS,
            WA_SERVICE           TYPE               BAPIBUS20001_SERVICE_OS_INS,
            IT_RETURN              TYPE TABLE OF     BAPIRET2,
            WA_RET               TYPE               BAPIRET2,
            IT_PROD             TYPE TABLE OF      BAPIBUS20001_PRODUCT,
            WA_PROD              TYPE               BAPIBUS20001_PRODUCT,"PROCESS_QTY_UNIT -EA
    *        IT_SCHED             TYPE TABLE OF     BAPIBUS20001_SCHEDLIN, "QUANTITY
    *        WA_SCHED             TYPE              BAPIBUS20001_SCHEDLIN,
            IT_SCHEDLINEs         TYPE TABLE OF     BAPIBUS20001_SCHEDLIN,
            WA_SCHEDLINEs         TYPE              BAPIBUS20001_SCHEDLIN,
            lv_partner_fct1      TYPE               crmt_partner_fct,
            lv_partner_fct2      TYPE               crmt_partner_fct,
            lv_partner_fct3      TYPE               crmt_partner_fct,
            lv_partner_fct4      TYPE               crmt_partner_fct,
            LV_HANDLE            TYPE               CRMT_PRP_HANDLE,
            t_object_to_save     TYPE               crmt_object_guid_tab,
            IT_OBJECT_TO_SAVE    TYPE TABLE OF      crmt_object_guid_tab,
            ts_object            type               CRMT_OBJECT_GUID,
            It1_object_to_save   TYPE TABLE OF      BAPIBUS20001_GUID_DIS,
            W_OBJECT_TO_SAVE     TYPE               BAPIBUS20001_GUID_DIS,
            LV_LOG_HANDLE        TYPE               BALLOGHNDL,
            IT_RETURN1              TYPE TABLE OF     BAPIRET2,
            it_saved_objects     type             crmt_return_objects,
            t_exceptions         type              CRMT_EXCEPTION_T,
            t_objects_not_saved  type              CRMT_OBJECT_GUID_TAB,
            WA_INPUT_FIELDS      TYPE              BAPIBUS20001_INPUT_FIELDS,
            IT_INPUT_FIELDS      TYPE TABLE OF     BAPIBUS20001_INPUT_FIELDS,
            ITAB_CREATED_PROCESS TYPE STANDARD TABLE OF BAPIBUS20001_HEADER_INS,
            WA_CREATED_PROCESS   TYPE              BAPIBUS20001_HEADER_INS,
            IT_OBJECTS           TYPE TABLE OF     BAPIBUS20001_OBJECTS,
            WA_OBJECTS           TYPE              BAPIBUS20001_OBJECTS.
    DATA:   CV_LOG_HANDLE        TYPE              BALLOGHNDL,
            i_saved_objects      type table of     BAPIBUS20001_OBJECT_ID,
            IT_RET2              TYPE TABLE OF     BAPIRET2,
            WA_SAVed_objects     type BAPIBUS20001_OBJECT_ID,
            g_objnr              type CRMT_OBJECT_ID.
    DATA :
            LV_GUID1   TYPE       GUID_32,
            LV_GUID2   TYPE       GUID_32,
            LV_GUID3   TYPE       GUID_32,
            V_OBJNR22  TYPE       IBIN-OBJNR,
            V_GUID16     TYPE       COMT_PRODUCT_GUID,
            V_OBJID    TYPE       COMT_PRODUCT_ID.
    *************HEADER-GUID**********
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       =  LV_GUID1.
    ***********ITEM-GUID************
    CALL FUNCTION 'GUID_CREATE'
    IMPORTING
       EV_GUID_32       = LV_GUID2
    *********SCHEDULELINE********
      CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          EV_GUID_32       = LV_GUID3
    ************DATA IN HEADER**********
    WA_HDR-GUID = LV_GUID1.
    WA_HDR-PROCESS_TYPE = 'YESV'.
    WA_HDR-DESCRIPTION = PROCESS_DESCRIPTION.
    APPEND WA_HDR TO IS_HEADER.
    *************** INPUT FIELDS HEADER**************
    CLEAR WA_INPUT_FIELDS.
    CLEAR IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_H'.
    WA_INPUT_FIELDS-FIELDNAME = 'GUID'.
    wa_input_fields-fieldname = 'MODE'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_H'.
    WA_INPUT_FIELDS-FIELDNAME = 'PROCESS_TYPE'.
    APPEND  WA_INPUT_FIELDS TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_H'.
    WA_INPUT_FIELDS-FIELDNAME = 'DESCRIPTION '.
    APPEND  WA_INPUT_FIELDS TO IT_INPUT_FIELDS.
    ************DATA IN ITEM**********
    WA_ITEM-GUID  = LV_GUID2.
    WA_ITEM-HEADER  = LV_GUID1.
    WA_ITEM-ORDERED_PROD = PRODUCT.
    WA_ITEM-DESCRIPTION = PROD_DESCRIPTION.  "product name
    WA_ITEM-ITM_LANGUAGE = 'EN'.
    WA_ITEM-ITM_TYPE = ITEM_CAT.
    WA_ITEM-NUMBER_INT = ITEM_NO.
    WA_ITEM-MODE = 'A'.
    INSERT WA_ITEM  INTO TABLE IS_ITEM.
    *******INPUT FIELDS ITEM*****************
    CLEAR WA_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID2.
    WA_INPUT_FIELDS-REF_KIND = 'B'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_I'.
    WA_INPUT_FIELDS-FIELDNAME = 'ORDERED_PROD'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID2.
    WA_INPUT_FIELDS-REF_KIND = 'B'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_I'.
    WA_INPUT_FIELDS-FIELDNAME = 'DESCRIPTION '.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID2.
    WA_INPUT_FIELDS-REF_KIND = 'B'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_I'.
    WA_INPUT_FIELDS-FIELDNAME = 'ITM_LANGUAGE'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID2.
    WA_INPUT_FIELDS-REF_KIND = 'B'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_I'.
    WA_INPUT_FIELDS-FIELDNAME = 'ITM_TYPE'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID2.
    WA_INPUT_FIELDS-REF_KIND = 'B'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_I'.
    WA_INPUT_FIELDS-FIELDNAME = 'NUMBER_INT'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    ************DATA IN ACTIVITY**********
    WA_ACTIVITY-REF_GUID = LV_GUID1.
    WA_ACTIVITY-PRIORITY = PRIORITY.
    APPEND WA_ACTIVITY TO IT_ACTIVITY.
    *************INPUT FIELDS SALES*************
    CLEAR WA_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'C'.
    WA_INPUT_FIELDS-OBJECTNAME = 'ACTIVITY_H'.
    WA_INPUT_FIELDS-FIELDNAME = ' PRIORITY'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    ************DATA IN SALES**********
    WA_SALES-REF_GUID = LV_GUID1.
    WA_SALES-PO_NUMBER_SOLD = SOLD_T0_PARTY.
    wa_sales-ref_kind = 'A'.
    APPEND WA_SALES TO It_SALES.
    *************INPUT FIELDS SALES*************
    CLEAR WA_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'E'.
    WA_INPUT_FIELDS-OBJECTNAME = 'SALES'.
    WA_INPUT_FIELDS-FIELDNAME = 'PO_NUMBER_SOLD'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    ************DATA IN PARTNER *********
    WA_PARTNER-REF_GUID    = LV_GUID1.
    WA_PARTNER-REF_KIND    = 'A'.
    WA_PARTNER-PARTNER_FCT = '00000001'.
    WA_PARTNER-PARTNER_NO  =  SOLD_T0_PARTY .
    wa_partner-ref_partner_handle = '0001'.
    wa_partner-display_type = 'BP'.    "Business Partner Number
    wa_partner-no_type = 'BP'.        "Business Partner Number
    wa_partner-kind_of_entry = 'C'.  "entered manually
    APPEND WA_PARTNER TO IT_PARTNER.
    WA_PARTNER-REF_GUID    = LV_GUID1.
    WA_PARTNER-REF_KIND    = 'A'.
    WA_PARTNER-PARTNER_FCT = '00000014'.
    WA_PARTNER-PARTNER_NO  =  EMPLOYEE_RESPONSIBLE .
    wa_partner-ref_partner_handle = '0001'.
    wa_partner-display_type = 'BP'.    "Business Partner Number
    wa_partner-no_type = 'BP'.        "Business Partner Number
    wa_partner-kind_of_entry = 'C'.  "entered manually
    APPEND WA_PARTNER TO IT_PARTNER.
    WA_PARTNER-REF_GUID    = LV_GUID1.
    WA_PARTNER-REF_KIND    = 'A'.
    WA_PARTNER-PARTNER_FCT = '00000056'.
    WA_PARTNER-PARTNER_NO  =  SERVICE_EMPLOYEE_GROUP.
    wa_partner-ref_partner_handle = '0001'.
    wa_partner-display_type = 'BP'.    "Business Partner Number
    wa_partner-no_type = 'BP'.        "Business Partner Number
    wa_partner-kind_of_entry = 'C'.  "entered manually
    APPEND WA_PARTNER TO IT_PARTNER.
    WA_PARTNER-REF_GUID    = LV_GUID1.
    WA_PARTNER-REF_KIND    = 'A'.
    WA_PARTNER-PARTNER_FCT = '00000003'.
    WA_PARTNER-PARTNER_NO  =  BILL_TO_PARTY.
    wa_partner-ref_partner_handle = '0001'.
    wa_partner-display_type = 'BP'.    "Business Partner Number
    wa_partner-no_type = 'BP'.        "Business Partner Number
    wa_partner-kind_of_entry = 'C'.  "entered manually
    APPEND WA_PARTNER TO IT_PARTNER.
    *INPUT FIELDS PARTENER
    CLEAR WA_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'PARTNER'.
    WA_INPUT_FIELDS-FIELDNAME = 'PARTNER_FCT'.
    wa_input_fields-logical_key = '0001'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'PARTNER'.
    WA_INPUT_FIELDS-FIELDNAME = 'PARTNER_NO '.
    wa_input_fields-logical_key = '0001'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'PARTNER'.
    WA_INPUT_FIELDS-FIELDNAME = 'PARTNER_FCT'.
    wa_input_fields-logical_key = '0001'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'PARTNER'.
    WA_INPUT_FIELDS-FIELDNAME = 'PARTNER_NO '.
    wa_input_fields-logical_key = '0001'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'PARTNER'.
    WA_INPUT_FIELDS-FIELDNAME = 'PARTNER_FCT'.
    wa_input_fields-logical_key = '0001'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'PARTNER'.
    WA_INPUT_FIELDS-FIELDNAME = 'PARTNER_NO '.
    wa_input_fields-logical_key = '0001'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'PARTNER'.
    WA_INPUT_FIELDS-FIELDNAME = 'PARTNER_FCT'.
    wa_input_fields-logical_key = '0001'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    WA_INPUT_FIELDS-REF_GUID = LV_GUID1.
    WA_INPUT_FIELDS-REF_KIND = 'A'.
    WA_INPUT_FIELDS-OBJECTNAME = 'PARTNER'.
    WA_INPUT_FIELDS-FIELDNAME = 'PARTNER_NO '.
    wa_input_fields-logical_key = '0001'.
    APPEND  WA_INPUT_FIELDS  TO IT_INPUT_FIELDS.
    wa_input_fields-ref_guid = lv_guid1.
    wa_input_fields-ref_kind = 'A'.
    wa_input_fields-objectname = 'PARTNER'.
    wa_input_fields-fieldname = 'KIND_OF_ENTRY '.
    wa_input_fields-logical_key = '0001'.
    APPEND wa_input_fields TO it_input_fields.
    wa_input_fields-ref_guid = lv_guid1.
    wa_input_fields-ref_kind = 'A'.
    wa_input_fields-objectname = 'PARTNER'.
    wa_input_fields-fieldname = 'NO_TYPE '.
    wa_input_fields-logical_key = '0001'.
    APPEND wa_input_fields TO it_input_fields.
    wa_input_fields-ref_guid = lv_guid1.
    wa_input_fields-ref_kind = 'A'.
    wa_input_fields-objectname = 'PARTNER'.
    wa_input_fields-fieldname = 'DISPLAY_TYPE '.
    wa_input_fields-logical_key = '0001'.
    APPEND wa_input_fields TO it_input_fields.
    as follows.
    please find below thread.
    Edited by: venkatrao veeramaneni on Nov 4, 2011 3:54 PM
    Edited by: venkatrao veeramaneni on Nov 4, 2011 3:57 PM

  • Purchase Order Printout Problem

    Hi Everyone,
                    Purchase Order print out is coming in one Laser jet printer and not coming in another laser jet printer.
    1st printer is a Network printer so configured like this:Access method: C and host printer and host name given since it is configured in our SAP Server.
    2nd printer is connected to a Notebook so, Device type: SAPWINJP, Access Method:F, and host path given.
    Normal SAP Printout is coming but only Purchase order designed for Laserjet is not coming. I checked with Document type and all. No default printer assignment is given.
    I have assigned this as a Default Printer in SU01.this is for your information. Error Msg im getting is here:
    (6:26:17 PM) Number of processors: 2
    (6:26:17 PM) Icon DLL loaded.
    (6:26:17 PM)
    (6:26:17 PM) Network Communication via SAP-NiLib
    (6:26:17 PM) Hostname: siva
    (6:26:17 PM) IP Address: 12546920.2089886680.32.1223880
    (6:26:17 PM)
    (6:26:17 PM) SAPLPD Version 6.28 for Windows/NT (OPT) is listening
    (6:26:17 PM) OS-Info: version = 5.1, build = 0/2600, text = Service Pack 2
    (6:26:17 PM) Copyright © 1992-2001 SAP AG
    (6:26:17 PM)
    (6:26:26 PM)
    (6:26:26 PM) Receive job for printer
    192.168.255.63HP_M1319 (Berkeley LPD protocol / RFC1179)
    (6:26:26 PM) send_status called
    (6:26:26 PM) send_status called
    (6:26:26 PM) send_status called
    (6:26:26 PM) send_status called
    (6:26:26 PM) send_status called
    (6:26:26 PM) Job 000000262500001.DEV for user BS2PRAKA queued.
    (6:26:26 PM) Start printing job 000000262500001.DEV on printer
    192.168.255.63HP_M1319
    (6:26:27 PM) Error: Cannot create Printer Context, text = Overlapped I/O operation is in progress.
    (6:26:27 PM) Error: The printer
    192.168.255.63HP_M1319 is unknown to Windows Print Manager.
    (6:26:27 PM) The following printers are currently defined:
    (6:26:27 PM) Printer = HP LJ P3005
    (6:26:27 PM) Warning: Printer name contains spaces.
    (6:26:27 PM) Please rename printer, before using it from R/3 or UNIX!
    (6:26:27 PM) Printer =
    ANILHPHP_ M1319
    (6:26:27 PM) Warning: Printer name contains spaces.
    (6:26:27 PM) Please rename printer, before using it from R/3 or UNIX!
    (6:26:27 PM) Printer =
    KAVITHAHP OFFICEJET 4300 SERIES
    (6:26:27 PM) Warning: Printer name contains spaces.
    (6:26:27 PM) Please rename printer, before using it from R/3 or UNIX!
    (6:26:27 PM) Printer =
    SURESHHPHP LASERJET M1319F MFP
    (6:26:27 PM) Warning: Printer name contains spaces.
    (6:26:27 PM) Please rename printer, before using it from R/3 or UNIX!
    (6:26:27 PM) Printer =
    VARALAKSHMIEPS_VARAL
    (6:26:27 PM) Printer =
    VARALAKSHMIXEROX PHASER 3116
    (6:26:27 PM) Warning: Printer name contains spaces.
    (6:26:27 PM) Please rename printer, before using it from R/3 or UNIX!
    (6:26:27 PM) Printer =
    VIJAYKUMARHP OFFICEJET 4300 SERIES
    (6:26:27 PM) Warning: Printer name contains spaces.
    (6:26:27 PM) Please rename printer, before using it from R/3 or UNIX!
    (6:26:27 PM) Error: BG: saplpd_open_dc failed, msg = 808 SAPLPD:Windows Problem, siehe SAPLPD Protokoll
    Here, 
    192.168.255.63HP_M1319 this is the Machine IP and its printer available in the LAN. Its been shared and marked as default in my Desktop.
    Please give solution for this
    Regards,
    Siva

    somebody could help in this issue?

  • Purchase order create problem

    Hi Reiner,
    I am testing out a scenario with BAPI_PO_CREATE, encountered a few problems:
    1. Errors with Date field in some structures.
    --> I changed the date field name to ZDATE and that
        fixed it, I remember this was also a problem in
        Connector 1.0. I can only imagine that the Date
        name used clashes with some reserved system date
        field in VB.Net
    2. Purchase order schedule lines are being populated
       via structure BAPIEKET and into a table. I have
       declared a BAPIEKET structure and a table but i seem
       to have errors trying to even populate the first field
       of the BAPIEKET structure. The error is as follows:
    An unhandled exception of type 'System.NullReferenceException' occurred in <application>
    Additional information: Object reference not set to an instance of an object.
    The code is:
            Dim strPoItem_Schedules As BAPIEKET
            Dim tblPoItem_Schedules As New BAPIEKETTable
            'schedule lines
            strPoItem_Schedules.Po_Item = "00001"
            strPoItem_Schedules.Serial_No = "0001"
            strPoItem_Schedules.Deliv_Date = "20040407"
            strPoItem_Schedules.Quantity = CLng(1.0)
            tblPoItem_Schedules.Add(strPoItem_Schedules)
    Hope you can help coz I did the same with the PO line items table and it is fine...not sure why it is behaving like this for the PO SChedule lines.
    Cheers

    Reiner, no worries. I fixed it. My bad....careless, I  declared the BAPIEKET structure wrongly.
    Cheers

  • Purchase Order releated problem.........

    Hello friends,
             We are using SRM 5.0 ( ECS) . I am facing a problem when I am creating Purchase Order in SRM.  When I am clicking on Item tab getting u201CInternal TSKH error, session terminatedu201D  .   Previously it was working fine but now it is generating this error.
    Exception is
    1. The following error text was processed in the system SRD : Internal TSKH error, session terminated
    2. The error occurred on the application server srmdev_SRD_03 and in the work process 0 .
    3. The termination type was: TH_RES_FREE
    4. The ABAP call stack was:
    Form: GET_PRICING_PROCEDURE_INFO of program SAPLPRC_INT
    Function: PRC_INT_CREATE of program SAPLPRC_INT
    Function: PRC_INT_OPEN of program SAPLPRC_INT
    Function: PRC_PD_OPEN of program
    SAPLPRC_PRICING_API
    Form: PRC_LINK_READ of program SAPLBBP_PDPRC
    Function: BBP_PDPRC_GETDETAIL of program SAPLBBP_PDPRC
    Form: ITMPROC_F_GETDETAIL of program SAPLBBP_PDIGP
    Function: BBP_ITMPROC_GETDETAIL of program SAPLBBP_PDIGP
    Form: ITEM_F_GETDETAIL of program SAPLBBP_PDIAD
    Function: BBP_ITEM_GETDETAIL of program SAPLBBP_PDIAD
    I am not sure about this problem related with basis or Pricing procedure.  Even i am not getting any run time exception in ST22 . Please give me suggestions.
    Thanks in advance.
    abhijeet

    Please check your pricing conditions in SRM:
    SAP Implementation Guide
    ->Supplier Relationship Management
    ->SRM Server
    ->Cross-Application Basic Settings
    ->Pricing
    ->Check Technical and Customizing Settings for Conditions
    Check the below two option:
    Further Checks
          Simulation of Pricing with Manual Price
          Generation of Access Programs
    Regards
    Kathirvel

  • Order Deletion Problem

    Hello all...i've a strange situation...When a planner deletes an order in the past for a particular time bucket, the order gets deleted in this bucket but is added up to the next bucket. Does anyone know why this might happen??
    Thanks!
    NV

    one more point...this works perfectly for the future buckets and only for the past buckets we are facing this problem...this is in SCM 4.0
    Thanks!

  • Process order convertion problem

    Hi All
    When I am converting the Planned Order to Process Order I am getting a error message Not able to determine the consumption account.
    Can anybody tell me how this problem can be solved.
    Is there anything I have to do in customizing
    Rregards
    Dhananjay

    Hi Dhananjay,
    check your material is been assigned to valution class in accounting view in MM02
    if it is assigned then check GL account is given properly to that valution class.
    take help of MM and FI consultant
    Thanks
    Bala
    IF useful reward

  • Capturing line items in the routine-mail order sending problem

    Hi
    I am sending Sales Order Output to the Email.
    I have configured the output type Using Option 'External Send' Option.
    But the Problem is Whenever there are blocks for Sales Order Email Should not be send.
    1.    When there is a block in Sales Order Header, then no email should be sent.
    2.    Similary when there is a block Sales Order Item , then no email should be sent.
    There is some standard routine attached to Outputtype Procedures .
    First Condition we can met using routine, in the routine if the block is there , then no output will
    be triggered.
    But in the same routine we couldn't able to capture item level data to validate the second condition.
    If anybody is having the idea to validate second condition, Please help me.
    Thanks&Regards
    (YUGANDHAR.P)

    hi check this simple example which is sending the sales order email........
    TABLES: ekko.
    PARAMETERS: p_email   TYPE somlreci1-receiver .
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
          wa_ekpo TYPE t_ekpo.
    TYPES: BEGIN OF t_charekpo,
      ebeln(10) TYPE c,
      ebelp(5)  TYPE c,
      aedat(8)  TYPE c,
      matnr(18) TYPE c,
    END OF t_charekpo.
    DATA: wa_charekpo TYPE t_charekpo.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            w_cnt TYPE i,
            w_sent_all(1) TYPE c,
            w_doc_data LIKE sodocchgi1,
            gd_error    TYPE sy-subrc,
            gd_reciever TYPE sy-subrc.
    *START_OF_SELECTION
    START-OF-SELECTION.
      Retrieve sample data from table ekpo
      PERFORM data_retrieval.
      Populate table with detaisl to be entered into .xls file
      PERFORM build_xls_data_table.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Populate message body text
      perform populate_email_message_body.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_message
                                          it_attach
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'XLS'
                                          'filename'
                                 changing gd_error
                                          gd_reciever.
      Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM initiate_mail_execute_program.
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp aedat matnr
       UP TO 10 ROWS
        FROM ekpo
        INTO TABLE it_ekpo.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
          Build data table for .xls document
    FORM build_xls_data_table.
      data: ld_store(50) type c.  "Leading zeros
      CONSTANTS: con_cret(5) TYPE c VALUE '0D',  "OK for non Unicode
                 con_tab(5) TYPE c VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
       con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR' INTO it_attach SEPARATED BY con_tab.
      CONCATENATE con_cret it_attach  INTO it_attach.
      APPEND  it_attach.
      LOOP AT it_ekpo INTO wa_charekpo.
    *Modification to retain leading zeros
      inserts code for excell REPLACE command into ld_store
      =REPLACE("00100",1,5,"00100")
        concatenate '=REPLACE("' wa_charekpo-ebelp '",1,5,"'
                                 wa_charekpo-ebelp '")' into ld_store .
      concatenate ld_store into .xls file instead of actual value(ebelp)
        CONCATENATE wa_charekpo-ebeln ld_store  wa_charekpo-aedat wa_charekpo-matnr  INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables pit_message
                                              pit_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
           Populate message body text
    form populate_email_message_body.
      REFRESH it_message.
      it_message = 'Please find attached a list test ekpo records'.
      APPEND it_message.
    endform.           
    regards,
    venkat

  • Keys Out of Order - Startup Problems HELP!

    Hi
    I have an iMac G5 running OS10.4.5. It has the following problem:
    - Wont boot up off internal HD - I get flashing ? alternating with smily mac on folder icon
    I tried booting up on instal CD and running disk repair, get message "keys out of order" and can't repair disk
    tried reinstalling OS from original disks to do archive and reinstall - when it gets to point of asking about target disk, nothing happens, no disk icon - nothing, zippo - only option is "go back"
    tried booting in single-user mode - won't let me
    tried booting in Safe-mode - won't let me
    only option I can see now is scrub HD - but can't boot ext hd to do backup first
    any other suggestions? or just scrub it?
    please help - have desperate teenager who wants his computer back with all his music intact (not worried about homework of course!)
    thanks
    mel

    Keys out of Order is a fairly serious error. Probably the easiest way to fix it is to invest in Disk Warrior, which should be able to handle it with no problems.
    EDIT A free alternative if you have another machine available would be to boot from the other drive, copy over everything you want to keep and do an erase/install on the imac, but you will lose all the data on the imac. If you do this, I would check the Zero All Data Option on the erase tab.

  • Order by Problems

    Hi All,
    I am not able to use this statement in the PROMPTS SQL. I am getting a message saying "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 23003] Ordering by columns not in the select list is incompatible with the following: SELECT DISTINCT, UNION, INTERSECT, EXCEPT, or derived table parents. (HY000)". I have to use DISTINCT as there are few months that gets repeated and I do not wat that.
    select DISTINCT (EVALUATE('TO_CHAR(%1,%2)' as character(30),GL_PERIODS.end_date, 'MON-YY')) as A from MAIN_RPT order by GL_PERIODS.end_date.
    Here is the problem, if I order it by the selected column, like below, it works, but not giving me the desired output. As, I have changed it to Character, it sorts by alphabetical order, and produces a list like APR07, APR08, APR09 etc., but I need it as JAN07, FEB07, MAR07 .....
    select DISTINCT (EVALUATE('TO_CHAR(%1,%2)' as character(30),GL_PERIODS.end_date, 'MON-YY')) as A from MAIN_RPT order by A.
    Thank you.

    Hi,
    Use below syntax
    SELECT evaluate('to_char(%1,%2)' as character(30),GL_PERIODS.end_date,'MON-YY') ,
    rank(GL_PERIODS.end_date by evaluate('to_char(%1,%2)' as character(30),GL_PERIODS.end_date,'MON-YYYY') ) ,
    GL_PERIODS.end_date
    FROM MAIN_RPT
    where rank(Time.Date by evaluate('to_char(%1,%2)' as character(30),GL_PERIODS.end_date,'MON-YYYY') )=1 order by 3
    Thanks
    Sandeep
    Edited by: Sandeep Saini on 17-Aug-2010 18:39
    Edited by: Sandeep Saini on 17-Aug-2010 18:56

  • Order Version problem in session

    Following error is getting displayed while udpating the order:
    Saving order 804880053 failed because doing so would result in data being overwritten. Order data for your browser window was out of date. Please re-submit your changes for them to take effect.
    My order is getting update in CSC and after that again I'm updating my order in StoreSite, in that perticular scenario only this error is coming.
    I have also used below code before updating the order in store site:
    itemDesImpl = (ItemDescriptorImpl)rep.getItemDescriptor("order");
    itemDesImpl.removeItemFromCache(orderId);
    and
    oImpl.invalidateOrder();
    but It only removes cache data not session data and I think the problem is due to session data of order. If I would be able to remove order from session also, I guess I'm done with that error.
    As per my understanding below places order data exists:
    1. Session
    2. Cache
    3. Database
    Please help me out!

    Hai,
    I'm using VS2010 and SQL Server 2005.
    I have a problem in Session state.
    See below is my code,
    //View.aspx.cs
    //Here I assign a textbox value to session
    protected void btnEdit_Click(object sender, EventArgs e)
            Session["rollno"] = txtRollNo.Text;
                Response.Redirect("Edit.aspx");
    //Edit.aspx.cs
    //Here I assign a session value to textbox, which is stored in last page.
    protected void Page_Load(object sender, EventArgs e)
            txtRollNo.Enabled = false;
            txtRollNo.Text = Session["rollno"].ToString();
            getdata();
    public void getdata()
            SqlConnection con = new SqlConnection("Data Source=SERVICETEAM-PC;Initial Catalog=csc;User ID=sa;Password=kavi");
            con.Open();
            SqlCommand cmd = new SqlCommand("Select * from Csc where Roll_No='" + txtRollNo.Text + "'", con);
            SqlDataReader dr = cmd.ExecuteReader();
            if (dr.Read())
                txtName.Text = dr.GetString(1).ToString();
                txtAddress.Text = dr.GetString(2).ToString();
                txtMobileNo.Text = dr.GetString(3).ToString();
                txtYesNo.Text = dr.GetString(4).ToString();
    From the above code If I the Edit button, It will show an error like 
           

Maybe you are looking for

  • Lock up, BSOD, freezing, ad infinitum.

    Compaq SR5333WM Desktop Windows 7 (almost installed) last known error: STOP: Error 0x000008e No changes made before the error. tried to reinstall windows, failed. got a new hard drive and tried to install windows, failed. memtest checks out ok. canno

  • Please help with the Universal Dock issue!!!

    Hi, I recently purchased a universal dock for my iphone 3g. It works great. I just had one question. When my iphone is sitting on it for lets say 20 - 30 minutes. Then if i press the buttons on the remote. nothing happens! If I then press the home bu

  • Using packages breaks batch file

    Hi there, I wonder if anyone can help me here. I've been continuing work on somebody else's previous project, and everything is fine except for the batch file used to run the program from non development. I decided to use Eclipse to develop as oppose

  • AEBS and Vigor Router problem.  Can anyone help?

    I've a small home network running an Airport Extreme Base Station, An Airport Express, a 350GB disk and an ADSL modem. The only computer on the network is a MacBook Pro, although my iPod also connects through it. This worked flawlessly for the past 1

  • Imac 10.5 windows XP disk just ejects

    Giving up on getting Windows to work on my Mac. Tried VM Fusion and couldn't get install. Now with just Bootcamp I can do the partition (have removed and redone it several times) but when I put in my Windows disk it just grinds a while and spits out