Abap2xlsx create worksheet how to set fields in header line without filtersymbol?

Hello Forum,
I am using a package of abap2xlsx (Excel Export ABAP 2 XLSX)   and some methods from zcl_excel classes to create a worksheet for internal table gt_table and download it.
Following is some Koding I am using,
When the excel worksheet is downloaded, the header line contains filter symbols in all header fields, when using method bind_table (see A:).
Is there a way to set the header line fields without a filtersymbol?
if I replace the call on method bind_table (see A:)  by call on method convert (see B:)
then there are no filtesymbols, but in this method I cannot give a fieldcatalog table as exporting parameter.
And I want to change the texts in the header.
Thanks for any suggestions,
Regards Henricus Kroft
DATA: lo_excel         TYPE REF TO zcl_excel,    
           lo_converter    TYPE REF TO zcl_excel_converter,
           lo_worksheet  TYPE REF TO zcl_excel_worksheet,
           lo_writer          TYPE REF TO zif_excel_writer,
Data:
gt_rawdata      TYPE solix_tab.
ls_table_set-table_style  = zcl_excel_table=>builtinstyle_light1.
   lo_worksheet = lo_excel->get_active_worksheet( ).
  A begin:   lo_worksheet->bind_table( ip_table    = gt_table
                          it_field_catalog  = lt_field_catalog
                          is_table_settings = ls_table_set ).
  A end
   B begin:   lo_converter->convert( EXPORTING
                                it_table     = gt_table
                                i_row_int    = 1
                                i_column_int = 1
                                io_worksheet = lo_worksheet
                             CHANGING
                                co_excel     = lo_excel ) .
B end
* " create output file in EXCEL format as type RAW
  lf_xdata = lo_writer->write_file( lo_excel ).
* After 6.40 via cl_bcs_convert
  gt_rawdata = cl_bcs_convert=>xstring_to_solix( iv_xstring  = lf_xdata ).
  lf_bytecount = xstrlen( lf_xdata ).
  OPEN DATASET gf_datn1_str FOR OUTPUT IN BINARY MODE.
  CHECK sy-subrc = 0.
  lf_bytes_left = lf_bytecount.
  LOOP AT gt_rawdata ASSIGNING <ls_rawdata>.
    AT LAST.
      CHECK lf_bytes_left >= 0.
      TRANSFER <ls_rawdata> TO gf_datn1_str LENGTH lf_bytes_left.
      EXIT.
    ENDAT.
    TRANSFER <ls_rawdata> TO gf_datn1_str.
    SUBTRACT 255 FROM lf_bytes_left.  " Solix hat Länge 255
  ENDLOOP.
  CLOSE DATASET gf_datn1_str.

Dear SeánMacGC thanks for reply,
But "a.changed" is not a field in GNMT_CUSTOMER_MASTER_CHG. what i am doing in this procedure is i am collecting bulck data and validating field by field from GNMT_CUSTOMER_MASTER_CHG with GNMT_CUSTOMER_MASTER table as their structure is same.. if v_name is not same as v_name_chg then i am setting changed flag to "Y" changed is "changed dbms_sql.varchar2_table" and updating GNMT_CUSTOMER_MASTER in bluck where changed flag ='Y'...
type custRec is record
n_cust_ref_no dbms_sql.number_table,
v_name dbms_sql.varchar2_table,
v_name_chg dbms_sql.varchar2_table,
rowid rowidArray,
*changed dbms_sql.varchar2_table*
i cannot use simple SQL as i need to validate field for each records with GNMT_CUSTOMER_MASTER_CHG and insert into log file as well.....
to run this procedure:
execute DO_DC_NAME_UPDATE_OTHER_TAB.DO_NAME_UPDATE_OTHER_TAB;
Thanks...

