Please suggest a correction in the code: Urgent

I am capturing the Material Document No., Material No., Material Description, Quantity etc. into a main_table in my code so as to write/print labels containing GRN details (movement type '105') using se38. These labels are to be pasted on the material received in stores, the exact requirement is 100% material identification sticker on all items to maintain FIFO. Obviously the no. of these stickers, to be printed, shall solely depend on the Quantity of a particular material received.
I have written the following piece of code to print the captured information of GRN. The problem is that my code is unable to track the change in material document number. For example if I have 10 nos of quantity for a particular material say 1001 and 5 no.s of quantity for a subsequent material 1002. I should get 10 labels for 1001 and 5 for 1002 but my code is giving me 10 labels for 1002 also.
Hope you got it.
Please suggest the necessary correction on the following code.You can execute the following code and get a real time feeling of my problem.
REPORT  ZMM_GRN_LABEL_REPORT_38.
TABLES : MKPF, MSEG, MAKT.
DATA : BEGIN OF I_MKPF OCCURS 0,
       MBLNR LIKE MSEG-MBLNR,
       BLDAT LIKE MKPF-BLDAT,
       MJAHR LIKE MKPF-MJAHR,
       END OF I_MKPF.
DATA : BEGIN OF I_MSEG OCCURS 0,
       MBLNR LIKE MSEG-MBLNR,
       MATNR LIKE MSEG-MATNR,
       EBELN LIKE MSEG-EBELN,
       LIFNR LIKE MSEG-LIFNR,
       MENGE LIKE MSEG-MENGE,
       END OF I_MSEG.
DATA : BEGIN OF I_MAKT OCCURS 0,
       MATNR LIKE MAKT-MATNR,
       MAKTX LIKE MAKT-MAKTX,
       END OF I_MAKT.
DATA : BEGIN OF I_LFA1 OCCURS 0,
       LIFNR LIKE LFA1-LIFNR,
       NAME1 LIKE LFA1-NAME1,
       END OF I_LFA1.
DATA: BEGIN OF MAIN_TABLE OCCURS 0,
      MBLNR LIKE MSEG-MBLNR,
      MATNR LIKE MSEG-MATNR,
      BLDAT LIKE MKPF-BLDAT,
      MAKTX LIKE MAKT-MAKTX,
      MENGE LIKE MSEG-MENGE,
      MJAHR LIKE MSEG-MJAHR,
      EBELN LIKE MSEG-EBELN,
      LIFNR LIKE MSEG-LIFNR,
      NAME1 LIKE LFA1-NAME1,
      END OF MAIN_TABLE.
DATA : N LIKE MSEG-MENGE.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_MBLNR FOR MSEG-MBLNR.
PARAMETERS : P_GJAHR LIKE MSEG-GJAHR.
SELECTION-SCREEN END OF BLOCK B1.
select MBLNR MJAHR BLDAT
into corresponding fields of
table I_MKPF
from Mkpf
where
MBLNR in S_MBLNR and
MJAHR EQ p_GJAHR.
LOOP AT I_MKPF.
MAIN_TABLE-MBLNR = I_MKPF-MBLNR.
MAIN_TABLE-MJAHR = I_MKPF-MJAHR.
MAIN_TABLE-BLDAT = I_MKPF-BLDAT.
APPEND MAIN_TABLE.
CLEAR MAIN_TABLE.
ENDLOOP.
IF I_MKPF[] IS NOT INITIAL.
SELECT MBLNR MATNR EBELN LIFNR MENGE
INTO CORRESPONDING FIELDS OF
TABLE I_MSEG FROM
MSEG
FOR ALL ENTRIES IN I_MKPF
WHERE
MBLNR = I_MKPF-MBLNR.
ENDIF.
LOOP AT I_MSEG.
LOOP AT MAIN_TABLE WHERE MBLNR = I_MSEG-MBLNR.
MAIN_TABLE-MATNR = I_MSEG-MATNR.
MAIN_TABLE-EBELN = I_MSEG-EBELN.
MAIN_TABLE-LIFNR = I_MSEG-LIFNR.
MAIN_TABLE-MENGE = I_MSEG-MENGE.
MODIFY MAIN_TABLE INDEX SY-TABIX.
ENDLOOP.
ENDLOOP.
IF I_MSEG[] IS NOT INITIAL.
SELECT MATNR MAKTX
INTO CORRESPONDING FIELDS OF
TABLE I_MAKT FROM MAKT
WHERE
MATNR = I_MSEG-MATNR.
ENDIF.
LOOP AT I_MAKT.
LOOP AT MAIN_TABLE WHERE MATNR = I_MAKT-MATNR.
MAIN_TABLE-MAKTX = I_MAKT-MAKTX.
MODIFY MAIN_TABLE INDEX SY-TABIX.
ENDLOOP.
ENDLOOP.
IF I_MSEG[] IS NOT INITIAL.
SELECT LIFNR NAME1
INTO CORRESPONDING FIELDS OF
TABLE I_LFA1 FROM LFA1
FOR ALL ENTRIES IN I_MSEG
WHERE
LIFNR = I_MSEG-LIFNR.
ENDIF.
LOOP AT I_LFA1.
LOOP AT MAIN_TABLE WHERE LIFNR = I_LFA1-LIFNR.
MAIN_TABLE-NAME1 = I_LFA1-NAME1.
MODIFY MAIN_TABLE INDEX SY-TABIX.
ENDLOOP.
ENDLOOP.
******************************Problem lies somewhere here
N = MAIN_TABLE-MENGE.
DO N TIMES.
SORT MAIN_TABLE BY MBLNR.
LOOP AT MAIN_TABLE.
WRITE :/5 MAIN_TABLE-MBLNR.
WRITE :/5 MAIN_TABLE-MAKTX, 50 MAIN_TABLE-MATNR.
ENDLOOP.
ENDDO.

Hello,
Take one new table with three fields ie. it_no with mblnr, matnr and menge.
collect data to new table form main_table.
and replace your doubtful code by
SORT MAIN_TABLE BY MBLNR.
loop at it_no.
N = it_no-MENGE.
DO N TIMES.
LOOP AT MAIN_TABLE where matnr = it_no-matnr.
WRITE :/5 MAIN_TABLE-MBLNR.
WRITE :/5 MAIN_TABLE-MAKTX, 50 MAIN_TABLE-MATNR.
ENDLOOP.
ENDDO.
endloop.
regards,
Naimesh

