Convert itab data into PDF & Grouping data in PDF

1. How to convert data in internal table into PDF
2. I need to group this data in pdf as below.
Assume, i have storage location & ebeln in my itab. So my pdf should haves recs as:
001         1000000000
              1000000001
              1000000002
              1000000003
002         1000000004
               1000000005
so on.... i.e. i should not repeat the value of LGORT in all the recs, if it is same.
Thanks
Kiran
Edited by: kiran dasari on Jun 13, 2009 11:07 AM

While writing the data to spool, using FM "RSPO_WRITE_SPOOLREQUEST"; clear the storage location..
Sort itab by lgort ebeln.
loop at itab into wa_itab.
  wa_itab1 = wa_itab.
  clear wa_itab1-lgort.
at new lgort.
   wa_itab1-lgort  = wa_itab-lgort.
endat.
call FM "RSPO_WRITE_SPOOLREQUEST" using WA_ITAB1.
endif.
Hope this will help.

Similar Messages

  • Convert the date into user default date formate

    I am wrinting a bdc and i want to convert the date into user default date farmate ..please suggust the functiom module should i use...

    actually by using dats or d type you can get the user specific date itself.
    but if u have different dates format that need to be converted to the user specific date then you can follow below procedure
    1. retrieve the user format from usr01
        SELECT SINGLE datfm
          INTO w_datfm
          FROM usr01
         WHERE bname EQ sy-uname.
    pass w_datfm to the below FM (4th import parameter)
    2. create Z - FM and retrieve the user secific date
    FUNCTION ZFXX_USER_SPECIFIC_DATE.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(IW_DAY) TYPE  CHAR2
    *"     VALUE(IW_MONTH) TYPE  CHAR2
    *"     VALUE(IW_YEAR) TYPE  CHAR4
    *"     VALUE(IW_DATFM) TYPE  USR01-DATFM
    *"  EXPORTING
    *"     VALUE(EW_USER_DATE) TYPE  CHAR0008
    *1  DD.MM.YYYY
    *2  MM/DD/YYYY
    *3  MM-DD-YYYY
    *4  YYYY.MM.DD
    *5  YYYY/MM/DD
    *6  YYYY-MM-DD
    CASE iw_datfm.
      when '1'.
        concatenate iw_day iw_month iw_year
               into ew_user_date.
      when '2'.
        concatenate iw_month iw_day iw_year
               into ew_user_date.
      when '3'.
        concatenate iw_month iw_day iw_year
               into ew_user_date.
      when '4'.
        concatenate iw_year iw_month iw_day
               into ew_user_date.
      when '5'.
        concatenate iw_year iw_month iw_day
               into ew_user_date.
      when '6'.
        concatenate iw_year iw_month iw_day
               into ew_user_date.
      when others.
        clear ew_user_date.
    endcase.
    ENDFUNCTION.

  • How to load Matrix report data into basic table data using ODI

    Hi,
    How to load Matrix report data into basic table data using oracle Data Integrator ?
    Requirement Description:
    Following is the matrix report data:
    JOB                       DEPT10                DEPT20 
    ANALYST                                           6000
    CLERK                   1300                     1900 Need to convert it into below format:
    JOB                             Dept                        Salary
    ANALYST                  DEPT10     
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        Thanks for your help in advance. Let me know if any further explanation is required.

    Your list seems to be a little restrictive, you can do a lot more with ODI procedures.
    If you create new procedure, and add a step. In the 'command on source' tab set you technology and schema as per your source database. Use the unpivot functionality as described in the link, please, rather than using 'SELECT *' use the appropriate column names and alias them for eg:
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    Then in your 'command on target' tab set the technology and schema to your target db, then put your INSERT statement for eg:
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    VALUES
    :job,
    :deptsal,
    :saledesc
    Therefore you are using bind variables from source to load data into target.
    Obviously if the source and target table are in the same database, then you can have it all in one statement in the 'command on target' as
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    also set the log counter as 'Insert' on the tab where your INSERT statement is, so you know how many rows you insert into the table.
    Hope this helps.
    BUT remember that this feature only came out in Oracle 11g.

  • Error while loading data into PSA from data source

    Hi Experts ,
    I am loading purchase order history data from standerd datasource 0SRM_TD_CF into PSA using infopackage.However,whenevr I run infopackage,the call monitor shows the status as yellow.I monitored the process for half an hour but it never ended.I have verified following things from my side.
    1.Checked whether datasource is properly replicated into BI system.
    2.Checked if source system contains data.
    3.Since i am loading transaction data,I have kept update as "initialize delta process"
    Please let me know whether I am missing anything.
    Regards,
    Mandar.

    Hi mandarha,
    Do the following steps
    1)Check the job log in source systems.
    2)Check the Data Source in RSA3(Extracter checker) on Source systems side.give DS name press enter then execute,If there is no issue with DS,it will give pop-up with records.If it has any errors first rectify it and then load it again.
    3)In details tab of IP,check whether extraction completed or not.
    4)Are you running the IP with option "Intialse with data trasfer" or "Without data transfer"
    If you running with data transfer and without data selection,usually it will take time based on the volume of historical data.(to find how many records it picks do the 2 step)
    Hope this helps
    Regards,
    Venkatesh.

  • Split the incoming data into multiple grouped output records

    I have three fields in the source, Student ID, Student name and Student Marks. I need to map the details in the destination, by grouping the data on the basis of marks obtained. Each time there's a new mark , the corresponding details of names and student
    ID is saved under the a new mark group that is created. how do i come about it when there are n number of new marks?

    for your scenario i used below xml as input,
    <ns0:Students xmlns:ns0="http://BTSTempProj.StudentDetailsIn">
      <Student>
        <StudentID>StudentID_0</StudentID>
        <StudnetName>StudnetName_0</StudnetName>
        <StudentMarks>10</StudentMarks>
      </Student>
      <Student>
        <StudentID>StudentID_0</StudentID>
        <StudnetName>StudnetName_0</StudnetName>
        <StudentMarks>20</StudentMarks>
      </Student>
      <Student>
        <StudentID>StudentID_0</StudentID>
        <StudnetName>StudnetName_0</StudnetName>
        <StudentMarks>10</StudentMarks>
      </Student> 
      <Student>
        <StudentID>StudentID_0</StudentID>
        <StudnetName>StudnetName_0</StudnetName>
        <StudentMarks>10</StudentMarks>
      </Student>
      <Student>
        <StudentID>StudentID_0</StudentID>
        <StudnetName>StudnetName_0</StudnetName>
        <StudentMarks>20</StudentMarks>
      </Student>
      <Student>
        <StudentID>StudentID_0</StudentID>
        <StudnetName>StudnetName_0</StudnetName>
        <StudentMarks>30</StudentMarks>
      </Student>   
    </ns0:Students>
    and here is the output, hope this is what you are looking for. 
    <ns0:Students xmlns:ns0="http://BTSTempProj.StudentDetailsOut">
    <StudentMarks>10</StudentMarks>
    <Student>
    <StudentName>StudnetName_0</StudentName>
    <StudentID>StudentID_0</StudentID>
    <StudentName>StudnetName_0</StudentName>
    <StudentID>StudentID_0</StudentID>
    <StudentName>StudnetName_0</StudentName>
    <StudentID>StudentID_0</StudentID>
    </Student>
    <StudentMarks>20</StudentMarks>
    <Student>
    <StudentName>StudnetName_0</StudentName>
    <StudentID>StudentID_0</StudentID>
    <StudentName>StudnetName_0</StudentName>
    <StudentID>StudentID_0</StudentID>
    </Student>
    <StudentMarks>30</StudentMarks>
    <Student>
    <StudentName>StudnetName_0</StudentName>
    <StudentID>StudentID_0</StudentID>
    </Student>
    </ns0:Students>
    Please find the below xslt which you can use, it is basically based on the Muenchian grouping suggested by Ashwin
    <?xml version="1.0" encoding="UTF-16"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var s0" version="1.0"
    xmlns:ns0="http://BTSTempProj.StudentDetailsOut" xmlns:s0="http://BTSTempProj.StudentDetailsIn">
      <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
      <xsl:template match="/">
        <xsl:apply-templates select="/s0:Students" />
      </xsl:template>
      <xsl:key name="groups" match="Student" use="StudentMarks"/>
      <xsl:template match="/s0:Students">
        <ns0:Students>
          <xsl:for-each select="Student[generate-id(.)=generate-id(key('groups',StudentMarks))]">
            <xsl:sort select="StudentMarks" order="ascending"/>
            <StudentMarks>
              <xsl:value-of select="StudentMarks/text()"/>
            </StudentMarks>    
            <Student>    
              <xsl:for-each select="key('groups',StudentMarks)">
                <StudentName>
                  <xsl:value-of select="StudnetName/text()"/>
                </StudentName>
                <StudentID>
                  <xsl:value-of select="StudentID/text()"/>
                </StudentID> 
                </xsl:for-each>
            </Student>
          </xsl:for-each>        
        </ns0:Students>
      </xsl:template>
    </xsl:stylesheet>
    Regards, Amit More

  • Copy Organization Data into People Group Field?

    Hi All,
    In Assignment screen,we have organization and business group fields.when i enter data in organization filed like 'India.Mum' same data needs to copy in business group field when i use tab.
    Is it possible through form personalization? If yes, please give me your suggestions:
    Thanks,
    Visu

    Yeah, it's very much possible using personalization. Just open the personalize screen, give a name to the personalization, choose trigger event as when-validate-record of the assignment block, put a condition when you would like it to fire, in the actions tab enter the details what should be done (in this case assign a value to a field).
    If you want the basic details about personalization, refer to the following metalink docs.
    279034.1 (most useful), 456407.1, 456407.1, 421010.1
    But I wonder why would you like to change the person's business group based upon his organization. Organization is always a subordinate of BG. Thus you can have many organizations under a BG. And in that case changing BG with Organization does not make sense.
    Make sure that your design is correct before going ahead.
    Thanks.

  • Data into various fields in a PDF Form

    Hi,
    I don't know whether this is the right place but I have been trying to figure out how to get different a field to change depending on the input of a different field. For example, the price price field being altered when the product field is changed. Similar to the 'if' formaula in an Excel Spreadsheet.
    Also, what is the maximum number of data fields you can have in a drop down box as I can not get more than 20?
    Thanks!!
    J

    Bingo!
    Cheers for that George - I didn't know about that option - I'd been everywhere in the field and tab order and been wracking my brain over the calculations - Sum(+) and Product(x) fields - I'd just assumed that the total given that it was the Sum(+) of 14 values would always be well... the total?
    Anyhow thanks for that.

  • How to group measurement data into different groups using TDMs

    Hi, frnds!
    I have designed a labview program for measuring the power current characteristics of a laser diode. I want to save the current and power arrays measured at different temperatures in different groups. I tried to implement this but I was not successful. The current and power measurements at different temperatures are being saved only in the first group and the rest are being empty! Please help me save the measurements in different temperature groups.
    I need this urgently!
    Thanks in advance!
    Kumar

    Perhaps a snippet of the code you are using would help. When you write to the TDMS file with the low level functions, you just need to specify the separate group names. Have you read over  the NI TDMS File Format, Introduction to LabVIEW TDM Streaming VIs, and Writing TDM and TDMS files articles? Have you tried any examples out of the Example Finder?
    As a basic example:
    Certified LabVIEW Developer

  • Data display - aligning group data and carry over on new page logic - 11G

    I am fairly new to BI Publisher, so any help would be much appreciated. I am working with a standard pdf form to display Purchase Order Data. I have saved the image of the pdf as the background of the page. I have a simple table where I am inserting all the data and aligning it on the page so it appears to be in the correct place on the form.
    The form has a section containing 10 blank lines to display the PO data. Each line is .25 inches.
    The problem occurs that at the line description can have 254 characters but the space on the line allows for 51 characters. So I need to display the data something like this (for simplicity sake)
    TableA.id TableA.Description254
    Line 1 1 Blah, 1-51 characters of line descr
    Line 2 Blah blah, 52 - 102 characters
    Line 3 2 Blah, 1-51 characters of line descr
    Line 4 3 Blah, 1-51 characters of line descr
    Line 5 Blah blah, 52 - 102 characters
    Line 6 Blah blah, 103 - 153 characters
    anything that carries over needs to go to a second page with a different background image. So I have several questions.
    1. Any suggestions on how to display the PO Line, so I can substring the PO line description and display the remaining data on a following line? A second line would write the next 51 characters of data if it exists, and would not display the first column, (TableA.Id)
    2. Any suggestions on how to load the carry over data (anything over the 10 lines on the first page) and display on the following page.
    I am including a screen shot so this might make more sense. I have lightly dashed orange lines showing of my table which I use for aligning the data. It is only for reference.
    [ http://www.fifthq.com/bi.jpg|Pdf image]
    http://www.fifthq.com/bi.jpg

    Ok, just in case anyone runs into the same issue. Here was my solution.
    I added a made up record to the existing xsd template that served as a place holder for my dynamic content.
    I created an app package that has two properties.
    1. Full String
    2. Single Line String
    The Method takes in the column width as a parameter. It searches through the Full String until it finds the last available word before the column width. It then returns that as the Single Line String and updates the Full String to what's remaining.
    If I have any of the Full String remaining I keep calling the method.
    I can provide more specific details about the method if anyone needs it.

  • Convert vector art into jpg when saving a pdf

    Hi everyone,
    I have a large pdf file consisting of text and graphics. The graphics are all vector art, ie. from Illustrator. I wondered if there was a way to save the pdf and at the same time convert all the vector art into low-res jpg or png files? Not as separate files, just remaining in the pdf.
    Appreciate any advice.

    No. However, you can restrict the printing to low-res images through the security settings.

  • Are there any  best practice templates available to load Customer Master data into ECC using data services?

    Hi,
    As far as I remember there are best practices templates (AIO). I am not able to find the location to download these atl files though.
    Thanks,
    Pramod

    Hi pramod did you reffered this document:
    http://help.sap.com/businessobject/product_guides/sboDS41/en/sbo41_ds_sap_en.pdf
    http://events.asug.com/2011AC/4103_Legacy_Data_Migration_to_SAP_ECC.pdf

  • How to append 2 xmltype data into 1 xmltype data

    example:
    DECLARE
    fullXmlDoc XMLType;
    _id XMLType;
    _se XMLType;
    _idse XMLType;
    BEGIN
    fullXmlDoc := XMLType.CREATEXML('
    <Resource>
    <identifier qualifier="http://www.oracle.bn/oraCell" value="ChuckTestData11"/>
    <title classification="T" ownerProducer="BLACK HOLE USA">Chucks Full Ora full ALG</title>
    <security classification="S" ownerProducer="BLACK HOLE USA"/>
    </Resource>');
    if( fullXmlDoc.existsnode('/Resource/identifier') = 1)
    then
    DBMS_OUTPUT.PUT_LINE('identifier element');
    _id := fullXmlDoc.extract( '/Resource/identifier');
    end if;
    DBMS_OUTPUT.PUT_LINE('security element');
    _se := fullXmlDoc.extract( '/Resource/security');
    idse := se.insertXMLbefore(_se, se, id);
    END;
    ORA-06550:
    PLS-00306: wrong number of types of arguments in call to "INSERTXMLBEFORE'
    ====
    I want to insert _id before _se and the result _idse should be :
    <identifier qualifier="http://www.oracle.bn/oraCell" value="ChuckTestData11"/>
    <security classification="S" ownerProducer="BLACK HOLE USA"/>
    as in xmltype

    INSERTXMLBEFORE(XMLTYPE_instance,XPath_string, value_expr)
    In your case :
    XMLTYPE_instance and XPath_string both look to be se which does not seem to be correct in first look .. please check the value of XPathstring
    Message was edited by:
    Gajanan Palsule

  • Is it possible to convert LabView data into OLE variant?

    Hi. I'm using Activex Data Objects (ADO) to communicate with MySQL. Some ActiveX methods give OLE variant output, with "Variant Type" like "VT_ARRAY|VT_UI1", "VT_UI1" or "VT_BSTR". With some deduction and trial and error is relatively simple to extract data from this OLE variants and convert them to LabView data types. The problem is when I try to input variant data to some ActiveX methods, it almost always give me errors, I suppose because it expects the same type of the outputs, this is: OLE variants. Now, the question is: ¿Is there any way to convert LabView data into OLE variant data? ¿How?
    I've been searching and found a lot of posts about problems when passing variant data into ActiveX, saying that sometimes SAFEARRAYs are needed, sometimes saying that there were some bugs in LV6, giving some workarounds to this bug and saying that it is fixed in LV7.1, but the supposed workarounds don't work and the bug is still present in LV7.1, if it is really a bug.
    I think that if I could put LV data into OLE variant shape I may find an answer and solution to this matter.
    Thank you
    Daniel R.
    UdeC - Chile

    Below I describe how to handle OLE Variants, but I wanted to mention that LabVIEW does have a Database Connectivity toolkit (http://sine.ni.com/nips/cds/view/p/lang/en/nid/6429) that has already created a set of VIs for ADO. You might check that out first.
    However, handling OLE Variants in LabVIEW is automatic. LabVIEW itself has a variant datatype. When you use the ActiveX property or invoke nodes and one of the parameters is an OLE Variant, it is automatically converted to a LV Variant. You can then use the LV Variant VIs (such as "Variant to Data" and "To Variant").
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Converting Flat File data into XML

    Hi Experts,
    Consider the message type of the SENDER system and flat file data
    <dt_sender>
    <root>
    <header1>   0..1
        <f1>
        <f2>
        <f3>
    <header2>   0..1
        <f4>
        <f5>
        <f6>
    <item>        1..unbounded
        <f7>
        <f8>
        <f9>
        <f10>
        <f11>
        <f12>
    </item>
    abc     def     ghi     jkl     mno     pqr
    123     123     123     123     123     123
    456     456      456     456     456     456
    how to convert the flat file data into following XML data. please note that each field value is separated by TAB delimeter...wht parameters shld b used
    <root>
        <Header1>
            <f1>abc</f1>
            <f2>def</f2>
            <f3>ghi</f3>
        </Header1>
        <Header2>
            <f4>jkl</f4>
            <f5>mno</f5>
            <f6>pqr</f6>
        </Header1>
        <item>
            <f7>123</f7>
            <f8>123</f8>
            <f9>123</f9>
            <f10>123</f10>
            <f11>123</f11>
            <f12>123</f12>
            <f7>456</f7>
            <f8>456</f8>
            <f9>456</f9>
            <f10>456</f10>
            <f11>456</f11>
            <f12>456</f12>
        </item>
    points will be given to the correct answers
    Thanks in advance.
    FAisal
    Edited by: Abdul Faisal on Feb 29, 2008 5:53 AM

    Faisal,
    When you read the multiple recordset strucutre file then each record in txt file should have an header from which you can identiy which segment it should go.. and you identiy it by using the keyfiledValue in file adapter
    <root>
    <header1> 0..1
    <f1>
    <f2>
    <f3>
    <header2> 0..1
    <f4>
    <f5>
    <f6>
    <item> 1..unbounded
    <f7>
    <f8>
    <f9>
    <f10>
    <f11>
    <f12>
    </item>
    for this input file
    abc def ghi jkl mno pqr
    123 123 123 123 123 123
    456 456 456 456 456 456
    abc def ghi can be read using the file adater to header 1 usinfg key field value, but using the same file adapter you cannt put GHI into header2.
    else you should read whole row abc def ghi jkl mno pqr in single filed and write an UDF to split data to header1 and Header 2
    similarly you have to take care for item records also
    if your inout file is something like this
    abc def ghi
    jkl mno pqr
    123 123 123 123 123 123
    456 456 456 456 456 456
    abc identifies to Header 1
    JKL for Header 2  so on...
    read the whole line in single field  and write UDF to Split to header 1 and header 2 similary for item.

  • Convert type dats to oracle type date

    Hi guys,
    I have abap field
    data: begin of itab occurs 0,
            dat type dats,
    end of itab.
    how can I convert abap field dat into oracle type DATE, so I can insert dat into that oracle field?
    thanks,
    nihad
    Edited by: nihad omerbegovic on Mar 25, 2009 5:47 PM

    Thanks for suggestion, now I got different error
    Database error text........: "ORA-01858: a non-numeric character was found
    where a numeric was expected#"             
    When I debugg I have some unxpected field values in internal table itab:
    DAT      USNAM        NOVI                                              
    X2009032|0NIHADOM     |                                                   
    X2009032|0NIHADOM     |                                                                               
    But, it should be like this
    DAT      USNAM        NOVI                                              
    20090320|NIHADOM     |X
    20090320|NIHADOM     |X       
    Any idea why I got indicator X in DAT field but it should be in NOVI. Is that why I got above error?
    Thnaks,
    Nihad

Maybe you are looking for