SQLJ-JPublisher - J2T-153, Invalid value for -context:while generating the

Hi All,
I am trying to generate the java code for the oracle types defined for one of the module in our project.for that i have defined a new context by extending the 'DefaultContext'
provided by SQLJ and as mentioned in the below URL.
http://docs.oracle.com/cd/A91202_01/901_doc/java.901/a90214/jpub.htm
Topic : JPublisher Generation of SQLJ Classes
MyContext:-
import java.sql.Connection;
import java.sql.SQLException;
import sqlj.runtime.ref.DefaultContext;
public class MyContext extends sqlj.runtime.ref.DefaultContext{
static {
DefaultContext defaultContext = null;
try {
defaultContext = new DefaultContext(<datasource>);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
DefaultContext.setDefaultContext(defaultContext);
public MyContext(Connection arg0) throws SQLException {
super(arg0);
public Connection getConnection(){
Connection con = null;
try {
con = <datasource>getConnection();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return con;
JPub command:
jpub -user=usr/pwd -context=com.test.context.MyContext -sql=<My Types Here> -compile=false
I am getting the below error while running the jpub command in dos prompt.
Error Log:
J2T-153, Invalid value for -context: com.test.context.MyContext. This must be set to generated or to DefaultContext.
Please let me know if anybody has come across this problem before.
Thanks,
Vijay
Edited by: 905698 on 03-Jan-2012 09:53

Hi Vijay,
This post DOES NOT correspond to this forum.
The current forum is for BI Publisher. Your question is for JPublisher and believe it corresponds to PL/SQL forums.
Please close the thread
thanks
Jorge

Similar Messages

  • Invalid value for parameter error when value is in list of allowed parameters

    I have some documents with a lot of paragraph styles that have been organized into groups. I have a simple script that is meant to ungroup these styles and delete the now-empty groups.
    Code:
    #target indesign
    var myDoc = app.activeDocument;
    if (myDoc.paragraphStyleGroups.length > 0)
        myDoc.paragraphStyleGroups.everyItem().paragraphStyles.everyItem().move(LocationOptions.AT_END, myDoc);
        myDoc.paragraphStyleGroups.everyItem().remove();
    alert("Done")
    The error I receive is (emphasis mine):
    JavaScript Error!
    Error Number: 30477
    Error String: Invalid value for parameter 'reference' of method 'move'. Expected ParagraphStyle, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or Application, but received Document.
    As you can see, my pickle is that my value is of an allowed type. This only happens in some documents, and there's nothing that obviously distinguishes those documents from the ones in which it works.
    One thing I've noticed is that the error sometimes takes a while to appear (a minute or so), but none of the styles have been moved once I click OK. So, I don't know if it's specific to one style. I doubt it, only because other documents with the same style set work.
    Can anyone shed any light on what this error could mean in this context? I definitely have an activeDocument, so what could cause a Document to not be a Document?
    Any help much appreciated!

    Hi,
    It occurs when 2 or more styles have the same name, probably.
    Jarek

  • HLM installation error. Invalid values for --certificates_hostmap option. Specified key Hostname is not valid hdbhost

    Hi everyone,
    I'm installing SAP HANA for the first time and im having troubles when the unified installer gets to the installation of the lifecycle manager. Im getting the following error:
    15:08:33.996 - INFO:   Calling postCheck event handler
    15:08:33.996 - INFO:     Invalid values for --certificates_hostmap option. Specified key 'RCNHANA' is not valid hdbhost
    15:08:33.996 - ERR :     Invalid values for --certificates_hostmap option. Specified key 'RCNHANA' is not valid hdbhost
    15:08:33.997 - ERR :     Cannot execute custom event postCheck: Invalid values for --certificates_hostmap option. Specified key 'hostname' is not valid hdbhost at HLM/Installer/BaseExecutionPlanManager.pm line 90
    Can anyone help me
    Thanks

    Thanks Slds.
    I just re-ran the HLM package using the following procedure:
    1) download SAPHANALM06_0-10012745.SAR
    2) copy SAPHANALM06_0-10012745.SAR to the /tmp/hanainstdir/hlm_install
    3) Ensure SAPHOSTAGENT is above level 149, advisable to update it to the latest level. Level 153 till today.
    4) go to the extracted temp directory and run ./hdbinst
    Just click enter when prompt if you are running single Hana Database.
    SAP HANA Lifecycle Manager Installation kit detected.
    SAP HANA Database Installation Manager - SAP HANA HLM Installation 1.50.00.000000
    Options:
      SAP HANA system ID | Description
      SID                | SAP HANA Database SID 1.00.57.378530
    Enter SAP HANA system ID [SID]:
    Root user password (SSH connectivity):
    Root user SSH key passphrase (SSH connectivity):
    Installation was successful. However, I noticed in the log that this time --certificates_hostmap option was not set to any value at all, but still installation went tru fine.
    Thanks
    Raj

  • Invalid value for variable 0calyear in planning modeller

    Hi Experts,
    I have an urgent requirement. In my planning modeller I have a variable for 0calyear for accepting current year and target year. If I give target year(for example, 2015) which is not present in 0calyear it is showing error that 2015 is an invalid value for 0calyear. If I give 2012 it is working fine because it is already present in 0calyear.
    I would like to know how we can solve this issue. To forecast data anyway we have to enter a future year. I would really appreciate if anyone could give some information to solve the issue.
    Thanking you,
    Jerry.

    Hi Jerry,
    Just a thought.
    Can you load a flat file data with year values into a DSO with 0CALYEAR as key? ( SID generation as active ).
    What I am expecting is this flat file load will generate SIDs for 0CALYEAR in future year as well.
    Subsequently if you try to enter that in your planning variable it should work.
    I understand this is not a perfect solution. But want you to try and adopt if this is a reasonable work around.
    Thanks,
    Krishnan

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • FRM-40212: Invalid value for Field SHIP_TO_ADDRESS1on forms OEXOETEL

    I want to customize a form "OEXOETEL". I want to copy some values from another order to a new order.When i navigate to a block LINE i receive this message: "FRM-40212: Invalid value for Field SHIP_TO_ADDRESS1".
    cursor c_order(p_header_id varchar2) is
    select o.sold_to,
    o.order_type,
    o.terms,
    o.ship_from,
    o.SHIP_to_org_id,
    o.ship_to_address1,
    o.ship_to_address5,
    o.customer_number,
    o.invoice_to_org_id,
    o.INVOICE_TO_LOCATION,
    o.SHIP_TO_LOCATION,
    o.invoice_to_address1,
    o.invoice_to_address5,
    o.sold_to_contact
    from oe_order_headers_v o,
    hz_parties hzp
    where hzp.party_name = o.sold_to
    and o.header_id = p_header_id;
    IF l_block_name IN ('ORDER') THEN
    IF p_event = 'WHEN-NEW-RECORD-INSTANCE' THEN
    open c_order(name_in('global.header_id'));
    loop
         fetch c_order into x_order_row;
    exit when c_order%notfound;
         copy(x_order_row.customer_number,'ORDER.CUSTOMER_NUMBER');
         copy(x_order_row.sold_to,'ORDER.SOLD_TO');
    copy(x_order_row.ship_to_org_id,'ORDER.SHIP_TO_ORG_ID');
    copy(x_order_row.SHIP_TO_LOCATION,'ORDER.SHIP_TO_LOCATION');
         copy(x_order_row.ship_to_address5,'ORDER.SHIP_TO_ADDRESS5');
    copy(x_order_row.ship_to_address1,'ORDER.SHIP_TO_ADDRESS1');
    copy(x_order_row.ship_to_address1,'ORDER.SHIP_TO_ADDRESS1_MIR2');
         copy(x_order_row.invoice_to_org_id,'ORDER.INVOICE_TO_ORG_ID');
         copy(x_order_row.invoice_TO_LOCATION,'ORDER.INVOICE_TO_LOCATION');
         copy(x_order_row.invoice_to_address5,'ORDER.INVOICE_TO_ADDRESS5');
    copy(x_order_row.invoice_to_address1,'ORDER.INVOICE_TO_ADDRESS1');
    copy(x_order_row.INVOICE_TO_LOCATION,'ADDRESSES.INVOICE_TO_LOCATION');
         copy(x_order_row.order_type,'ORDER.ORDER_TYPE');
         copy(x_order_row.sold_to_contact,'ORDER.SOLD_TO_CONTACT');
         copy(x_order_row.ship_from,'ORDER.SHIP_FROM');
    end loop;
    close c_order;
    end if;
    end if;

    Review Note: 302613.1 - OEXOEORD: Cannot select List of Values From The Ship To Address1 Field
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=302613.1

  • Abort Could not determine a value for variable 0DAT from the authorizations

    Hi All,
    I encountered an error '/ Abort Could not determine a value for variable 0DAT from the authorizations\' when executing my query on a multiprovider in BW 3.5.
    Can anyone help me in finding a solutionn to this issue.
    Thanks,
    Kartik.

    Hi Kartik,
    I am sorry as that note is for NW2004s. Please check if 0DAT variable installed from a business content? if not then I think thats the cause of the problem.
    Hope this helps,
    Bye...

  • Can i use one JSF component's value for other component in the same page.

    Can i use one JSF component's value for other component in the same page.
    For example
    I have a <h:selectBooleanCheckbox id="myChk"> in my jsf page, i want to access its value for another component like:
    <h:commandButton disabled="#{myChk.checked}" action="myAction" value="myValue" />
    ** "myChk.checked" >> I am just asuming "checked" property is available...

    Bind the checkbox to a UIInput myChk property. Then you can reference this property from the page, e.g.
    <h:selectBooleanCheckbox binding="#{myBean.myChk}" onchange="submit();" />
    <h:commandButton disabled="#{myBean.myChk.value}" action="myAction" value="myValue" />

  • BADI/USER EXIT for MIGO while generating FI Documents.

    Hi Friends,
    In MIGO T.Code when posting the GR, we'll get the Material Documnent right, at the same time it will
    generate an Accounting Document in background and the same will update in  BKPF/BSEG Tables.
    Mine requirement is when ever the entries are updating into thr Finance tables, i need to manipulate the line items and the updated line items needs to be upadted to BSEG table.ERO.
    Is there any EXIT or BADI or Enhancement or any Enhancement Point while posting the entries to FI with transaction MIGO.
    Regards:
    Swamy Dikonda.

    Dear Saravaran,
    Thanks for the reply.
    This will not suits to us. The provided BADI will works upto Posting the material document in transaction MIGO and it will not considered for the FI level entries.
    Hope you could have understand mine requirement.
    The requirement of mine is:
    While doing the GR with ref to PO the material documnet will be posted and subsequently FI documnet  will be  generated in Background. While generating the FI document i need to manipulate the values for the G/L. So that the manipulated values will be flow into BKPF and BSEG tables.
    Thanks.
    Regards
    Swamy

  • Invalid cursor state error while executing the prepared statement

    hai friends,
    following code showing the invalid cursor state error while executing the second prepared statement.
    pls anyone help me
    String query = "select * from order_particulars where order_no=" + orderno + " order by sno";             psmt1 = conEntry.prepareStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);             rs1 = psmt1.executeQuery();             rs1.last();             intRowCount = rs1.getRow();             particularsdata = new Object[intRowCount][6];             rs1.beforeFirst();             if (intRowCount >= 1) {                 for (int i = 0; rs1.next(); i++) {                     particularsdata[0] = i + 1;
    particularsdata[i][1] = rs1.getString(3);
    particularsdata[i][2] = Double.parseDouble(rs1.getString(4));
    rs1.close();
    psmt1.close();
    query = "SELECT sum(delqty) FROM billdetails,billparticulars WHERE order_no= " + orderno + " and " +
    "billdetails.bill_no = billparticulars.bill_no GROUP BY particulars ORDER BY sno";
    psmt1 = conEntry.prepareStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    rs1 = psmt1.executeQuery(); //error showing while executing this line

    Also .. Why using arrays instead of collections? Shifting the cursor all the way forth and back to get the count is fairly terrible.
    With regard to the problem: either there's a nasty bug in the JDBC driver used, or you actually aren't running the compiled class version of the posted code.

  • Dropdown values are missing while using the function module KCD_EXCEL_OLE_TO_INT_CONVERT

    Hi all,
    when i am trying to upload the excel template by using the function module " KCD_EXCEL_OLE_TO_INT_CONVERT" to an internal table some field values are missing.
    i am using the function module " KCD_EXCEL_OLE_TO_INT_CONVERT"  and i am uploading an excel template and downloading that excel data into an internal table but some field values are missing while uploading the excel template and i found that the field which contains the drop down list values those values are missing.
    And also when i am uploading the excel template by using the function module" KCD_EXCEL_OLE_TO_INT_CONVERT"  when i am coming out of this function module one pop up is coming. how can i avoid this popup, can any one please provide me the solution thanks in advance.
    FYI...it is showing the below popup screen ..
    Thanks,
    Koushik

    hi Feiyun,
    below is the code(highlighted in bold)and after coming out of the function module i am getting popup and also the drop down values are missing.
    DATA: ls_control         TYPE zsfi_fiupload_control,
             ls_header          TYPE zsfi_fiupload_header_v13,
             ls_item            TYPE zsfi_fiupload_item_v13,
             ls_trailer         TYPE zsfi_fiupload_control,
             l_line_count       LIKE zsfi_fiupload_control-rec_count,
             l_current_curr     TYPE kcde_cells-value,
             l_current_postdate TYPE kcde_cells-value,
             l_current_compcode TYPE kcde_cells-value,
             l_currentrow       TYPE kcde_cells-row,
             l_filename         LIKE rlgrap-filename.
       DATA: BEGIN OF lt_intern OCCURS 0.
               INCLUDE STRUCTURE  kcde_cells.
       DATA: END OF lt_intern.
       DATA: BEGIN OF lt_items OCCURS 0,
               a TYPE kcde_cells-value,
               b TYPE kcde_cells-value,
               c TYPE kcde_cells-value,
               d TYPE kcde_cells-value,
               e TYPE kcde_cells-value,
               f TYPE kcde_cells-value,
               g TYPE kcde_cells-value,
               h TYPE kcde_cells-value,
               i TYPE kcde_cells-value,
               j TYPE kcde_cells-value,
               k TYPE kcde_cells-value,
               l TYPE kcde_cells-value,
               m TYPE kcde_cells-value,
               n TYPE kcde_cells-value,
               o TYPE kcde_cells-value,
               p TYPE kcde_cells-value,
               q TYPE kcde_cells-value,
               r TYPE kcde_cells-value,
               s TYPE kcde_cells-value,
               t TYPE kcde_cells-value,
               u TYPE kcde_cells-value,
               v TYPE kcde_cells-value,
               w TYPE kcde_cells-value,
               x TYPE kcde_cells-value,
               y TYPE kcde_cells-value,
               z TYPE kcde_cells-value,
               aa TYPE kcde_cells-value,
               ab TYPE kcde_cells-value,
               ac TYPE kcde_cells-value,
               ad TYPE kcde_cells-value,
               ae TYPE kcde_cells-value,
               af TYPE kcde_cells-value,
               ag TYPE kcde_cells-value,
               ah TYPE kcde_cells-value,
               ai TYPE kcde_cells-value,
               AJ TYPE KCDE_CELLS-VALUE,
               AK TYPE KCDE_CELLS-VALUE,
               END OF lt_items.
       l_filename = p_flpath.
    * the file must be an xls file, not xlsx or comma seperated
       IF p_flpath NS '.xls' AND p_flpath NS '.XLS'.
         MESSAGE i261(zfi).
         g_error = 'X'.
         EXIT.
       ENDIF.
    * upload excel file to a generic table
       CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
         EXPORTING
           filename                = l_filename
           i_begin_col             = 1
           i_begin_row             = 1
           i_end_col               = 150
           i_end_row               = 65000
         TABLES
           intern                  = lt_intern
         EXCEPTIONS
           inconsistent_parameters = 1
           upload_ole              = 2
           OTHERS                  = 3.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    * validate that the format is in the restatement format
    *  this is the only template to have the ledger group in cell G-2
    **  READ TABLE lt_intern WITH KEY row = '0002' col = '0007'.
    **  IF sy-subrc <> 0 OR lt_intern-value IS INITIAL.
    **    MESSAGE i260(zfi).
    **    g_error = 'X'.
    **    EXIT.
    **  ENDIF.
    * create control record values
       ls_control-rec_type = 'C'.
       ls_control-global_id = 'GLU-03000'.
       ls_control-local_id = ''.
       ls_control-rec_count = ''.
       CONCATENATE sy-datum sy-uzeit INTO ls_control-date.
       ls_control-version = '12'.
       ls_control-email = ''.
       ls_control-eor = 'X'.
       ls_trailer = ls_control.
    * open output file and add the control record
       OPEN DATASET p_unixfilename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
       TRANSFER ls_control TO p_unixfilename.
    * create header record values, will be transfered to file in the item loop
       ls_header-rec_type = 'H'.
       READ TABLE lt_intern WITH KEY row = '0017' col = '0003'.
       IF sy-subrc = 0.
         ls_header-header_txt = lt_intern-value.
       ENDIF.
       READ TABLE lt_intern WITH key row = '0020' col = '0002'.
       IF sy-subrc = 0.
         ls_header-comp_code = lt_intern-value.
       ENDIF.
    ************doc date
       READ TABLE lt_intern WITH KEY row = '0011' col = '0003'.
       IF sy-subrc = 0.
         ls_header-pstng_date = lt_intern-value.
       ENDIF.
    ************posting date
         ls_header-doc_date = sy-datum.
       READ TABLE lt_intern WITH KEY row = '0009' col = '0003'.
       IF sy-subrc = 0.
         ls_header-doc_type = lt_intern-value.
       ENDIF.
       READ TABLE lt_intern WITH KEY row = '0014' col = '0003'.
       IF sy-subrc = 0.
         ls_header-ref_doc_no = lt_intern-value.
       ENDIF.
    ************currency moved to line items
         READ TABLE lt_intern WITH KEY row = '0020' col = '0001'.
       IF sy-subrc = 0.
       ls_header-currency = lt_intern-value.
       ENDIF.
       ls_header-trans_date = ''.
       READ TABLE lt_intern WITH KEY row = '0010' col = '0003'.
       IF sy-subrc = 0.
         ls_header-period = lt_intern-value.
       ENDIF.
       READ TABLE lt_intern WITH KEY row = '0006' col = '0003'.
       IF sy-subrc = 0.
         ls_header-reason_rev = lt_intern-value.
       ENDIF.
       READ TABLE lt_intern WITH KEY row = '0007' col = '0003'.
       IF sy-subrc = 0.
         ls_header-rev_date = lt_intern-value.
       ENDIF.
    *  READ TABLE lt_intern WITH KEY row = '0002' col = '0007'.
    *  IF sy-subrc = 0.
         ls_header-ledger_grp = ''.
    *  ENDIF.
    *  READ TABLE lt_intern WITH KEY row = '0013' col = '0013'.
    *  IF sy-subrc = 0.
         ls_header-exch_rate = ''.
    *  ENDIF.
       READ TABLE lt_intern WITH KEY row = '0008' col = '0003'.
       IF sy-subrc = 0.
         ls_header-calc_tax = lt_intern-value.
       ENDIF.
       ls_header-eor = 'X'.
    * loop at the line items and append them to a table with multiple columns
       LOOP AT lt_intern WHERE row GE 20.
         IF l_currentrow <> lt_intern-row AND l_currentrow IS NOT INITIAL.
           APPEND lt_items.
           CLEAR lt_items.
         ENDIF.
         l_currentrow = lt_intern-row.
         CASE lt_intern-col.
           WHEN '0001'. lt_items-a = lt_intern-value.
           WHEN '0002'. lt_items-b = lt_intern-value.
           WHEN '0003'. lt_items-c = lt_intern-value.
           WHEN '0004'. lt_items-d = lt_intern-value.
           WHEN '0005'. lt_items-e = lt_intern-value.
           WHEN '0006'. lt_items-f = lt_intern-value.
           WHEN '0007'. lt_items-g = lt_intern-value.
           WHEN '0008'. lt_items-h = lt_intern-value.
           WHEN '0009'. lt_items-i = lt_intern-value.
           WHEN '0010'. lt_items-j = lt_intern-value.
           WHEN '0011'. lt_items-k = lt_intern-value.
           WHEN '0012'. lt_items-l = lt_intern-value.
           WHEN '0013'. lt_items-m = lt_intern-value.
           WHEN '0014'. lt_items-n = lt_intern-value.
           WHEN '0015'. lt_items-o = lt_intern-value.
           WHEN '0016'. lt_items-p = lt_intern-value.
           WHEN '0017'. lt_items-q = lt_intern-value.
           WHEN '0018'. lt_items-r = lt_intern-value.
           WHEN '0019'. lt_items-s = lt_intern-value.
           WHEN '0020'. lt_items-t = lt_intern-value.
           WHEN '0021'. lt_items-u = lt_intern-value.
           WHEN '0022'. lt_items-v = lt_intern-value.
           WHEN '0023'. lt_items-w = lt_intern-value.
           WHEN '0024'. lt_items-x = lt_intern-value.
           WHEN '0025'. lt_items-y = lt_intern-value.
           WHEN '0026'. lt_items-z = lt_intern-value.
           WHEN '0027'. lt_items-aa = lt_intern-value.
           WHEN '0028'. lt_items-ab = lt_intern-value.
           WHEN '0029'. lt_items-ac = lt_intern-value.
           WHEN '0030'. lt_items-ad = lt_intern-value.
           WHEN '0031'. lt_items-ae = lt_intern-value.
           WHEN '0032'. lt_items-af = lt_intern-value.
           WHEN '0033'. lt_items-ag = lt_intern-value.
           WHEN '0034'. lt_items-ah = lt_intern-value.
           WHEN '0035'. lt_items-ai = lt_intern-value.
           when '0036'. lt_items-aj = lt_intern-value.
           when '0037'. lt_items-ak = lt_intern-value.
         ENDCASE.
       ENDLOOP.
       APPEND lt_items.
    * sort rows by the post date, comp code, curr.
    *  SORT lt_items BY ah a ai.
    * loop at the items, creating a header record if the comp code, curr. or post date changes
       LOOP AT lt_items.
         ls_item-rec_type = 'I'.
         ls_item-post_key = lt_items-c.   "lt_items-b.
         IF lt_items-c GE '20' AND lt_items-c LE '39'.
           ls_item-vendor_no = lt_items-d.
         ELSEIF lt_items-c GE '0' AND lt_items-c LE '19'.
           ls_item-customer = lt_items-d.
         ELSEIF lt_items-c EQ '70' AND lt_items-c EQ '75'.
           ls_item-asset = lt_items-d.
         ELSE.
           ls_item-gl_account = lt_items-d.
         ENDIF.
         ls_item-asset_type = lt_items-m. "lt_items-l.
         ls_item-trans_type = lt_items-n. "lt_items-m.
         ls_item-print_flag = ''.
         ls_item-item_text = lt_items-j. "lt_items-i.
         ls_item-comp_code = lt_items-b. "lt_items-a.
         ls_item-bus_area = ''.
         ls_item-alloc_nmbr = lt_items-l. "lt_items-k.
         ls_item-tax_code = lt_items-q. "lt_items-p.
         ls_item-taxjurcode = lt_items-r. "lt_items-q.
         ls_item-profit_ctr = lt_items-g. "lt_items-f.
         ls_item-costcenter = lt_items-h. "lt_items-g.
         ls_item-orderid = lt_items-ac. "lt_items-ab.
         ls_item-wbs = lt_items-i. "lt_items-h.
         ls_item-trade_id = lt_items-o. "lt_items-n.
         ls_item-part_prctr = lt_items-p. "lt_items-o.
         ls_item-material = lt_items-t. "lt_items-s.
         ls_item-salesorg = lt_items-aa. "lt_items-z.
         ls_item-distr_chan = lt_items-ab. "lt_items-aa.
         ls_item-pmnttrms = ''.
         ls_item-pmtmthd = ''.
         ls_item-pmtmthsupl = ''.
         ls_item-alt_payee = ''.
         REPLACE ALL OCCURRENCES OF '(' IN lt_items-e WITH ''.
         REPLACE ALL OCCURRENCES OF ')' IN lt_items-e WITH ''.
         ls_item-amt_doccur = lt_items-e. "lt_items-d
         REPLACE ALL OCCURRENCES OF '(' IN lt_items-f WITH ''.
         REPLACE ALL OCCURRENCES OF ')' IN lt_items-f WITH ''.
         ls_item-loc_amt = lt_items-f. "lt_items-e
         ls_item-loc  = lt_items-k. "lt_items-j.
         ls_item-sas_revtype = lt_items-s. "lt_items-r.
         ls_item-rev_type = lt_items-u. "lt_items-t.
         ls_item-rev_chnl = lt_items-v. "lt_items-u.
         ls_item-bill_to = lt_items-x. "lt_items-w.
         ls_item-payer = lt_items-z. "lt_items-y.
         ls_item-ship_to = lt_items-y.
         ls_item-tax_amnt = lt_items-x.
         ls_item-func_area = ''.
         ls_item-expend_date = lt_items-ae. "lt_items-ad.
         ls_item-wtax_code = lt_items-af. "lt_items-ae.
         ls_item-wtax_base = lt_items-ag. "lt_items-af.
         ls_item-wtax_amount = lt_items-ah. "lt_items-ag.
         ls_item-payment_block = ''.
         ls_item-grp_amt = ''.
         ls_item-anc_amt = ''.
         ls_item-permit_payee = ''.
         ls_item-value_date = ''.
         ls_item-pernr   = ''.
         ls_item-legacy1 = ''.
         ls_item-legacy2 = ''.
         ls_item-legacy3 = ''.
         ls_item-legacy4 = ''.
         ls_item-legacy5 = ''.
         ls_item-legacy6 = ''.
         ls_item-legacy7 = ''.
         ls_item-legacy8 = ''.
         ls_item-legacy9 = ''.
         ls_item-legacy10 = ''.
         ls_item-eor = 'X'.
         TRANSLATE lt_items-ai TO UPPER CASE.
         TRANSLATE lt_items-b TO UPPER CASE.
         TRANSLATE lt_items-a TO UPPER CASE.
         TRANSLATE lt_items-aj TO UPPER CASE.
         IF l_current_curr <> lt_items-a "lt_items-ai
           OR l_current_postdate <> ls_header-pstng_date "lt_items-aj
           OR l_current_compcode <> lt_items-b.
           l_current_curr = lt_items-a.
           l_current_postdate = ls_header-pstng_date. "lt_items-aj.
           l_current_compcode = lt_items-b.
           ls_header-comp_code = l_current_compcode.
           ls_header-currency = l_current_curr.
           ls_header-pstng_date = l_current_postdate.
           ls_header-doc_date = l_current_postdate.
           TRANSFER ls_header TO p_unixfilename.
           l_line_count = l_line_count + 1.
         ENDIF.
         TRANSFER ls_item TO p_unixfilename.
         l_line_count = l_line_count + 1.
       ENDLOOP.
       ls_trailer-rec_type = 'T'.
       ls_trailer-rec_count = l_line_count.
       TRANSFER ls_trailer TO p_unixfilename.
       CLOSE DATASET p_unixfilename.
    * change the format to fixed format for the remainder of the load program
       p_fixed = 'X'.
       p_rstmnt = ''.
    Thanks,
    Koushik

  • Error while generating the report on Test env (for divide condition)

    Hi All,
    I am facing the below error while generating the report in test environment while the same report is working fine on Prod environment.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16001] ODBC error state: S1000 code: 1791 message: [Oracle][ODBC][Ora]ORA-01791: not a SELECTed expression. [nQSError: 16001] ODBC error state: S1000 code: 1791 message: [Oracle][ODBC][Ora]ORA-01791: not a SELECTed expression. [nQSError: 16015] SQL statement execution failed. (HY000)
    Actually the error is coming for the below logics:
    COUNT(DISTINCT RMA.RMA)/COUNT(DISTINCT User."User Name")
    "RMA Fact"."Module Backlog"/COUNT(DISTINCT User."User Name")
    Can anyone please tell if I need to make any configuration changes as the same logic works perfectly fine on production but not on test.
    Thanks in advance

    Is anyone having any idea about it...

  • Error while generating the context node

    Hi ,
    Requirement is to add the marketing attribute field under the Account details overview Page. As the field was not available in the context node i have added a new context node in the Account details. I used the wizard and added the context node BuilmktattributeRel so as i can add "Attribute set" under the BP overview page."
    Now after adding the context node and while executing i am unable to see the overview view page, i am getting an error :
    1. Component GET_ATTRIBUTE does not exist
    2. Determination of BOL attributes failed
    Also i am unable to regenrate the GET_I_method. If i want to delete the Zcontextnode, i am unable to do so.
    Kindly help me with the technical approach to add the context node in the overview page.
    Thanks in advance,
    Sunil

    One thread would have been sufficient.
    Error while generating the context node

  • Got new ATV and all set up. It keeps loosing connection with iTunes on laptop and have tried everything suggested in set up guide. It works fine for a while then the iTunes account vanishes from 'computer' menu TV screen.  Full Wifi signal on both devices

    Got new ATV and all set up. It keeps loosing connection with iTunes on laptop and have tried everything suggested in set up guide. It works fine for a while then the iTunes account vanishes from 'computer' menu TV screen.  Full Wifi signal on both devices so can't think what could be causing it to happen. Any suggestions please?

    Sorry, I updated another thread I was a part of but didn't update my own thread.....ughhh!
    I updated all of my ATV 2's and 3's to the latest firmware when it was released and have been problem free since. I do believe the major issue of not being able to connect after a period of inactivity has been corrected with the latest ATV firmware.
    I can look at my network connection table using "netstat -an" in a CMD window and I do not see the massive number of connections I saw before the update.
    Here is a link to the other thread I was referring to above:
    https://discussions.apple.com/message/19952545#19952545
    Have you applied the latest firmware updates to your ATV 3's?

  • What the steps are useful for us while designing the database by Performanc

    Dear Experts
    Plz tell me.
    What the steps are useful for us while designing the database by Performance point of view.
    Like Proper indexing and table assing to specific tbalespace etc

    Oracle manuals would do the best for you. There is no step by step rules for tuning the database , had this be true , then Oracle must've write a programme , application or sql script to achive it . I would advise you to go through oracle performance and tuning guide .
    Hare Krishna
    Alok

Maybe you are looking for

  • Trying to capture HDV with a Canon HV30    CS4

    I am new to this HD video.Im trying to capture to PPRO cs4 and not sure what settings to use.When I first start out I have my new project set to HDV after that it takes me to new sequence panel there I have selected the preset HDV 1080p30 (Im hoping

  • Hi, I have converted different smartforms to pdf format.How to combine pdf?

    Hi All, I have converted different smartforms to pdf format. How to combine all the pdf's into single pdf. I need all the smartforms to be in single pdf. Please help me in this regard. Thanks in advance.

  • Can we debug a workflow

    Hi All, I wish to know can we debug a workflow. If yes then how? Also if i want to know how the flow is going for the business process in question. I mean if it is stuck some where, then what is the way for it? Thanks in advance. Regards, Neha

  • Configuration Management of Portlets: How do you do it?

    Hi: What is the best way for a group of developers to keep "portlet" code under CM? Portlets can be so many thing, from so many sources, etc. Is an entire structure, including WSDL, source (JSPs, Stored Procedure code, XML transformations, etc.) all

  • Finder functions are missing

    Hello - recently installed Lion. I discovered, that the Finder does not have the categories Today-Yesterday-Last Week which were showing the recently used files. I found that really helpfully but I am not able to find a way to configure the side bar