Similar Messages

  • How to set field type choice using csom (c#)

    I have a field type: Choice (menu to choose from) which is not multichoice. How do I set a value?
    I have found code for multiple choice but it doesn't seem to work for single choice.

    Hi,
    The following code snippet for your reference:
    newListItem["ChoiceFieldName"] = "ChoiceValue";
    newListItem.Update();
    clientContext.Load(newListItem);
    clientContext.ExecuteQuery();
    If you are assigning a Value which is not in the Choice Column, You need to create a choice value then assign it to the item.
    More information is here:
    http://sharepoint.stackexchange.com/questions/124999/how-to-set-field-type-choice-using-csom-c
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to set SAXParser at command-line interface to create a large XML file

    Hi,
    I am trying to create a large XML file (more than 50 MB) by selecting from Oracle database but failed because of "out of memory" error. According to "Oracle XML Developer Guide", we should use SAXParser to parsing a large XML file. But there is no example to show how to set SAXParser at command-line
    Following is what I use to get xml files. It works only when the file is small.
    java OracleXML getXML -DateFormat -withDTD -rowsetTag PO_HDR -conn
    "jdbc:oracle:oci8:@server_name" -user "ID/password" "select * from table_name"
    When I set SAXParser at the way below,
    java oracle.xml.parser.v2.SAXParser OracleXML getXML -DateFormat -withDTD -rowsetTag PO_HDR -conn
    "jdbc:oracle:oci8:@server_name" -user "ID/password" "select * from table_name"
    it failed with the error message: "In class oracle.xml.parser.v2.SAXParser: void main(String argv[]) is not defined"
    Does anyone know how to solve the problem? I'll be appreciated very much for your help.
    Yi

    here are my ideas.
    register the xml schema.
    using xmldom, generate the desired xml output and return as xmltype.
    then you can use something like this to check.
    declare
    xmldoc xmltype ;
    begin
       -- populate xmldoc from you xmldom function
       -- validate against XML schema
       xmldoc.isSchemaValid(schema_url, root_element);
       if xmldoc.isSchemaValid = 1 then
            --valid schema
       else
            --invalid
       end if;
    end

  • How to set field alignment in a table in jdev 11.1.2.3?

    hi,
    How to set field alignment in a table in jdev 11.1.2.3?
    eg: to diplay a number field in a table as right aligned.
    I have tried to set field(amount) VO UI Hint Format Type:Number; Format: 0000.00
    and jspx as flowing, but it doesnot work.
    Thanks.
    bao
    <af:column sortProperty="#{bindings.VO1.hints.Amount.name}"
    sortable="true"
    headerText="#{bindings.VO1.hints.Amount.label}"
    id="c44" width="60"
    align="center">
    <af:inputText value="#{row.bindings.Amount.inputValue}"
    label="#{bindings.VO1.hints.Amount.label}"
    required="#{bindings.VO1.hints.Amount.mandatory}"
    columns="#{bindings.VO1.hints.Amount.displayWidth}"
    maximumLength="#{bindings.VO1.hints.Amount.precision}"
    shortDesc="#{bindings.VO1.hints.Amount.tooltip}"
    id="it58"
    secret="false"
    inlineStyle="text-decoration:overline;">
    <f:validator binding="#{row.bindings.Amount.validator}"/>
    </af:inputText>
    </af:column>

    Works for me:
            <af:column sortProperty="#{bindings.EmployeesView1.hints.Salary.name}" sortable="false"
                       headerText="#{bindings.EmployeesView1.hints.Salary.label}" id="c7" align="right">
              <af:inputText value="#{row.bindings.Salary.inputValue}" label="#{bindings.EmployeesView1.hints.Salary.label}"
                            required="#{bindings.EmployeesView1.hints.Salary.mandatory}"
                            columns="#{bindings.EmployeesView1.hints.Salary.displayWidth}"
                            maximumLength="#{bindings.EmployeesView1.hints.Salary.precision}"
                            shortDesc="#{bindings.EmployeesView1.hints.Salary.tooltip}" id="it6">
                <f:validator binding="#{row.bindings.Salary.validator}"/>
              </af:inputText>
            </af:column>JDeveloper 11.1.2.3
    Salary is shown right-aligned.
    What happens if you get rid of your inlineStyle on the af:inputText

  • How to set field to blank if the data is # or unassigned

    hi experts,
    how to set field to blank if the data is # or unassigned?
    thx

    Hi
    add the following macro to your workbook (template workbook):
    Sub SAPBexonrefresh(qstring As String, resultArea As Range)
        For Each c In resultArea
            If LCase(c.Value) = "not assigned" Then c.Value = ""
           Next
    End Sub

  • How to set field value in workflow SPD2013?

    Hi All,
    how to set field value in workflow SPD2013? Actually using Infopath, i need to update a field value through workflow.(Little differnt from SPD2010). How to do this?

    As Amit says, some elaboration here would be good.  You can use InfoPath as a form for either a list or a library and then set it to trigger a workflow upon item creation.  The workflow will consist a number of actions, one of which is the Update
    Field Item.
    More information on the available steps can be seen here.
    http://msdn.microsoft.com/en-us/library/office/jj164026.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • HT2534 I followed the instructions on how to set up an Apple ID without using a creditcard or iTunes card many times on several devices, but I still do not get the NONE option on the billing page. Please help??

    I followed the instructions on how to set up an Apple ID without using a creditcard or iTunes card many times on several devices, but I still do not get the NONE option on the billing page. Please help??

    Follow the steps on this page when creating a new account http://support.apple.com/kb/HT2534
    e.g. if using a computer's iTunes : https://discussions.apple.com/message/24321860
    If you've already created an account and are being prompted to review it when trying to see it then you could see if this post by mountaingoatgirl lets you do so without needing to enter credit card details : https://discussions.apple.com/message/24303054

  • How to add/change missing header lines in RNIF B2B?

    Hi all,
    We are using RNIF exchange protocol. We have sent invoice from BPEL to B2B. The message invoice reaches the trading partner but they are unable to process it or sent ack back as few header lines are missing in the RNIF envelope.
    Can anyone tell me or provide some pointers abt how to add/change missing header lines in B2B?
    These are the headers missing:
    Delivery header:
    <locationID> <Value>HostTradingPartner</Value> </locationID>
    Service Header:
    <messageStandard>
    <FreeFormText xml:lang="EN">PIDX</FreeFormText>
    </messageStandard> <standardVersion>
    <VersionIdentifier>1.0</VersionIdentifier>
    </standardVersion>
    Can anyone provide some inputs on this?

    As per RNIF standard, all these header elements (locationID in Delivery Header & messageStandard and standardVersion in Service Header) are optional. As you are using RossettNet over RNIF, so Oracle B2B might not be setting these headers.
    I do not have a 10g setup here so cann't test it. I would suggest you to raise a case with Oracle Support because PIDX is a non-RossettaNet standard and it's implementation in Oracle B2B will be different to RossettaNet implementation. Meanwhile, I would try the same in B2B 11g setup.
    Regards,
    Anuj

  • How to set field "third party" in the Web Adi, General Ledger - Journals?

    Hello,
    We are trying to find how to set the field "Third Party" in the template WebAdi, and validate data and also can display in the form of general ledger journals.
    thanks for the collaboration.

    hi,
    just make the input feild as mandatory in properties and use the following code.
    data:
    lo_view_controller type ref to if_wd_view_controller,
    lo_dyn type ref to cl_wd_dynamic_tool.
    Create Object
    create object lo_dyn.
    data lt_messages type lo_dyn->t_check_result_message_tab.
    Get view controller reference
    lo_view_controller = wd_this->wd_get_api( ).
    Call Method to verify the element has the value or not
    call method cl_wd_dynamic_tool=>check_mandatory_attr_on_view
    exporting
    view_controller = lo_view_controller
    display_messages = ABAP_TRUE
    importing
    messages = lt_messages .
    endmethod.
    Regards,
    Kranthi

  • How to set field as Mandatory

    Hi,
    I want to set a field as mandatory. It we didn't give any data in a field and save it should not accept the null value how to set it.
    Regards,
    Madhavi

    Hi David,
    I wrote that code but the error comes where  oSBO and  bmt_Short comes. What should i do for that.
    And i gave a code for combo Mandatory
    Dim oForm2 As SAPbouiCOM.Form
                            Dim oCombo As SAPbouiCOM.ComboBox
                            oForm2 = SBO_Application.Forms.Item(pVal.FormUID)
                            oCombo = oForm2.Items.Item("cbocate").Specific
                            If oCombo.Selected.Value = "" Or oCombo.Selected.Value = Nothing Then
                                BubbleEvent = False
                                oCombo.Active = True
                                SBO_Application.SetStatusBarMessage("Category Code should not be left blank")
                            End If
    Its working but an error come 'Object Reference Not added to the Instance of an Object'
    But the same code is working for EditText without any error

  • How to set Field Dominance

    Hi,
    Sorry if this is a dumb question and its one Im kind of embarssed to ask. I have final cut express 3.0 and I cant seem to figure out how to set the field dominance.

    Why do you need to set the field dominance?
    Select the clip in the Browser and choose Edit>Item Properties.
    In the window that opens Control-click the item you want to alter (in the Clip column) and select from the drop-down menu.
    Ian.

  • How to set custom HTTP header for single sign on

    Currently we just begin to use an application called "etran". This application requires user name and password to login. Now, my assignment is to integrate etran application in our internal application. This means that somewhere in our internal application, there is a link leads to the etran application.
    It is going to be single sign on, that means that once user logs into our internal application, when he/she clicks on the etran link, no sign on to etran is needed.
    I consult with the technical people in etran. they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
    My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?
    Thanks in advance for your help.

    sharon38_74 wrote:
    they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
    My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?Your application need to act like a proxy. You can invoke a HTTP request programmatically using java.net.URLConnection. You can set request headers using URLConnection#setRequestProperty(). Also see the API docs: [http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html]. You only need to know the header field name where to set the Base64-encoded value in. You need to Base64-encode the value yourself.

  • How to set MQ message header properties using JMS adapter? (10.1.2)

    Hello,
    I am trying to send MQ messages from a BPEL process. We are using OAS 10.1.2 and JMS MQ adapter. Could you please let me know how to set the message descriptors like message format, type, report and reply to queue properties and queue open options (in jmsAdapterOutboundHeader).
    Regards,
    Geratayya

    put something like this
    <activationAgents>
          <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="PARNERLINKNAME">
            <property name="clusterGroupId">SOMEUNIQUEVALUE</property>
            <property name="portType">PARTNERLINK_PORTTYPE</property>
          </activationAgent>
        </activationAgents>

  • HOW TO SET THE OUR OWN LINE SPACING ?

    hai frenz...
    i jus wanted to know how to set the our own spacing between the records or lines...
    i.e.,
    there shub be no spacing between the records when its getting displayed...
    for e,g.,
    actually my records are in the output screen displaying like this.....
    hyundai   100    200
    maruthi    100   300  
    tata         200    200
    but i want to be displayed like this...
    hyundai   100    200
    maruthi    100   300  
    tata         200    200
    how to do that........ reply me....

    Hi,
    Use SKIP Abap Statement
    SKIP 2.
    SKIP TO LINE 1.
    SET BLANK LINES {ON|OFF}.
    Example
    REPORT demo_skip NO STANDARD PAGE HEADING.
    DATA sum TYPE i.
    TOP-OF-PAGE.
      SKIP.
      ULINE.
    START-OF-SELECTION.
      DO 10 TIMES.
        WRITE / sy-index.
        sum = sum + sy-index.
      ENDDO.
      SKIP TO LINE 1.
      WRITE: 'Numbers with sum' COLOR COL_HEADING,
              sum               COLOR COL_TOTAL.

  • How to set the SCLK & SDO lines low...

    Using a USB-8451 and need to set both the SCLK & SDO lines low as part of a prefix packet that I am sending to a device.  how do I do it in LabView?
    I can set the SCLK low using the 0 (Idle Low) input to the 8451 Config Property node but am not sure how to set the SDO low as needed.  

    steve05ram360 wrote:
    Yes it is SPI.  The device is an MB16024 LED driver from Macroblock.
    Are you actually referring to the http://www.mblock.com.tw/products_mbi6024.html? (Note the "I" instead of the "1") Where does it say it's a SPI device? I don't see it saying SPI anywhere on that page. Do you have the actual datasheet? I was unable to find it on their web site.
      maybe I cannot use the 8451 for this task??  ... 
    You can always use bit-banging mode.

Maybe you are looking for