Similar Messages

  • My iPhone is split from front panel on top, and back cover of my is swollen too. I am not able to use my phone and I cannot access my data in the phone. Please suggest what could be the cause of this problem?

    My iPhone is split from front panel on top, and back cover of my is swollen too. I am not able to use my phone and I cannot access my data in the phone. Please suggest what could be the cause of this problem?

    It sounds like the battery might have gone bad, and is swelling and causing the symptoms you describe.  Do not attempt to use the phone, but take it to Apple for evaluation.

  • When I am trying to create an organization in HRMS, and clicking on Type field, it is showing me "Frm-41830: List of values contains no entries". Please suggest me what is the solution

    When I am trying to create an organization in HRMS, and clicking on Type field, it is showing me "Frm-41830: List of values contains no entries". Please suggest me what is the solution

    Hi,
    Type is one part of Org creation....
    Optionally, select an organization type in the Type field.
    Organization types do not classify your organization, you use them for reporting purposes only. The type may identify the function an organization performs, such as Administration or Service, or the level of each organization in your enterprise, such as Division, Department or Cost Center. You create the organization types you require by entering values for the Lookup Type ORG_TYPE.
    Regards:
    Shahzad M. Saleem (mark this answer as helpful if it helps u)

  • PLEASE HELP ME TO MODIFY THE CODE !

    DATA:BEGIN OF I_PARTNER OCCURS 0,
           VBELN LIKE VBPA-VBELN,
           adrnr like vbpa-adrnr,
           kunnr LIKE vbpa-kunnr,
           PARVW LIKE VBPA-PARVW,
           post_code1 LIKE adrc-post_code1,
           po_box LIKE adrc-po_box,
           name1 LIKE adrc-name1,
           name2 LIKE adrc-name2,
           city1 LIKE adrc-city1,
           city2 LIKE adrc-city2,
           country LIKE adrc-country,
           street LIKE adrc-street,
           str_suppl1 LIKE adrc-str_suppl1,
           str_suppl2 LIKE adrc-str_suppl2,
           str_suppl3 LIKE adrc-str_suppl3,
           vtext like tpart-vtext,
           ADRNP LIKE VBPA-ADRNP,
          SMTP_ADDR LIKE ADR6-SMTP_ADDR,
         END OF I_PARTNER.
    SELECT
    VBPA~VBELN
    vbpa~adrnr
    VBPA~PARVW
    VBPA~KUNNR
    VBPA~ADRNP
    TPART~VTEXT
    FROM VBPA AS VBPA
    INNER JOIN TPART AS TPART
    ON VBPAPARVW EQ TPARTPARVW
    AND SPRAS = SY-LANGU
    INTO CORRESPONDING FIELDS OF TABLE I_PARTNER
    WHERE
    VBPA~VBELN EQ S_VBELN.
    WRITE:/
      i_partner-adrnr         under         'ADDRESS NUMBER',
      i_partner-vbeln         UNDER         'Order-No',
      i_partner-parvw         UNDER         'Partner-Type',
      I_PARTNER-VTEXT         UNDER         'Partner-Type description',
      I_PARTNER-KUNNR         UNDER         'Partner-no'.
      ULINE.
    endloop.
    HERE I AM GETTING ALL THE POSSIBLE PARTNER TYPES.
    I WANT TO GET THE OUT PUT ONLY WHEN THE PARTNER TYPE S ARE  'SP'  'BP' AND 'SH'.
    PLEASE HELP.....

    Hi,
    Both the answers are correct... iam just writing the code u needed..
    ranges : gr_partner for tablename-fieldname.
    initialization.
    gr_partner-sign = 'I'.
    gr_partner-option = 'EQ'
    gr_partner-low = 'SP'
    append gr_partner.
    gr_partner-sign = 'I'.
    gr_partner-option = 'EQ'
    gr_partner-low = 'BP'
    append gr_partner.
    gr_partner-sign = 'I'.
    gr_partner-option = 'EQ'
    gr_partner-low = 'SH'
    append gr_partner.
    SELECT
    VBPA~VBELN
    vbpa~adrnr
    VBPA~PARVW
    VBPA~KUNNR
    VBPA~ADRNP
    TPART~VTEXT
    FROM VBPA AS VBPA
    INNER JOIN TPART AS TPART
    ON VBPAPARVW EQ TPARTPARVW
    AND SPRAS = SY-LANGU
    INTO CORRESPONDING FIELDS OF TABLE I_PARTNER
    WHERE
    VBPA~VBELN EQ S_VBELN
    and vbpa~parvw in gr_partner.
    Regards,
    Nagaraj

  • Error while running PING program using applet. Pls correct the code.-urgent

    Can anyone pls correct the error in the below code.
    Program : TestExec1
    Using : Applet
    Logic : Trying to display the ping status in the text area but it returns error...!
    CODING
    import java.awt.*;
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.*;
    /*<applet code="TestExec1" width=380 height=150>
    </applet>
    public class TestExec1 extends Applet
    String line = null;
    TextArea outputArea;
    Process p;     
         public void init()
              outputArea = new TextArea(20,20);
         public void start()
              try
                        Process p= Runtime.getRuntime().exec("ping 192.168.100.192 -t");
                        BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
                        while ((line = in.readLine()) != null)
                             outputArea.append("\n" + line);
                             System.out.println(line);
              catch (IOException e)
                        e.printStackTrace();
    Error : C:\Program Files\Java\jdk1.6.0_02\bin>appletviewer TestExec1.java
    java.security.AccessControlException: access denied (java.io.FilePermission <<AL
    L FILES>> execute)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:
    546)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at java.lang.SecurityManager.checkExec(SecurityManager.java:782)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:447)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:431)
    at java.lang.Runtime.exec(Runtime.java:328)
    at TestExec1.start(TestExec1.java:31)
    at sun.applet.AppletPanel.run(AppletPanel.java:458)
    at java.lang.Thread.run(Thread.java:619)
    Regards
    ESM

    java.security.AccessControlException: access denied (java.io.FilePermission
    <<ALL FILES>> execute)This message tells you that the applet does not have permission to access/execute files. Access may be granted by either signing the applet, which allows the user to grant (or not grant) the access when running the applet, or by adding the necessary permission file to the user's computer.
    See http://java.sun.com/javase/6/docs/technotes/guides/security/index.html

  • Please let me know if the code works.

    When I do the conversion with the following data file,stag table the program doesn't populate the data in the mtl_transactions_interface table and the following error is thrown.
    FDPSTP failed due to ORA-20100: File o0046035.tmp creation for FND_FILE failed.
    Please help.
    create or replace package XX_INV_ONHAND_QTY_PKG
    -- CREATED BY :JHANSI
    -- PURPOSE This Pl/sql package for Onhand Quantities Conversion
    -- N : New Record
    -- E : Errored Record
    -- p : Processed Record
    -- CHANGE HISTORY
    -- Date Version CR# Change Author
    -- 24-Nov-2007 1.00 suhasini
    -- DYNAMIC SQL :NO
    -- Note
    as
    procedure insert_data;
    procedure validate;
    procedure XX_INV_ONHAND_QTY_PROC(errbut OUT VARCHAR2,
    retcode OUT NUMBER
    end XX_INV_ONHAND_QTY_PKG;
    CREATE OR REPLACE PACKAGE BODY XX_INV_ONHAND_QTY_PKG
    -- CREATED BY :JHANSI
    -- PURPOSE This Pl/sql package for Onhand Quantities Conversion
    -- N : New Record
    -- E : Errored Record
    -- p : Processed Record
    -- CHANGE HISTORY
    -- Date Version CR# Change Author
    -- 24-Nov-2007 1.00 suhasini
    -- DYNAMIC SQL :NO
    -- Note
    IS
    /*PROCEDURE LOG (p_msg VARCHAR2)
    IS
    BEGIN
    IF (fnd_global.user_id = -1)
    THEN
    NULL;
    DBMS_OUTPUT.put_line (p_msg);
    ELSE
    fnd_file.put_line (fnd_file.LOG, p_msg);
    END IF;
    END LOG;*/
    PROCEDURE insert_data
    IS
    CURSOR cur_xx_inv_onhand_conv_stg
    IS
    SELECT ROWID, a.*
    FROM xx_inv_onhand_conv_stg a
    WHERE status_flag = 'V';
    l_err_msg VARCHAR2 (1000);
    l_source_line_id NUMBER := 1;
    l_source_header_id NUMBER := 1;
    l_process_flag NUMBER := 1;
    l_transaction_mode NUMBER := 3;
    l_transaction_header_id NUMBER := 1;
    l_transaction_type_id NUMBER;
    BEGIN
    BEGIN
    l_transaction_type_id := 0;
    SELECT transaction_type_id
    INTO l_transaction_type_id
    FROM mtl_transaction_types
    WHERE UPPER (transaction_type_name) =
    UPPER ('Miscellaneous receipt');
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line(fnd_file.log,' TRANSACTION_TYPE_NAME Miscellaneous receipt Is Not Defined In The System');
    END;
    FOR rec_xx_inv_onhand_conv_stg IN cur_xx_inv_onhand_conv_stg
    LOOP
    l_err_msg := NULL;
    BEGIN
    INSERT INTO mtl_transactions_interface
    (source_code,
    source_header_id, source_line_id,
    process_flag, transaction_mode,
    transaction_header_id,
    transaction_quantity,
    transaction_uom, transaction_type_id,
    item_segment1, created_by,
    creation_date, last_update_date, last_update_login,
    last_updated_by,
    organization_id, transaction_date,
    subinventory_code, distribution_account_id,
    inventory_item_id)
    VALUES (rec_xx_inv_onhand_conv_stg.source_code,
    l_source_header_id, l_source_line_id,
    l_process_flag, l_transaction_mode,
    l_transaction_header_id,
    rec_xx_inv_onhand_conv_stg.onhand_qty,
    rec_xx_inv_onhand_conv_stg.uom, l_transaction_type_id,
    rec_xx_inv_onhand_conv_stg.item, fnd_global.user_id,
    SYSDATE, SYSDATE, fnd_global.user_id,
    fnd_global.user_id,
    rec_xx_inv_onhand_conv_stg.organization_id, SYSDATE,
    rec_xx_inv_onhand_conv_stg.subinventory_code, 13401,
    rec_xx_inv_onhand_conv_stg.inventory_item_id);
    UPDATE xx_inv_onhand_conv_stg
    SET status_flag = 'P'
    WHERE ROWID = rec_xx_inv_onhand_conv_stg.ROWID;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_err_msg := ' Insert Error ' || SQLERRM;
    UPDATE xx_inv_onhand_conv_stg
    SET status_flag = 'E',
    error_msg = l_err_msg
    WHERE ROWID = rec_xx_inv_onhand_conv_stg.ROWID;
    END;
    END LOOP;
    COMMIT;
    END insert_data;
    -- exec xxqc_inv_onhand_pck. xxqc_inv_onhand_proc('V1');
    PROCEDURE VALIDATE
    IS
    l_account_alias_receipt mtl_transaction_types.transaction_type_id%TYPE
    DEFAULT NULL;
    l_acct_period_id org_acct_periods.acct_period_id%TYPE
    DEFAULT NULL;
    l_transaction_type_id mtl_transaction_types.transaction_type_id%TYPE
    DEFAULT NULL;
    l_transaction_action_id mtl_transaction_types.transaction_action_id%TYPE
    DEFAULT NULL;
    l_transaction_source_id mtl_generic_dispositions.disposition_id%TYPE
    DEFAULT NULL;
    l_transaction_source_type_id mtl_txn_source_types.transaction_source_type_id%TYPE
    DEFAULT NULL;
    l_location_id mtl_item_locations_kfv.inventory_location_id%TYPE
    DEFAULT NULL;
    l_organization_id org_organization_definitions.organization_id%TYPE
    DEFAULT NULL;
    l_inventory_item_id mtl_system_items_b.inventory_item_id%TYPE
    DEFAULT NULL;
    l_secondary_inventory_name mtl_secondary_inventories.secondary_inventory_name%TYPE
    DEFAULT NULL;
    l_inventory_location_id mtl_item_locations.inventory_location_id%TYPE
    DEFAULT NULL;
    l_lot_control_code mtl_system_items_b.lot_control_code%TYPE
    DEFAULT NULL;
    l_serial_number_control_code mtl_system_items_b.serial_number_control_code%TYPE
    DEFAULT NULL;
    l_shippable_item_flag mtl_system_items_b.shippable_item_flag%TYPE
    DEFAULT NULL;
    l_trans_enb_flag mtl_system_items_b.mtl_transactions_enabled_flag%TYPE
    DEFAULT NULL;
    l_lot_count NUMBER DEFAULT NULL;
    l_uom_count NUMBER DEFAULT NULL;
    l_error_count NUMBER DEFAULT NULL;
    l_lot NUMBER DEFAULT NULL;
    l_serial_number NUMBER DEFAULT NULL;
    l_code_combination_id gl_code_combinations.code_combination_id%TYPE
    DEFAULT NULL;
    l_reason_id mtl_transaction_reasons.reason_id%TYPE
    DEFAULT NULL;
    l_reason_name mtl_transaction_reasons.reason_name%TYPE
    DEFAULT NULL;
    l_process_flag NUMBER DEFAULT NULL;
    l_user NUMBER DEFAULT NULL;
    l_transaction_error_flag VARCHAR2 (4) DEFAULT NULL;
    l_trans_date DATE;
    l_tran_type VARCHAR2 (1000) := NULL;
    l_locator_name VARCHAR2 (2000) := NULL;
    l_new_uom VARCHAR2 (10) := NULL;
    l_master_org mtl_parameters.organization_code%TYPE;
    l_status VARCHAR2 (10);
    l_valerr_count NUMBER;
    l_val_count NUMBER;
    l_err_msg VARCHAR2 (2000);
    l_message VARCHAR2 (2000);
    l_uom_code VARCHAR2 (10);
    l_count NUMBER;
    l_commit_count NUMBER := 0;
    CURSOR cur_inv_onhand_stg
    IS
    SELECT a.*, ROWID
    FROM xx_inv_onhand_conv_stg a
    WHERE status_flag = 'N';
    BEGIN
    FOR rec_inv_onhand_stg IN cur_inv_onhand_stg
    LOOP
    l_err_msg := NULL;
    l_organization_id := 0;
    l_inventory_item_id := 0;
    -- Start Of Validation Block For Organization Code
    BEGIN
    SELECT organization_id
    INTO l_organization_id
    FROM mtl_parameters
    WHERE organization_code = rec_inv_onhand_stg.organization_code;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    l_message := ' Invalid Org Code '
    || rec_inv_onhand_stg.organization_code;
    WHEN TOO_MANY_ROWS
    THEN
    l_message :=
    ' Org Code Error ... Too Many Rows Errors For Organization '
    || rec_inv_onhand_stg.organization_code;
    WHEN OTHERS
    THEN
    l_message :=
    ' Org Code Error ... Un Handled Exception Error For Organization '
    || rec_inv_onhand_stg.organization_code
    || ' '
    || SQLERRM;
    END;
    -- Check Item Exists in Oracle
    IF (l_organization_id <> 0)
    THEN
    -- Validation Block For Item And Bom Enabled Flag At Assembly Level
    BEGIN
    SELECT inventory_item_id
    INTO l_inventory_item_id
    FROM mtl_system_items_b
    WHERE segment1 = rec_inv_onhand_stg.item
    AND organization_id = l_organization_id;
    IF (l_inventory_item_id <> 0)
    THEN
    BEGIN
    SELECT COUNT (1)
    INTO l_count
    FROM mtl_system_items_b
    WHERE inventory_item_id = l_inventory_item_id
    AND organization_id = l_organization_id
    AND mtl_transactions_enabled_flag = 'Y';
    IF (l_count = 0)
    THEN
    l_message := ' Item '
    || rec_inv_onhand_stg.item
    || ' Is Not TRANSACTIONS ENABLED '
    || ' In Organization '
    || rec_inv_onhand_stg.organization_code;
    END IF;
    END;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    l_message := ' Invalid Item '
    || rec_inv_onhand_stg.item
    || ' In Organization '
    || rec_inv_onhand_stg.organization_code;
    WHEN TOO_MANY_ROWS
    THEN
    l_message := ' Retrive Of Too Many Rows In Org '
    || rec_inv_onhand_stg.organization_code
    || ' For Item '
    || rec_inv_onhand_stg.item;
    WHEN OTHERS
    THEN
    l_message := 'Un Handled Exception For Item '
    || rec_inv_onhand_stg.item
    || ' In Organization '
    || rec_inv_onhand_stg.organization_code;
    END;
    END IF;
    -- Validation For UOM
    BEGIN
    SELECT unit_of_measure
    INTO l_uom_code
    FROM mtl_units_of_measure
    WHERE UPPER (unit_of_measure) = UPPER (rec_inv_onhand_stg.uom);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    l_message := l_message
    || 'Unit Of Measure is Not Defined '
    || rec_inv_onhand_stg.uom;
    WHEN TOO_MANY_ROWS
    THEN
    l_message := l_message || SQLERRM || rec_inv_onhand_stg.uom;
    WHEN OTHERS
    THEN
    l_message := l_message || SQLERRM || rec_inv_onhand_stg.uom;
    END;
    BEGIN
    SELECT secondary_inventory_name
    INTO l_secondary_inventory_name
    FROM mtl_secondary_inventories
    WHERE UPPER (secondary_inventory_name) =
    UPPER (rec_inv_onhand_stg.subinventory_code)
    AND organization_id = l_organization_id;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    l_message := l_message
    || ' Invalid Sub Inventory Code '
    || rec_inv_onhand_stg.subinventory_code
    || ' In Organization '
    || rec_inv_onhand_stg.organization_code;
    WHEN TOO_MANY_ROWS
    THEN
    l_message := l_message
    || ' Retrive Of Too Many Rows In Org '
    || rec_inv_onhand_stg.organization_code
    || ' For Sub Inventory Code'
    || rec_inv_onhand_stg.subinventory_code;
    WHEN OTHERS
    THEN
    l_message := l_message
    || 'Un Handled Exception For ISub Inventory Code'
    || rec_inv_onhand_stg.subinventory_code
    || ' In Organization '
    || rec_inv_onhand_stg.organization_code;
    END;
    -- Check On Hand QTY Should be Greater than Zero
    BEGIN
    IF (rec_inv_onhand_stg.onhand_qty <= 0)
    THEN
    l_message :=
    l_message
    || 'ONHAND QUANTITY CANNOT BE LESS THEN OR EQUAL TO ZERO ';
    END IF;
    END;
    IF l_message IS NOT NULL
    THEN
    UPDATE xx_inv_onhand_conv_stg
    SET status_flag = 'E',
    error_msg = l_message
    WHERE ROWID = rec_inv_onhand_stg.ROWID;
    l_error_count := l_error_count + 1;
    ELSE
    UPDATE xx_inv_onhand_conv_stg
    SET status_flag = 'V',
    organization_id = l_organization_id,
    inventory_item_id = l_inventory_item_id
    WHERE ROWID = rec_inv_onhand_stg.ROWID;
    END IF;
    l_commit_count := l_commit_count + 1;
    IF MOD (l_commit_count, 100) = 0
    THEN
    COMMIT;
    END IF;
    END LOOP;
    COMMIT;
    SELECT COUNT (*)
    INTO l_val_count
    FROM xx_inv_onhand_conv_stg
    WHERE status_flag = 'V';
    SELECT COUNT (*)
    INTO l_valerr_count
    FROM xx_inv_onhand_conv_stg
    WHERE status_flag = 'E';
    fnd_file.put_line(fnd_file.log,'Total validated records ' || l_val_count);
    fnd_file.put_line(fnd_file.log,'Total records in Error ' || l_valerr_count);
    IF (l_val_count > 0)
    THEN
    --insert_onhand_qty;
    NULL;
    END IF;
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line(fnd_file.log,'Program Failed ' || SQLERRM);
    END VALIDATE;
    PROCEDURE XX_INV_ONHAND_QTY_PROC (errbut OUT VARCHAR2, retcode OUT NUMBER)
    IS
    l_count NUMBER := 0;
    l_start_time VARCHAR2 (20);
    l_end_time VARCHAR2 (20);
    l_start_date DATE;
    l_end_date DATE;
    l_time_taken VARCHAR2 (250);
    BEGIN
    BEGIN
    fnd_global.apps_initialize (
    user_id => 1008604,
    resp_id => 20566,
    resp_appl_id => 702,
    security_group_id => 0,
    server_id => -1
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line(fnd_file.log,' Error While Initializing Fnd Global Package');
    fnd_file.put_line(fnd_file.log,' Sql Error Message is ' || SQLERRM);
    END;
    SELECT SYSDATE
    INTO l_start_date
    FROM DUAL;
    SELECT TO_CHAR (SYSDATE, 'HH24:MI:SS')
    INTO l_start_time
    FROM DUAL;
    fnd_file.put_line(fnd_file.log,CHR (10));
    fnd_file.put_line(fnd_file.log,' Program Started On '
    || TO_CHAR (SYSDATE, 'DD-MON-RRRR')
    || ' At '
    || l_start_time
    VALIDATE;
    insert_data;
    fnd_file.put_line(fnd_file.log,
    SELECT SYSDATE
    INTO l_end_date
    FROM DUAL;
    SELECT TO_CHAR (SYSDATE, 'HH24:MI:SS')
    INTO l_end_time
    FROM DUAL;
    fnd_file.put_line(fnd_file.log,CHR(10)
    || ' Program Ended On '
    || TO_CHAR (SYSDATE, 'DD-MON-RRRR')
    || ' At '
    || l_end_time
    SELECT FLOOR (((l_end_date - l_start_date) * 24 * 60 * 60) / 3600)
    || ' HOURS '
    || FLOOR (
    ( ((l_end_date - l_start_date) * 24 * 60 * 60)
    - FLOOR (
    ((l_end_date - l_start_date) * 24 * 60 * 60)
    / 3600
    * 3600
    / 60
    || ' MINUTES '
    || ROUND (
    ( ((l_end_date - l_start_date) * 24 * 60 * 60)
    - FLOOR (
    ((l_end_date - l_start_date) * 24 * 60 * 60) / 3600
    * 3600
    - ( FLOOR (
    ( ((l_end_date - l_start_date) * 24 * 60 * 60)
    - FLOOR (
    ( (l_end_date - l_start_date)
    * 24
    * 60
    * 60
    / 3600
    * 3600
    / 60
    * 60
    || ' SECS '
    INTO l_time_taken
    FROM DUAL;
    fnd_file.put_line(fnd_file.log,
    CHR (10)
    || 'TIME TAKEN TO RUN On Hand Qty CONVERSION PROGRAM IS :: '
    || l_time_taken
    || CHR (10)
    || CHR (10)
    fnd_file.put_line(fnd_file.log,' END OF QTM On Hand Qty Conversion Program ');
    -- exec xxqc_inv_onhand_pck.xxqc_inv_onhand_proc(:a,:b)
    END XX_INV_ONHAND_QTY_PROC;
    END XX_INV_ONHAND_QTY_PKG;
    create table xx_inv_onhand_conv_stg
    SOURCE_CODE     VARCHAR2(100),
    ORGANIZATION_CODE     VARCHAR2(10),
    SUBINVENTORY_CODE     VARCHAR2(10),
    ITEM     VARCHAR2(30),
    UOM     VARCHAR2(10),
    ITEM_STATUS     VARCHAR2(10),
    ONHAND_QTY     NUMBER,
    SOURCE     VARCHAR2(10),
    CREATED_BY     NUMBER,
    LAST_UPDATE_LOGIN     NUMBER,
    LAST_UPDATED_BY     NUMBER,
    PROCESS_FLAG     NUMBER,
    ORGANIZATION_ID     NUMBER,
    STATUS_FLAG     VARCHAR2(2),
    INVENTORY_ITEM_ID     VARCHAR2(100),
    ERROR_MSG      VARCHAR2(2)
    INVENTORY,V1,Mobile B,Computer,Ea,Active,20,RENOVA,12345,12345,12345,1,204,N,12816
    INVENTORY,V1,Stores,Computer,Ea,Active,20,RENOVA,12345,12345,12345,1,204,N,12816
    INVENTORY,V1,Stores,Cabinet ATX,Ea,Active,15,RENOVA,12345,12345,12345,1,204,N,12817
    INVENTORY,V1,Mobile B,Cabinet ATX,Ea,Active,15,RENOVA,12345,12345,12345,1,204,N,12817
    INVENTORY,V1,Stores,Cabinet Multimedia,Ea,Active,35,RENOVA,12345,12345,12345,1,204,N,12818
    INVENTORY,V1,Stores,Cabinet Multimedia,Ea,Active,35,RENOVA,12345,12345,12345,1,204,N,12818
    INVENTORY,V1,Mobile B,Cabinet Zoom,Ea,Active,12,RENOVA,12345,12345,12345,1,204,N,12819
    INVENTORY,V1,Stores,Processor Citrix,Ea,Active,40,RENOVA,12345,12345,12345,1,204,N,12820
    INVENTORY,V1,Mobile B,Processor Dual Core,Ea,Active,15,RENOVA,12345,12345,12345,1,204,N,12821
    INVENTORY,V1,Mobile B,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
    INVENTORY,V1,Stores,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
    INVENTORY,V1,Stores,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
    INVENTORY,V1,Mobile B,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
    INVENTORY,V1,Mobile B,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
    INVENTORY,V1,Stores,Ram 2 GB,Ea,Active,17,RENOVA,12345,12345,12345,1,204,N,12823
    INVENTORY,V1,Mobile B,Key Board TVS,Ea,Active,25,RENOVA,12345,12345,12345,1,204,N,12824
    INVENTORY,V1,Mobile B,Key Board Multi Media,Ea,Active,35,RENOVA,12345,12345,12345,1,204,N,12825
    INVENTORY,V1,Mobile B,Key Board Intel,Ea,Active,25,RENOVA,12345,12345,12345,1,204,N,12826
    INVENTORY,V1,Stores,Key Board Dell,Ea,Active,60,RENOVA,12345,12345,12345,1,204,N,12827

    FDPSTP failed due to ORA-20100: File o0046035.tmp creation for FND_FILE failed.
    Please help.Please verify the following:
    1) Make sure that APPLPTMP is set to a valid directory as shown above (Verify from the OS by issuing "echo $APPLPTMP" as applmgr user)
    2) Make sure that both the applmgr user and the database user "oracle" have read/write permissions on $APPLPTMP
    3) Make sure that APPLPTMP is the first entry in utl_file_dir (utl_file_dir is set in the init<SID>.ora file). To verify to what "utl_file_dir" is set:
    SQL> connect / as sysdba
    SQL> show parameter UTL_FILE_DIR

  • Simple Correction to the code

    Hi
    Data : V1(10) type c value '      123-',
           sign_flag(1).     
        IF V1 < 0.
          V1 = V1 * -1 .
          sign_flag = 'X'.
        ENDIF.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = V1
          IMPORTING
            OUTPUT = V1.
        IF sign_flag = 'X'.
          V1 = - ( V1 ).
        ENDIF.
        Write : V1.      
    <b>Above code is for Padding Leading Zeroes to Negative Number stored in field V1 with Data type C(10).</b>
    Output of above code is =  123-
    But I want it to be  = 000000123-
    How I can do that.
    Do the correct modifications in the program.
    Points will be given to the good ones.
    Regards
    Message was edited by:
            Tulip Shah

    use this code/.....
    Data : V1(10) type c value ' 123-',
           v2(10) TYPE n,
           v3(11) TYPE n,
    sign_flag(1).
    IF V1 < 0.
    V1 = V1 * -1 .
    sign_flag = 'X'.
    ENDIF.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    INPUT = V1
    IMPORTING
    OUTPUT = V1.
    IF sign_flag = 'X'.
    V1 = - ( V1 ).
    ENDIF.
    *v2 = v1.
    move v1 to v2.
    CONCATENATE v2 '-' into v3.
    Write :/ V1, / v3.
    With Regards,
    S.Barani

  • Please help by providing me the code

    Dear All,
    I want to send some message to each and every client sockets connected to the server whenever a response comes to a server from any of the client sockets connected to it.Please let me know how this can be done.
    It is something like the message will be globally available to all whenever a message comes from any one of the client socket.
    Thanks & regards,
    Saibal

    Hi...
    You mean like a chat program right?
    I cant give you code but this is how you can do this
    you should create a new thread for each new connection your server socket accepts and the thread should be listning to the incomming messages through that connection when ever an message arrives you have to pass it to all the connection for this you must maintane a collection of OutputStreams created from each active connection to improve the performance you can also use multiple threads to send messages.

  • Check the code - URGENT!

    HI All,
    To fetch the fallowing required fields from the related tables by the selection criteria Material No and Posting dates. Using ALV.
    I have written code for that but its not showing any results..plz go through my code and if possible rectify it.
    I am also attaching the selection criteria details and table with required field.
    Field Name Description Required level Reference Table
    MATNR Material No. Selection Criteria. (MARC)
    BUDAT Posting Date Selection criteria. (MKPF)
    MAKTX material Description Layout (MAKT)
    BEDAT PO Date Layout (EKKO)
    EBELN Purchase Order No. Layout (EKPO)
    MENGE Purchase Order Qty. Layout (EKPO)
    BPRME Order Price Unit Layout (EKPO)
    NETWR PO Net Value Layout (EKPO)
    BSTMG GR QTY Layout (MSEG)
    DMBTR GR Value Layout (MSEG)
    BPRBM Invoice Qty Layout (EKBE)
    REFWR Invoice value Layout (EKBE)
    here is my code:-
    TABLES: marc,
            mkpf,
            mseg,
            ekko,
            ekpo,
            ekbe,
            rseg.
    TYPE-POOLS: slis.
    DATA: BEGIN OF itab OCCURS 0,
          matnr LIKE marc-matnr,
          budat LIKE ekbe-budat,
          maktx LIKE makt-maktx,
          bedat LIKE ekko-bedat,
          ebeln LIKE mseg-ebeln,
          menge LIKE mseg-menge,
          bprme LIKE mseg-bprme,
          netwr LIKE ekpo-netwr,
          bstmg LIKE mseg-bstmg,
          dmbtr LIKE mseg-dmbtr,
          bprbm LIKE rseg-bprbm,
          refwr LIKE ekbe-refwr,
    END OF itab.
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    wa_fieldcat TYPE slis_fieldcat_alv.
    DATA v_repid TYPE sy-repid.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_matnr FOR marc-matnr,
                    s_budat FOR mkpf-budat.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      v_repid = sy-repid.
    START-OF-SELECTION.
    SELECT werks smbln bstmg dmbtr matnr ebeln FROM mseg INTO
    CORRESPONDING FIELDS OF TABLE itab
       WHERE matnr IN s_matnr.
    **ENDSELECT.
    SELECT SINGLE lifnr FROM ekko INTO CORRESPONDING FIELDS OF itab
       WHERE ebeln = mseg-ebeln.
    SELECT ebeln menge FROM ekpo INTO CORRESPONDING FIELDS OF itab
       WHERE ebeln = mseg-ebeln.
    ENDSELECT.
    SELECT ebeln belnr refwr budat FROM ekbe INTO CORRESPONDING FIELDS OF
    itab
    WHERE budat IN s_budat AND
           ebeln = mseg-ebeln.
    ENDSELECT.
    SELECT SINGLE matnr FROM marc INTO itab
    WHERE matnr = mseg-matnr.
    **APPEND itab.
    **END-OF-SELECTION.
    SELECT matnr ebeln menge bprme bstmg dmbtr FROM mseg INTO
    CORRESPONDING FIELDS OF TABLE itab
       WHERE matnr IN s_matnr.
    SELECT matnr maktx FROM makt INTO CORRESPONDING FIELDS OF TABLE itab
    WHERE matnr = mseg-matnr.
    SELECT ebeln bedat FROM ekko INTO CORRESPONDING FIELDS OF TABLE itab
    WHERE ebeln = mseg-ebeln.
    SELECT ebeln netwr FROM ekpo INTO CORRESPONDING FIELDS OF TABLE itab
    WHERE ebeln = mseg-ebeln.
    SELECT ebeln bprbm FROM rseg INTO CORRESPONDING FIELDS OF TABLE itab
    WHERE ebeln = mseg-ebeln.
    SELECT budat ebeln refwr FROM ekbe INTO CORRESPONDING FIELDS OF TABLE itab
    WHERE budat IN s_budat AND
           ebeln = mseg-ebeln.
      SELECT matnr ebeln menge bprme bstmg dmbtr FROM mseg INTO CORRESPONDING FIELDS OF TABLE itab WHERE matnr IN s_matnr.
      SELECT matnr maktx FROM makt INTO CORRESPONDING FIELDS OF TABLE itab FOR ALL ENTRIES IN itab WHERE matnr = itab-matnr.
      SELECT ebeln bedat FROM ekko INTO CORRESPONDING FIELDS OF TABLE itab FOR ALL ENTRIES IN itab WHERE ebeln = itab-ebeln.
      SELECT ebeln netwr FROM ekpo INTO CORRESPONDING FIELDS OF TABLE itab FOR ALL ENTRIES IN itab WHERE ebeln = itab-ebeln.
      SELECT ebeln bprbm FROM rseg INTO CORRESPONDING FIELDS OF TABLE itab FOR ALL ENTRIES IN itab WHERE ebeln = itab-ebeln.
      SELECT budat ebeln refwr FROM ekbe INTO CORRESPONDING FIELDS OF
        TABLE itab FOR ALL ENTRIES IN itab
      WHERE budat IN s_budat AND
      ebeln = itab-ebeln.
      APPEND itab.
      PERFORM build_fieldcatlog.
      PERFORM display_alv_report.
    LOOP AT itab.
    *WRITE:/ itab-menge, itab-werks, itab-smbln, itab-bstmg, itab-matnr,
    *itab-ebeln, itab-lifnr, itab-menge, itab-belnr, itab-refwr, itab-budat.
    ENDLOOP.
    *&      Form  build_fieldcatlog
          text
    -->  p1        text
    <--  p2        text
    FORM build_fieldcatlog .              "Form BUILD_FIELDCATLOG, Start
      wa_fieldcat-fieldname = 'maktx'.
      wa_fieldcat-seltext_m = 'maktx.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'bedat'.
      wa_fieldcat-seltext_m = 'bedat.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'EBELN'.
      wa_fieldcat-seltext_m = 'ebeln.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'MENGE'.
      wa_fieldcat-seltext_m = 'menge.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'bprme'.
      wa_fieldcat-seltext_m = 'bprme.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'netwr'.
      wa_fieldcat-seltext_m = 'netwr.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'BSTMG'.
      wa_fieldcat-seltext_m = 'bstmg.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'dmbtr'.
      wa_fieldcat-seltext_m = 'dmbtr.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'bprbm'.
      wa_fieldcat-seltext_m = 'bprbm'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'REFWR'.
      wa_fieldcat-seltext_m = 'refwr.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM.                    "build_fieldcatlog
    " build_fieldcatlog        "Form BUILD_FIELDCATLOG, End
    *&      Form  display_alv_report
          text
    FORM display_alv_report.      "Form DISPLAY_ALV_REPORT, Start
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = v_repid
          it_fieldcat            = i_fieldcat[]
          i_callback_top_of_page = 'TOP-OF-PAGE'
          i_save                 = 'A'
        TABLES
          t_outtab               = itab.
    ENDFORM.                    "display_alv_report
    TOP-OF-PAGE.
      WRITE:/ 'Purchase request Print program'.
    END-OF-PAGE.

    hi,
    put a break point in ur select statement and check whether sy-subrc eq to 0 or 4. i think ur select staement is not executing.
    and generally matnr is of 18 character length so use call FM 'CONVERSION_ALPHA_EXIT_INPUT'  as
    p_matnr like mara-matnr.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = p_matnr
    IMPORTING
       OUTPUT        = matnr
    use this for ebeln also if ur select statement doesn't work.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Please Suggest me what is the use of Inversion Routine

    Hai All,
    Please give details about Inversion Routine in which senarios we have to use this.
    Help document I have seen but it is not that much clear.
    Thanks,
    Kiran Manyam.

    Hi
    If you have defined routines in the transformation for a VirtualProvider, for performance reasons it may be useful to create inversion routines for these routines. In this way you can transform the selection criteria of a navigation step into selection criteria for the extractor. However, you do not require inversion routines to ensure the consistency of the data.
    You can create an inversion routine for all types of routine. The following rules apply:
    ●      With expert routines, there is no segmentation into conditions.
    ●      With start routines, the system performs segmentation into conditions. The system applies this to the complete source structure. The source structure is the start and end point.
    ●      With end routines, the target structure is the start and end point.
    Also
    If you have defined transfer routines in the transfer rules for the InfoSource of a SAP RemoteCube, for performance reasons, it makes sense to also create inversion routines for each.
    When jumping to a transaction in another SAP system using the report-report interface, you have to create an inversion routine for the transfer routine if you are using one, because otherwise the selections cannot be transferred to the source system
    Check the below link for details on implementing inversion routines.
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/f5af4a4db53482e10000000a1553f6/frameset.htm
    Hope this helps
    Regards
    Shilpa

  • I am submitting GLLEZL program with following parameters, i am getting ledger_id as -1 in gl_headers after journal import,please suggest me what is the problem..?

        l_journal_import_req_id := fnd_request.submit_request (
                application => 'SQLGL', -- application short name
                program => 'QFEQGLLEZL_ORIGINAL', -- program short name
                description => NULL, -- program name
                start_time => NULL, -- start date
                sub_request => FALSE, -- sub-request
                argument1 => l_iface_run_id, -- interface run id
              --  argument2 => l_sob_id, -- set of books id
                  argument2 => 1,--l_ledger_id,
                argument3 => l_suspense_flag, -- error to suspense flag
                argument4 => l_date_start, -- from accounting date
                argument5 => l_date_end, -- to accounting date
                argument6 => l_summary_journals_flag, -- create summary flag
                argument7 => l_dff_flag, -- import desc flex flag
                argument8 => 'Y' -- Data security mode flag
    Please give me the overview of the gl_interface_control functionality tooo
    Message was edited by: user11970832

        l_journal_import_req_id := fnd_request.submit_request (
                application => 'SQLGL', -- application short name
                program => 'QFEQGLLEZL_ORIGINAL', -- program short name
                description => NULL, -- program name
                start_time => NULL, -- start date
                sub_request => FALSE, -- sub-request
                argument1 => l_iface_run_id, -- interface run id
              --  argument2 => l_sob_id, -- set of books id
                  argument2 => 1,--l_ledger_id,
                argument3 => l_suspense_flag, -- error to suspense flag
                argument4 => l_date_start, -- from accounting date
                argument5 => l_date_end, -- to accounting date
                argument6 => l_summary_journals_flag, -- create summary flag
                argument7 => l_dff_flag, -- import desc flex flag
                argument8 => 'Y' -- Data security mode flag
    Please give me the overview of the gl_interface_control functionality tooo
    Message was edited by: user11970832

  • I am facing with the problem "plugin-container.exe has encountered a problem and needs to close. Please suggest how to fix the problem.

    I am using desktop computer with windows XP. Sometimes, I am facing with the problem "plugin-container.exe has encountered a problem and needs to close". After showing this event, the browser disappears automatically.

    See if there are any Crash Reports ID's saved.
    Type '''about:crashes''' in the Location Bar and hit Enter.
    Then open each Crash Report and once the report is loaded completely, copy and paste the URL of each report into the the '''''Post as Reply''''' box in this thread.
    IMO, seeing that you are using WinXP, you might be better off with the older Flash 10.3.183.90 version. Flash 11.0 and later have "improvements" that don't work on WinXP - only Vista and later. Adobe did continue to support and provide security updates for Flash 10.3 until a few months before WinXP went EOL back in April of this year.

  • Urgent-Please check the code

    Hi There,
    Could you please have a look at the code below and suggest whether I am using If else in good manner or not?
    User will enter Start date and end date at begbalance level and account value is also calculated at begbalance then we need to copy that value to months starting from the Start date month so I need to convert the integer value of month to string month.but it is giving error.
    var monthsdiff,endyear,startyear,startmonth,endmonth;
    fix("budget","begbalance",..........)
    Fix("hsp_inputvalue")
    "Account1"
    startmonth=@INT(@MOD("Date-start",10000)/100);
    Monthsidff=..........;
    if(startmonth=1)
    &startmon= "JAN";
    elseif(startmonth=2)
    &startmon= "FEB";
    elseif(startmonth=3)
    &startmon= "MAR";.........till dec
    endif
    if(endmonth=1)
    &endmon= "JAN";
    elseif(endmonth=2)
    &endmon= "FEB";
    elseif(endmonth=3)
    &endmon= "MAR"...till dec
    endif
    fix(&startmon)
    if(startyear==&CurrYear and endyear==&CurrYear)
    "Account1"=("Account1"/12) *monthsdiff;
    endfix
    else
    "Account1"->"may"=("Account1"/12) * monthsdiff;
    endfix
    endif
    endfix
    endfix
    here Curryear is 2011.
    Thanks
    Edited by: user10760185 on Sep 20, 2011 2:19 AM

    It looks like you are trying to assign a value to a substitution variable in your calc, you can't do that. ^^^Until quite recently, yes, but now if you read Robb Salzmann's blog and grab his CDF: http://codingwithhyperion.blogspot.com/2011/08/create-and-update-substitution.html
    Btw, beyond Robb's code being a cool hack, I'm not entirely sure I'd want to change sub var values on the fly but it at least appears to be possible.
    Regards,
    Cameron Lackpour

  • Uploaded error please suggest ...............URGENT

    Sale for ETAM under head "Sales _ retail(net)" has got uploaded in "sales on Approval"
    Sale for "Instituional Sales" has got uploaded in "sales-Retail(net)".
    Please suggest as to how the same can be rectified.
    very urgent
    Thank you
    Anil

    Sale for ETAM under head "Sales _ retail(net)" has got uploaded in "sales on Approval"
    Sale for "Instituional Sales" has got uploaded in "sales-Retail(net)".
    Please suggest as to how the same can be rectified.
    very urgent
    Thank you
    Anil

  • Just got an ipad air and while creating my apple ID with credit card, I got to itunes gift card/ itunes gift section and was asked to supply a CODE to proceed with the form but I don't have the code. please how how can i get the code?

    Just got an ipad air and why creating my apple ID with credit card, a CODE was requested in the itunes gift card/ itunes gift in order to preceed with the form but I don't have the code. Please how can I find the code so as to enable me complete the form successfully. Thanks alot

    The iTunes gift card field is optional, you don't have to fill it in - leave it blank if you don't have a gift card.
    iTunes gift cards are country-specific (they can only be used in their country of issue), and they are not available in all countries - so you might not be able to dill it anyway.

Maybe you are looking for