Normal pld,query pld

hello experts,
                     I dont know how to create normal pld and query pld . Anyone tell me step by step procedure of normal pld and query pld

Hi Perinba
for query pld you need to create your query and save it and select query manager -->select your query then click on the create report button on the bottom right. A create user report window will appear, click on the base template (User Report (System)) then click ok.
To modify the report double click the report name that you just created and that will give you your designer view.
For Normal pld select the document you want like marketing documents , e.g. PO then select pen icon next to the form settings icon , select the report and click edit report button.
you can also check this link
https://websmp209.sap-ag.de/smb/sbo/pld
Bongani Dlamini

Similar Messages

  • Normal SQL Query othern than Native

    Can we use normal SQL query in ABAP?
    if yes what are the various statements we have..

    Hi,
    Refer the select statement ..
    *Code to demonstrate select command
    *Code to demonstrate select into internal table command
    TYPES: BEGIN OF t_bkpf,
    include structure bkpf.
      bukrs LIKE bkpf-bukrs,
      belnr LIKE bkpf-belnr,
      gjahr LIKE bkpf-gjahr,
      bldat LIKE bkpf-bldat,
      monat LIKE bkpf-monat,
      budat LIKE bkpf-budat,
      xblnr LIKE bkpf-xblnr,
      awtyp LIKE bkpf-awtyp,
      awkey LIKE bkpf-awkey,
    END OF t_bkpf.
    DATA: it_bkpf TYPE STANDARD TABLE OF t_bkpf INITIAL SIZE 0,
          wa_bkpf TYPE t_bkpf.
    TYPES: BEGIN OF t_bseg,
    *include structure bseg.
      bukrs     LIKE bseg-bukrs,
      belnr     LIKE bseg-belnr,
      gjahr     LIKE bseg-gjahr,
      buzei     LIKE bseg-buzei,
      mwskz     LIKE bseg-mwskz,         "Tax code
      umsks     LIKE bseg-umsks,         "Special G/L transaction type
      prctr     LIKE bseg-prctr,         "Profit Centre
      hkont     LIKE bseg-hkont,         "G/L account
      xauto     LIKE bseg-xauto,
      koart     LIKE bseg-koart,
      dmbtr     LIKE bseg-dmbtr,
      mwart     LIKE bseg-mwart,
      hwbas     LIKE bseg-hwbas,
      aufnr     LIKE bseg-aufnr,
      projk     LIKE bseg-projk,
      shkzg     LIKE bseg-shkzg,
      kokrs     LIKE bseg-kokrs,
    END OF t_bseg.
    DATA: it_bseg TYPE STANDARD TABLE OF t_bseg INITIAL SIZE 0,
          wa_bseg TYPE t_bseg.
    *Select directly into an internal table
    SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
           dmbtr mwart hwbas aufnr projk shkzg kokrs
      FROM bseg
      INTO TABLE it_bseg.
    Select directly into an internal table where fields are in a
    different order or not all fields are specified
    SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
           dmbtr mwart hwbas aufnr projk shkzg kokrs
      FROM bseg
      INTO CORRESPONDING FIELDS OF TABLE it_bseg.
    *Select... endselect command
    SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
           dmbtr mwart hwbas aufnr projk shkzg kokrs
      FROM bseg
      INTO wa_bseg.
      APPEND wa_bseg TO it_bseg.
    ENDSELECT.
    *Select FOR ALL ENTRIES command
    SELECT bukrs belnr gjahr bldat monat budat xblnr awtyp awkey
      UP TO 100 ROWS
      FROM bkpf
      INTO TABLE it_bkpf.
    IF sy-subrc EQ 0.
    The FOR ALL ENTRIES comand only retrieves data which matches
    entries within a particular internal table.
      SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
             dmbtr mwart hwbas aufnr projk shkzg kokrs
        FROM bseg
        INTO TABLE it_bseg
        FOR ALL ENTRIES IN it_bkpf
        WHERE bukrs EQ it_bkpf-bukrs AND
              belnr EQ it_bkpf-belnr AND
              gjahr EQ it_bkpf-gjahr.
    ENDIF.
    Regards,
    Saran

  • Outgoing payment  PLD-for Bank transfer

    Hi all,
    i want to display bank name,branch,amount in row level if i am doing bank transfer.
    our normal pld dosn't display details for bank transfer.
    Regards,
    Chetan.

    Hi Chetan,
      Try to Query PLD to acheive your requirement
    Regards
    Jambulingam.P

  • Approver Name or Code in PLD

    Dear All
    PO is approved by 2 users and the final approver adds it in the system. I want to print Originator Name/Code in PLD of PO and final approver's Name/Code.
    Is it possible?
    Regards
    Nabeel Younus

    Dear Nabeel Younus,
    It is probably not achievable unless you make many links to the approval tables.  The link between PO tables and approval tables have very weak link.  You may need Query PLD to link them in a normal SQL query.
    Thanks,
    Gordon

  • Two Repetitive areas in one PLD

    Hi Experts
    I created a custom query and based on that i created a query print layout. Now in the PLD i have only one repetitive area, but i want to group this report first based on the account code and then based on the BP code and display the sub totals seperately.
    Can you all help me to complete this.
    Thanks & Regards
    Kanishka Wickrama

    Hi kanishka wickrama,
    Sorry Kanish, i thought normal PLD.
    Yes, you con not add the NEW Repetetive Area on QPLD. it is not possible on QPLD.
    so, try to assign the Sort by option.
    Note: All SELECT statement fields will be Stored and Display in Repetetive Area1. and
    Parameter Fields are in Repetetive Area0 so you can Try to Copy & Paste the Field_ID's to Repetetive Area Header (or) Repetetive Area Footer.
    for example.
    Try this,
    ->> Open the QPLD and Goto Field index Window, then
    ->> Select the Repetetive Area Header & Repetetive Area Footer increase the Height on Properties Window.
    ->> Create the Formula fields in Repetetive Area Header & Repetetive Area Footer.
    ->> Which Field you want to print in header or footer. Drag the Field ID(in Repetetive Area) Copy & Paste to Formula Field.
    ->> Select the Repetetive Area 1 on Field Index Window.
    ->> Goto the Print Layout Designer on Tool bar.
    ->> Click Repetetive Area. -> Sort...
    ->> Open the Sort Widnow and Select the Requrie fields by sort.
    ELSE Try this,
    ->> Click the Repetetive Area Footer 1.
    ->> then, Right Click in Repetetive Area Footer 1.
    ->> Choose the GROUP -> 1. then,
    ->> Create the Formula Fields in Repetetive Area Footer 1 and copy paste field ID's from Repetetive Area 1.
    ->> Select the Repetetive Area 1 on Field Index Window.
    ->> Goto the Print Layout Designer on Tool bar.
    ->> Click Repetetive Area. -> Sort...
    ->> Open the Sort Widnow and Select the Requrie fields by sort.
    Ex.
    ->> Select Field Name, Sort by, Order, Summary, New Page.
    1st you can Select Field Name (Sort by) -> Account Code, and
    2nd Select the  Field Name (Sort by) -> BP Code. and both are
    Sort Type - Alpha.
    Order -> Descending (or) Ascending.
    Summary -> Select the Tick Mark.
    New Page -> UnCheck the Tick Mark because if you need the second page Print of GROUP BY.
    You can select the Tick Mark in New Page.
    SAVE IT and see the Print Preview. it will be get exact Print. .
    Regards,
    Madhan.

  • Uppercase() in PLD?

    Hi experts,
    Is there anything function in PLD whereby it can allow us to turn a field completely into capital letters?
    I want to show sum in words in capital letters.
    Thank you.

    Hi Tou Lead Lim,
    Uppercase() is not possible in PLD so Try to Set Require Font in Amount in Words Field.
    Try this, Its working.
    Normal PLD Result
    ->> Open your PLD. Create 1 Formula Field and put Document Total Field_ID, then assign Sum in Words.
    Result - One Thousand Three Hundred and  Forty Indian Rupee
    Assign Capital
    ->>Open your PLD. Create 1 Formula Field and put Document Total Field_ID, then assign Sum in Words, then Assign Font.
    Ex.
    ->> Properties Area Window ->> Format -> Font
    Select Capital Font -
    1. Engravers MT,
    2. Felix Titling.
    3. Perpetua Titling MT.
    4. Showcard Gothic.
    Result - ONE THOUSAND THREE HUNDRED AND FORTY INDIAN RUPEE
    Regards,
    Madhan.

  • Normal query on cluster/pooled tables...

    Hi experts,
    Can i write a normal sql query on cluster or pooled tables?
    Will it create any sort of problem?
    Regards,
    Viswanathan .S

    Hi Viswanathan,
    It is not recommended to access them directly due to there size like tables BSEG, CDPOS.
    Report may run smooth on dev but will slow down as data increases in case of production server.
    There are alternative tables available for their substitution. Which table(s) are you trying to access anyways ?
    Regards,
    Naveen

  • Running a SQL Stored Procedure from Power Query with Dynamic Parameters

    Hi,
    I want to execute a stored procedure from Power Query with dynamic parameters.
    In normal process, query will look like below in Power Query. Here the value 'Dileep' is passed as a parameter value to SP.
        Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData 'Dileep'"]
    Now I want to pass the value dynamically taking from excel sheet. I can get the required excel cell value in a variable but unable to pass it to query.
        Name_Parameter = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
        Name_Value = Name_Parameter{0}[Value],
    I have tried like below but it is not working.
    Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData Name_Value"]
    Can anyone please help me with this issue.
    Thanks
    Dileep

    Hi,
    I got it. Below is the correct syntax.
    Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData '" & Name_Value & "'"]
    Thanks
    Dileep

  • Export in Query ready mode - Office 2010 not working

    Hello everyone,
    I am facing the following problem with Hyperion Financial Reporting:
    When I display a Financial Reporting report in Workspace and click on "Export in query ready mode", a new Excel session is launched with an empty sheet and nothing else happens. Eventually Internet explorer displays a message "The application hasn't started yet. Do you want to wait?" This cycle repeats forever unless I close the small IE window that popped up.
    We are using Windows 7 and Office 2010. The Smart View version is 11.1.1.3.500 (Build 008) and Workspace is version 11.1.1.3.0.956.
    Would be very grateful if anyone can help me solve this issue as this function is very useful.
    Thanks,
    Martin

    Alright,
    There is some development with this problem, but unfortunately another one arose.
    To solve the issue I had to disable the option "Protected mode" for the Internet Zone of Internet Explorer. Although the App server is on the local intranet, to launch Excel the web page uses the protocol oraclesv:// which appears to IE as "Internet" address.
    When I disabled protected mode, some of the reports started to open normally in query ready mode. Unfortunately for some other reports Excel crashes. I.e. I open the report in workspace and click "Export in Query ready mode". I see Excel open up and the cells are filled in with members, etc. but at some point Excel just crashes and restarts. This can be destructive if I am currently working in some file.
    And now the interesting part: I tried to find the reason why some of the reports are ok and some crash excel. It turned out that this depends on the amount of data in the report. For smaller reports (i.e. less than 50 rows) there is no problem, but for larger reports -> excel crashes.
    I hope this explanation is helpful for someone else, as it took me quite a while to find the problem.
    Martin

  • Navigation Attribut is not shown in two rows in the Query

    Hello,
    we are using a multiprovider with the infoobject 0material. In the multiprovider we use a navigation attribut MH_PR_ST of 0material.
    Normally, the query rows should show the material number and the corresponding attribut MH_PR_ST, but in some materials in the multiprovider exist some rows where the attribute is shown correctly from the master data table and in some rows the attribute is not shown.
    Therefore in the query two rows are shown:
    Material No. MH_PR_ST Key Figure
    4711           A                    10
    4711           #                       5
    Sum                                  15
    With all other navigation attributs there is only 1 row.
    Do you have any good ideas?
    Thank you very much + best regards,
    Ilona

    Hi,
    Assuming the second row comes from one of your basic cube; since it looks that 0MATERIAL is populated (it is coorectly identified), ensure that the identification of the nav 0MATERIAL__MH_PR_ST is done properly in your multiprovider.
    hope this helps...
    Olivier.

  • Query Hangs after adding new Indexes

    Hi Gurus,
    In order to fix some performance issues in the integration and UI, in our implementation we have added some new indexes like FST_NAME,LAST_NAME for S_CONTACT table.
    We did not make any new configurations or SRF compilations. No new data is loaded into database.
    But since today morning when we query in the application (Contact List Applet) the application simply hangs. We tried it with many sessions from different machines.
    We thought of, this could be because of some broken earlier data source connections within the task/session. But the query in other entities is working totally fine.We tried Accounts and Assets, they are working fine.
    We did a spool of SQL and executed the same statement in TOAD.It is strange, the statement is executed in just few milli seconds, as it was earlier.
    We could not find root cause.
    Could somebody give some ideas.
    Regards

    Hi Robert,
    In the Object Manager session log file I found the following trace after the SQL statement.
    T2.PR_EMP_ID = T11.PAR_ROW_ID (+) AND
    T25.PR_DEPT_OU_ID = T3.ROW_ID (+) AND
    T25.PR_DEPT_OU_ID = T21.PAR_ROW_ID (+) AND
    T25.PR_DEPT_OU_ID = T24.PAR_ROW_ID (+) AND
    T25.PR_SYNC_USER_ID = T10.ROW_ID (+) AND
    T25.PR_SYNC_USER_ID = T15.PAR_ROW_ID (+) AND
    (T25.EMP_FLG = 'N') AND
    (T25.PERSON_UID LIKE :3)
    ObjMgrSqlLog     Detail     4     0003f7324a41481b:0     2009-07-27 15:03:09     Bind variable 1: 0-5220
    ObjMgrSqlLog     Detail     4     0003f7324a41481b:0     2009-07-27 15:03:09     Bind variable 2: 0-5220
    ObjMgrSqlLog     Detail     4     0003f7324a41481b:0     2009-07-27 15:03:09     Bind variable 3: S1028056768*
    ObjMgrSqlLog     Debug     5     0003f7324a41481b:0     2009-07-27 15:03:09     User search spec: S1028056768*
    ObjMgrSqlLog     Debug     5     0003f7324a41481b:0     2009-07-27 15:03:09     Named search [Applet Search Spec Named Search]: [Employee Flag]='N'
    ObjMgrSqlLog     Debug     5     0003f7324a41481b:0     2009-07-27 15:03:09     User sort spec:
    ObjMgrSqlLog     Debug     5     0003f7324a41481b:0     2009-07-27 15:03:09     System sort spec:
    ObjMgrSqlLog     Debug     5     0003f7324a41481b:0     2009-07-27 15:03:09     0xf1fcf0f8: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWEFrame::ExecuteQuery()() +0xf8
    0xf1fcb62c: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWEFrame::DoInvokeMethod(const unsigned short*,CSSStringArray&,SSstring&)() +0x1ec
    0xf20b6c80: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWEFrameList::DoInvokeMethod(const unsigned short*,CSSStringArray&,SSstring&)() +0x280
    0xebcf0fbc: /siebel/siebsrvr/lib/libswcacmfr.so!unsigned CSSSWEFrameListBase::DoInvokeMethod(const unsigned short*,CSSStringArray&,SSstring&)() +0x77c
    0xe67e17e4: /siebel/siebsrvr/lib/libswfafcfr.so!unsigned CSSSWEFrameListFINGenericButton::DoInvokeMethod(const unsigned short*,CSSStringArray&,SSstring&)() +0x164
    0xf1fcb158: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWEFrame::InvokeMethod(const unsigned short*,CSSStringArray&,SSstring&)() +0x118
    0xf20e7750: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWEFrameMgrInternal::InvokeAppletMethod(CSSSWEHtmlStream*,CSSSWEArgs*,WWEReqModInfo*,WWECbInfo*&,CSSStringArray&)() +0xd90
    0xf20ca6cc: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWECmdProcessor::InvokeMethod(CSSSWEHtmlStream*,CSSSWEArgs*,WWEReqModInfo*,WWECbInfo*&)() +0x88c
    0xf20c8c7c: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWECmdProcessor::_ProcessCommand(CSSSWEHtmlStream*,WWEReqModInfo*,WWECbInfo*&)() +0x87c
    0xf20cea1c: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWECmdProcessor::ProcessCommand(CSSSWEGenericRequest*,CSSSWEGenericResponse*,WWEReqModInfo*&,WWECbInfo*&)() +0x9bc
    0xf20cddb8: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSSWECmdProcessor::ProcessCommand(CSSSWEHttpRequest*,CSSSWEHttpResponse*,WWECbInfo*&)() +0xd8
    0xf2321724: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSServiceSWEIface::Request(CSSSWEReqRec*,CSSSWEResponseRec*)() +0x404
    0xf231e3e0: /siebel/siebsrvr/lib/libsscaswbc.so!unsigned CSSServiceSWEIface::DoInvokeMethod(const unsigned short*,const CCFPropertySet&,CCFPropertySet&)() +0xa80
    0xf969b1a4: /siebel/siebsrvr/lib/libsscfom.so!unsigned CSSService::InvokeMethod(const unsigned short*,const CCFPropertySet&,CCFPropertySet&)() +0x244
    0xf9b616e4: /siebel/siebsrvr/lib/libsstcsiom.so!int CSSSIOMSession::ModInvokeSrvcMethod(const unsigned short*,const unsigned short*,const unsigned short*,SSstring&)() +0x124
    0xf9b6881c: /siebel/siebsrvr/lib/libsstcsiom.so!int CSSSIOMSession::RPCMiscModel(SISOMRPCCode,SISOMArgType,unsigned long,CSSSISOMRPCArgList*,CSSSISOMRPCArgList*,int&,void*)() +0x5bc
    0xf9b5efb8: /siebel/siebsrvr/lib/libsstcsiom.so!int CSSSIOMSession::HandleRPC(SISOMRPCCode,SISOMArgType,unsigned long,CSSSISOMRPCArgList*,CSSSISOMRPCArgList*,int&,void*)() +0xb98
    0xfa5144f8: /siebel/siebsrvr/lib/libsssasos.so!unsigned CSSClient::HandleOMRPC(CSSClientReq*)() +0x78
    0xfa511698: /siebel/siebsrvr/lib/libsssasos.so!unsigned CSSClient::HandleRequest(CSSClientReq*)() +0x2f8
    0xfa50c3e4: /siebel/siebsrvr/lib/libsssasos.so!unsigned _IsThreadPoolEnabled(const bool,const void*,bool&)() +0x8c4
    0xfa50d45c: /siebel/siebsrvr/lib/libsssasos.so!int SOMMTServer::SessionHandleMsg(smiSisReq*)() +0x1bc
    0x1ff7ac: /siebel/siebsrvr/bin/siebmtshmw!int smiMainThread::CompSessionHandleMsg(smiSisReq*)() +0x16c
    0x2237fc: /siebel/siebsrvr/bin/siebmtshmw!int smiMessageQ::ProcessMessage(smiMsgQItem*,long,int)() +0x93c
    0x2220c4: /siebel/siebsrvr/bin/siebmtshmw!int _smiMessageQ::ProcessRequest(void*,void*,void*&)() +0x244
    0x216774: /siebel/siebsrvr/bin/siebmtshmw!int _smiWorkQueue::ProcessWorkItem(void*,void*,void*&)() +0xd4
    0x2161e0: /siebel/siebsrvr/bin/siebmtshmw!int _smiWorkQueue::WorkerTask(void*)() +0x300
    0x20428c: /siebel/siebsrvr/bin/siebmtshmw!int
    It is stopped at the above line since a long time.
    And one more observation I made is.
    In the same applet for a normal other query, the working trace is as follows.
    0x2161e0: /siebel/siebsrvr/bin/siebmtshmw!int _smiWorkQueue::WorkerTask(void*)() +0x300
    0x20428c: /siebel/siebsrvr/bin/siebmtshmw!int SmiThrdEntryFunc(void*)() +0x46c
    0xfe75be88: /siebel/siebsrvr/lib/libsslcosd.so!void*OSDInstallHook(OSDHK,void*)() +0x2a8
    0xfe195730: /siebel/siebsrvr/mw/lib/libmfc400su.so!unsigned _AfxThreadEntry(void*)() +0x100
    0xfcdf1288: /siebel/siebsrvr/mw/lib/libkernel32.so!void MwThread(void*)() +0x23c
    0xfc8c4990: /lib/libc.so.1!_thr_slot_offset() +0x468
    ObjMgrSqlCursorLog     Prepare     5     00045fbb4a414cc9:0     2009-07-27 15:03:01     Begin: PrepareStmt for Sql Cursor at 9c30618
    ObjMgrSqlCursorLog     Prepare     5     00045fbb4a414cc9:0     2009-07-27 15:03:01     End: PrepareStatement for Sql Cursor at 9c30618
    ObjMgrSqlLog     Detail     4     00045fbb4a414cc9:0     2009-07-27 15:03:01     
    ***** SQL Statement Prepare Time for SQL Cursor with ID 9C30618: 0.002 seconds *****
    This statement is executed in within a second from UI applet.
    Please look into this.
    Edited by: user4619223 on Jul 27, 2009 3:05 PM

  • Query performance improvement using pipelined table function

    Hi,
    I have got two select queries one is like...
    select * from table
    another is using pielined table function
    select *
    from table(pipelined_function(cursor(select * from table)))
    which query will return result set more faster????????
    suggest methods for retrieving dataset more faster (using pipelined table function) than a normal select query.
    rgds
    somy

    Compare the performance between these solutions:
    create table big as select * from all_objects;
    First test the performance of a normal select statement:
    begin
      for r in (select * from big) loop
       null;
      end loop;
    end;
    /Second a pipelined function:
    create type rc_vars as object 
    (OWNER  VARCHAR2(30)
    ,OBJECT_NAME     VARCHAR2(30));
    create or replace type rc_vars_table as table of  rc_vars ;
    create or replace
    function rc_get_vars
    return rc_vars_table
    pipelined
    as
      cursor c_aobj
             is
             select owner, object_name
             from   big;
      l_aobj c_aobj%rowtype;
    begin
      for r_aobj in c_aobj loop
        pipe row(rc_vars(r_aobj.owner,r_aobj.object_name));
      end loop;
      return;
    end;
    /Test the performance of the pipelined function:
    begin
      for r in (select * from table(rc_get_vars)) loop
       null;
      end loop;
    end;
    /On my system the simple select-statement is 20 times faster.
    Correction: It is 10 times faster, not 20.
    Message was edited by:
    wateenmooiedag

  • Parenthesis within a select query.

    I have a doubt as whether i can include Parenthesis within a select query
    as below:-
    SELECT C.CITY_CODE,A.DOCUMENT_TYPE,SUM(A.INSTRUMENT_AMounT) FROM
    ppbs_RECEIPT_HEADER A,ppbs_DISTRIBUTOR_MASTER C WHERE
    A.DISTRIBUTOR_ID = C.DISTRIBUTOR_ID AND
    ( A.STATUS not in( 'CN','BO') or (A.STATUS ='CN' and a.INSTRUMENT_AMOUNT<>a.UNAPPLIED_AMOUNT))
    as we do in a If condition. Please help in solving the doubt as it is urgent.

    No, the result is correct, but is it correct to put the parenthesises around a condition in a normal select query as we do in a 'if' condition or a sub-query. Will the condition in the query be evaluated first and then the other conditions in the normal select query.

  • Why field length is shorter than the actual one in a SQL query based grid?

    Hi,
    I have a grid based on a SQL query on a UDO table, but I found when I retrieve the data from a SQL query some column show only part of data. For example, in SQL server the query should return one column data like "ABCD", but in the grid it only shows "A" or "AB". I think the SQL query should be good because when copy the same query executing in SQL server side, it returns me all complete data. But when it is executed in add-on inside a grid, then some column only returns me partial data. In most case it only return the first one or two characters. I don't see any special in the query. Basically it is normal SELECT query, the only possible special is it is using "UNION".
    The SQL query looks like below:
    SELECT fieldA, fieldB FROM table1
    UNION ALL
    SELECT fieldA, fieldB FROM table2
    When it is executed in SQL side, everything looks good, but when i run it in a grid in add-on then fieldB column only display partial data.
    Any idea?
    Thanks,
    Lan
    Edited by: ZHANGLAN on Oct 4, 2011 11:55 PM

    Hi All,
    Thanks for all your replies, I agree that the issue is caused by the UNION in SQL query. Because when i create a view in SQL based on that query and the grid is based on that SQL view then everything is fine now. I think Petr's solution should work in this case.
    Thank you again!
    Lan

  • Native sql query in sap

    Hi all,
    my open SQL query is like
    select matnr  matkl from mara into corresponding fields of table i_mara for all entries in i_marc
         where matnr = marc-matnr.
    can u plz tell me the native sql for the same query?
    Thanks.
    pabi

    hi,
    EXEC SQL PERFORMING form.
    Native SQL Anweisung
    ENDEXEC.
    EXEC SQL
    select matnr matkl from mara into corresponding fields of table i_mara for all entries in i_marc
    where matnr = marc-matnr.
    ENDEXEC.
    For further ref pls refer to link...
    Re: Normal SQL Query othern than Native
    Native SQL

Maybe you are looking for