issue of fnd_global.apps_initialize

I'm trying to excute apps initialize but in error

Code: start fnd_global.apps_initialize (18091, 52887, 222); commit; end;

I tried to put option profile and everything. Can you please tell me what exactly will pin point.

Is this a question depend on SQL Developer?

As I trying to run a mastic of sqldeveloper, his job very well. But on SQLDEVELOPER does not.

Error-
Error report-
ORA-20001: Oracle - 20001 error: ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, MO_GLOBAL. INIT, N, ERRNO,-20001, N, REASON, ORA-20001: APP-FND-02901: you do not have the privilege to access any unit operating. Please check if your MB option profile: Security Profile includes operating any unit or the option to profile MO: business unit is defined.
has been detected in fnd_global.initialize [fnd_init_sql].
ORA-06512: at the 'APPS '. APP_EXCEPTION", line 72
ORA-06512: at the 'APPS '. FND_GLOBAL', line 265
ORA-06512: at the 'APPS '. FND_GLOBAL', line 2424
ORA-06512: at the 'APPS '. FND_GLOBAL', line 2546
ORA-06512: at the 'APPS '. FND_GLOBAL', line 2698
ORA-06512: at the 'APPS '. FND_GLOBAL', line 2636
ORA-06512: at line 1

Thanks for the moments techicgh.

A resolved.

In settings of SQL Developer - > NLS-> Enable by pass check box, and then restart SQL Developer.

NLS tools setting is only not with the DB up errors.

After adjusting, it worked for me.

Thank you

Tags: Oracle Applications

Similar Questions

  • fnd_global.apps_initialize fails when IBM Webshpere

    Hello

    We implement a web portal that will help users to place orders in Oracle order management. The Web portal is hosted (deployment) on Websphere 6.x. We have developed custom packages that call Oracle in-house seeds API to create sales orders in oracle ebs (11.5.10.2). When the application is deployed on the Oracle application server, it works well and creating the order, but whenever the application is deployed on Websphere (obviously after changes depending on the platform), the error occurs in the part of the custom code when fnd_global.apps_initialize is called. Driver Oracle is ojdbc14.jar is

    Error message looks like as below

    SQL Exception. : Error occurred in the [null::null] method: ORA-20001: Oracle - 20001 error: ORA-20001: 2074 Oracle error: ORA-02074: cannot DEFINE NLS in a distributed transaction
    has been detected in fnd_global.set_nls.set_parameter ('NLS_LANGUAGE', 'AMERICAN').
    has been detected in fnd_global.set_nls.
    ORA-06512: at the 'APPS '. APP_EXCEPTION", line 72
    ORA-06512: at the 'APPS '. FND_GLOBAL', line 240
    ORA-06512: at the 'APPS '. FND_GLOBAL', line 1410
    ORA-06512: at the 'APPS '. FND_GLOBAL', line 1655
    ORA-06512: at the 'APPS '. FND_GLOBAL', line 2171
    ORA-06512: at the 'APPS '. FND_GLOBAL', line 2313
    ORA-06512: at the 'APPS '. FND_GLOBAL', line 2251

    We went through all the threads mentioning such similar error and also checked notes on oracle metalink (Oracle support), none of them does not solve the problem. Has anyone seen this before and all light.

    Thank you
    Girish

    Problem seems to be resolved after the following steps in note id 556391.1. I had crossed this note earlier has well however it was package telephone with insufficient parameters showed no results so I thought that the suggestion of the note was not good enough, however, after the correction package and implementation of a separate for fnd_global.apps_initialize with pragma autonomous_transaction statement, it seems to have solved the problem.

    Thank you.

  • Issues raised by the reports in R12

    I created a simple rdf report where the query is based on synonym of oe_order_headers which has VPD.
    I'm under this report using a responsibility for which the MO:Security profile has been assigned.
    I am sure that MO: security profile is set up correctly and it is used to make OLTP transactions.
    When I run the report I see all the data in the report. I was expecting to see data for the organizations assigned to the security profile.

    Am I missing something here? I have to do something specific in the trigger of report so that the system identifies my context and restrict the data accordingly?
    If I use oe_order_headers_all it returns data. I want that my report to the MOAC to honor security model. Please let me know if I missed something here.
    Appreciate your help.

    Hello

    you define org intiliaze context and DNF in the after trigger report param.

    fnd_global.apps_initialize (fnd_global.user_id,
    fnd_global.resp_id,
    fnd_global.resp_appl_id
    );
    "mo_global.init ();
    (pièce de mo_global.set_policy_context', org_id) ".

    Thank you
    NGO

  • Can we use FND_REQUEST twice in the same package

    Hello

    In one of my procedure, Iam calling the program fnd_request.submit_request twice after the initialization of the settings.

    first time:
    If error_condition Met then 
    
    fnd_global.APPS_INITIALIZE(v_user_abc,v_resp_i d_abc,v_appl_id_abc); 
    
    id2 := FND_REQUEST.SUBMIT_REQUEST 
    (            'TEST',
                 'SSPHTRD',
                 'Email',
                 NULL,
                 FALSE,
                 v_file_name,    -- 
                 lv_conc_program_name,
                 p_email_to,
                 'POXXXX',       -- Main Procedure Concurrent Program Name
                 lv_comment,
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ');
    commit; 
    
    ELSIf no errors then 
    
    select user_id 
    into v_user_abc 
    from fnd_user 
    where upper(user_name) = 'ABC'; 
    
    select responsibility_id, application_id 
    into v_resp_id_xyz, v_appl_id_xyz 
    from fnd_responsibility_tl 
    where upper(responsibility_name) ='XYZ' 
    and language = 'US'; 
    
    fnd_global.APPS_INITIALIZE(v_user_abc,v_resp_i d_xyz,v_appl_id_xyz); 
    id2 := FND_REQUEST.SUBMIT_REQUEST 
    (            'TEST',
                 'SSPHTRD',
                 'Email',
                 NULL,
                 FALSE,
                 v_file_name,    -- 
                 lv_conc_program_name,
                 p_email_to,
                 'POXXXX',       -- Main Procedure Concurrent Program Name
                 lv_comment,
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                 ' ', ' ', ' ', ' ', ' ');
    commit; 
    The POXXXX program is not going to get fired the second time, when this procedure is called.

    I use FND_REQUEST even send emails, newspaper is getting printed in view_log.

    But the email does not send...


    Any help is appreciated

    Published by: Linus on 11 June 2012 23:29

    The second shipment is an elsif so both programs will never get fired.
    It will be the first or the second.

    Also check if the program is to run, but some other issues prevent e-mail. Try to send another program in the ELSE part.

    Sandeep Gandhi

  • How to set the values of the columns WHO of the API

    Hello

    I want to run an API that will update and insert data of lats. I want to know how I can get below the values in columns

    last_updated_by

    created_by

    last_update_login

    According to documents https://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T303920.htm then they should be TO_NUMBER (PROFILE FND_. VALUE ('USER_ID')), but these values return NULL from the back because I'm running database, not the application.


    For last_update_date and creation_date I use SYSDATE.

    APPRECIATE YOUR QUICK RESPONSE!

    Thank you and best regards,

    It has fnd_global.login_id, fnd_global.user_id (no need to to_number). But if you are in the back-end without connecting, there is no user. You can use the user 0 (sysadmin) or - 1 (anonymous). It makes sense that you would use that, since no matter which user you would use is actually not true right (that the user is not currently logged).

    Or perhaps you can use a default user, like a WEBSERVICE_DEFAULT_USER or something to connect as this user before performing actions (using fnd_global.apps_initialize).

  • DBMS_PROFILER

    Hi all

    I want to see total time taken by my package, so I run it as below but get no results.

    Please tell us how to see the total time per line.

    DECLARE
       errbuf   VARCHAR2 (100);
       retcode   NUMBER;
    BEGIN
       fnd_global.apps_initialize (1438, 50777, 660);
       mo_global.set_policy_context ('S', 82);
       DBMS_PROFILER.start_profiler;
       xxom01.xxommain01 (errbuf, retcode, 2114663);
       DBMS_PROFILER.stop_profiler;
    END;
    
    Getting Run id :
    
    SELECT plsql_profiler_runnumber.CURRVAL runid FROM DUAL;
    
    Output Sequel :
    
      SELECT s.line,
             p.total_occur,
             p.total_time,
             s.text
        FROM all_sources s,
             (SELECT u.unit_owner,
                     u.unit_name,
                     u.uit_type,
                     d.line#,
                     d.total_occur,
                     d.total_time / 1000000 total_time
                FROM plsql_profiler_date d, plsql_profiler_units u
               WHERE  u.runid = :run_id -- Run id from above sql
               AND u.runid = d.runid AND u.unit_number = d.unit_number) p
       WHERE     s.owner = p.unit_owner(+)
             AND s.name = p.unit_name(+)
             AND s.TYPE = p.unit_type(+)
             AND s.line = p.line#(+)
             AND s.name = UPPER ('')
             AND s.owner = UPPER ('')
    ORDER BY line;
    

    See the test below

    Connected to:

    Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production

    With the options of partitioning, OLAP, advanced analytics and Real Application Testing

    SQL > CREATE or REPLACE PACKAGE test_pkg

    2 AS

    FUNCTION test_func (p_param1 VARCHAR2) 3

    4 RETURN THE NUMBER;

    5 END test_pkg;

    6.

    Package created.

    SQL > show err

    No errors.

    SQL >

    SQL > CREATE or REPLACE PACKAGE test_pkg BODY

    2 AS

    FUNCTION test_func (p_param1 VARCHAR2) 3

    4 RETURN NUMBER

    5 AS

    6 BEGIN

    7

    8 IF p_param1 = 1 THEN

    9 RETURN 1;

    10 END IF;

    11

    12 RETURN 0;

    13

    14 END test_func;

    15

    16 END test_pkg;

    17.

    Package body created.

    SQL > show err

    No errors.

    SQL > SELECT runid, run_comment FROM plsql_profiler_runs

    2;

    RUNID RUN_COMMENT

    ---------- ------------------------------

    1 xxom01.xxommain01: 5 February 16

    SQL > SET SERVEROUTPUT ON

    SQL > DECLARE

    2 l_profilerresult directory;

    3 l_val NUMBER;

    4 BEGIN

    l_profilerresult 5: = DBMS_PROFILER. START_PROFILER ('xxom01: ' |) To_char (sysdate, 'DDMonYYYY'));

    6 l_val: = test_pkg.test_func (1);

    7 DBMS_OUTPUT. Put_line (l_val);

    8 l_profilerresult: = DBMS_PROFILER. STOP_PROFILER;

    9 END;

    10.

    1

    PL/SQL procedure successfully completed.

    SQL > SELECT runid, run_comment

    2 FROM plsql_profiler_runs

    3 WHERE run_comment = ' xxom01: ' | To_char (sysdate, 'DDMonYYYY');

    RUNID RUN_COMMENT

    ---------- ------------------------------

    5 xxom01: February 5, 2016

    SQL > SELECT ppu.runid,.

    2 ppu.unit_type,

    ppu.unit_name 3,.

    PPD.line # 4,

    5 ppd.total_time

    6 plsql_profiler_units spp.,

    7 plsql_profiler_data ppd

    8 WHERE ppu.runid = ppd.runid

    9 AND ppu.unit_number = ppd.unit_number

    10 AND ppu.runid = 5

    11 ORDER BY ppu.unit_number, ppd.line #;

    RUNID UNIT_TYPE UNIT_NAME LINE # TOTAL_TIME

    ---------- -------------------------------- -------------------------------- ---------- ----------

    5 ANONYMOUS BLOCK 1 0

    5 ANONYMOUS BLOCK 5 0

    5 ANONYMOUS BLOCK 6 20370

    5 ANONYMOUS BLOCK 7-27777

    5 ANONYMOUS BLOCK 8 925

    5 ANONYMOUS BLOCK 9 0

    PACK OF 5 BODY TEST_PKG 3 925

    PACK OF 5 BODY TEST_PKG 8 925

    PACK OF 5 BODY TEST_PKG 9 0

    PACK OF 5 BODY TEST_PKG 12 0

    PACK OF 5 BODY TEST_PKG 14 925

    11 selected lines.

  • URL of notification of information without login screen

    Hello

    I use ebs R12, I customized request these notification application display according to certain business information, I get notification information using the procedure of wf_notification.getFwkBody this referring URL and it works perfectly if I enter username and password of the ebs.

    I need to display notification information directly without going to the ebs login screen (I've already username and password of the ebs). I try to use fnd_global.apps_initialize to initialize the session but is not working, its goes directly to the screen connection and after i, but the user name and password, I see the notification.

    Note that I need to display the notification information inside my custom as iframe without work around java web application.

    Thank you

    I found the solution in this link

    https://docs.Oracle.com/CD/B14099_19/integrate.1012/b12160/instal32.htm

  • API to update the registration number in the VAT for provider/Supplier site

    Hello

    Is there a public API available to update the number of VAT registration for provider or on the website of the provider? I tried the API below with the provider and it did not work.

    DECLARE

    p_api_version NUMBER;

    p_init_msg_list VARCHAR2 (200);

    p_commit VARCHAR2 (200);

    p_validation_level NUMBER;

    x_return_status VARCHAR2 (200);

    x_msg_count NUMBER;

    x_msg_data VARCHAR2 (200);

    lr_vendor_rec apps.ap_vendor_pub_pkg.r_vendor_rec_type;

    lr_existing_vendor_rec ap_suppliers % ROWTYPE;

    l_msg VARCHAR2 (200);

    p_vendor_id NUMBER;

    BEGIN

    -Initialize session apps

    -fnd_global.apps_initialize (1234, 50833, 200);

    -mo_global.init ('SQLAP');

    -fnd_client_info.set_org_context (101);

    -Assign values of base

    p_api_version: = 1.0;

    p_init_msg_list: = fnd_api.g_true;

    p_commit: = fnd_api.g_true;

    p_validation_level: = fnd_api.g_valid_level_full;

    p_vendor_id: = 588011;

    -seller details

    -Disable the seller

    lr_vendor_rec.vendor_id: = 588011;

    lr_vendor_rec.tax_reference: = '123XXX222 ';

    lr_vendor_rec.vat_registration_num: = '123XXX222 ';

    -lr_vendor_rec.end_date_active: = SYSDATE;

    -lr_vendor_rec.enabled_flag: = 'n';

    ap_vendor_pub_pkg.update_vendor (p_api_version = > p_api_version,)

    p_init_msg_list = > p_init_msg_list,

    p_commit = > p_commit,

    p_validation_level = > p_validation_level,

    x_return_status = > x_return_status,

    x_msg_count = > x_msg_count,

    x_msg_data = > x_msg_data,

    p_vendor_rec = > lr_vendor_rec,

    p_vendor_id = > p_vendor_id);

    commit;

    Dbms_output.put_line ('X_RETURN_STATUS =' | x_return_status);

    Dbms_output.put_line ('X_MSG_COUNT =' | x_msg_count);

    Dbms_output.put_line ('X_MSG_DATA =' | x_msg_data);

    IF (x_return_status <>fnd_api.g_ret_sts_success) THEN

    BECAUSE me in 1... fnd_msg_pub.count_msg LOOP

    l_msg: = fnd_msg_pub.get (p_msg_index = > i,)

    p_encoded = > fnd_api.g_false);

    Dbms_output.put_line ('the API call failed with error' | l_msg);

    END LOOP;

    ON THE OTHER

    Dbms_output.put_line ('the API call ended with SUCESSS status');

    END IF;

    END;

    Could you please let me know if there I no API to update the same?

    Kind regards

    BS.

    Who did not even after initialization of applications.

    Could you please suggest is there anything else I need to do? or is there an other API to update the VAT number of the supplier?

    Kind regards

    BS.

  • hz_location_v2pub.update_location returns with status: U

    Here are the API I want to use to update the records.

    Initially I was running only for a records to verify the API, so I'll use the slider to no. documents.

    But it does not update. Here is the query and the output of DBMS.

    Query: -.

    ___________________________________________________________

    / * Formatted on 2015/03/23 13:08:30 (PS5 v5.215.12089.38647) * /.

    DECLARE

    p_location_rec HZ_LOCATION_V2PUB. LOCATION_REC_TYPE;

    p_object_version_number NUMBER;

    p_init_msg_list VARCHAR2 (5000);

    x_return_status VARCHAR2 (2000);

    x_msg_count NUMBER;

    x_msg_data VARCHAR2 (5000);

    BEGIN

    -Defining the context-

    ('AR') mo_global.init;

    / * fnd_global.apps_initialize (user_id = > 1318

    resp_id = > 50559

    resp_appl_id = > 222);

    mo_global.set_policy_context('S',204);

    fnd_global.set_nls_context ('AMERICAN'); * /

    -Initialization of parameters of the required API

    p_object_version_number: = 2;

    p_location_rec.location_id: = 3505;             -HZ_LOCATIONS. LOCATION_ID

    p_init_msg_list: = FND_API. G_MISS_CHAR;

    p_location_rec. Address1: = "Conrad 37 road Florida Glen";

    p_location_rec.address2: = ' Florida Glen 1708';

    p_location_rec.Address3: = ' P O Box 1101';

    p_location_rec. City: = 'Florida Glen. "

    p_location_rec.Postal_Code: = '1708';

    p_location_rec. Country: = 'GAUTENG ';

    DBMS_OUTPUT. Put_line ("Calling the hz_location_v2pub.update_location API");

    () hz_location_v2pub.update_location

    p_init_msg_list = > FND_API. G_TRUE,

    p_location_rec = > p_location_rec,

    p_object_version_number = > p_object_version_number,

    x_return_status = > x_return_status,

    x_msg_count = > x_msg_count,

    x_msg_data = > x_msg_data);

    IF x_return_status = fnd_api.g_ret_sts_success

    THEN

    COMMIT;

    DBMS_OUTPUT. Put_line ('create location is successful");

    DBMS_OUTPUT. Put_line ('output... information ») ;

    DBMS_OUTPUT. Put_line (' new Address1: ' | p_location_rec.address1);

    ON THE OTHER

    Dbms_output.put_line (' the location creation failed:' | x_msg_data);

    Dbms_output.put_line ('Status:' | x_return_status);

    ROLLBACK;

    BECAUSE me in 1... x_msg_count

    LOOP

    x_msg_data: = oe_msg_pub.get (p_msg_index = >, p_encoded = > 'F');

    Dbms_output.put_line (I |) ') ' || x_msg_data);

    END LOOP;

    END IF;

    DBMS_OUTPUT. Put_line ('end of the API');

    END;

    _________________________________________________________________________________________Query End_________________________

    ------------------------------------------DBMS_OUTPUT in TOAD-----------------------------------

    The hz_location_v2pub.update_location API call

    Creating location failed: The following SQL error occurred:

    ORA-06502: PL/SQL: digital or value error: character string buffer too small.

    Status: U

    1)

    Completion of the API

    ------------------------------------------------------------------------------------------------------------------------------

    I think you have to use l_location_recCOUNTY & not l_location_recCOUNTRIES...

    You can try the code below or the use of the l_location_recCOUNTY in your code?

    DECLARE

    l_location_rec HZ_LOCATION_V2PUB.LOCATION_REC_TYPE;
    p_object_version_number NUMBER;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);


    BEGIN


    l_location_rec.location_id := 3505;


      - - get the object version number of the current record
      select object_version_number
      into p_object_version_number
      from hz_locations
      where location_id = 3505;

    l_location_rec. Address1: = "Conrad 37 road Florida Glen";

    l_location_rec.address2: = ' Florida Glen 1708';

    l_location_rec.Address3: = ' P O Box 1101';

    l_location_rec. City: = 'Florida Glen. "

    l_location_rec.Postal_Code: = '1708';

    l_location_rec. County: = 'GAUTENG ';


    hz_location_v2pub.update_location(
    'T',
    l_location_rec,
    p_object_version_number,
    x_return_status,
    x_msg_count,
    x_msg_data);

    dbms_output.put_line(SubStr('x_return_status = '||x_return_status,1,255));
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));

    IF x_msg_count >1 THEN
    FOR I IN 1..x_msg_count
    LOOP
    dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
    END LOOP;
    END IF;
    END;

    Thanks,

    Arun

  • How update us the odometer readings

    Hi gurus,

    One of my requirement is to update the last reading of the odometer of an asset by using the Eam_MeterReading_PUB.create_meter_reading API when it is run, it does not update. The new meter reading ID is null and I see that the meter reading is not updated in the definition of the meter or the information on the last Service (EAM) windows

    The example script is the following:

    DECLARE

    v_return_status VARCHAR2 (40);

    v_msg_count NUMBER;

    v_msg_data VARCHAR2 (4000);

    v_reset_value NUMBER: = NULL;

    v_new_meter_reading_id NUMBER: = NULL;

    v_meter_reading_rec Eam_MeterReading_PUB.meter_reading_Rec_Type;

    BEGIN

    fnd_global.apps_initialize (user_id = > theuseridresp_id = > respidresp_appl_id = > respapplnid);

    V_METER_READING_REC. METER_ID: = 412408; -derived eam_asset_meters_v for active TR402

    V_METER_READING_REC. CURRENT_READING: = 1378; -odometer reading random - current reading in the definition of the metre is 722

    "v_meter_reading_rec.current_reading_date: = March 3, 2014;

    NULL;

    () EAM_MeterReading_PUB.create_meter_reading

    p_api_version = > 1.0,

    p_init_msg_list = > FND_API. G_FALSE,

    p_commit = > FND_API. G_FALSE,

    x_msg_count = > v_msg_count,

    x_msg_data = > v_msg_data,

    x_return_status = > v_return_status,

    p_meter_reading_rec = > v_meter_reading_rec,

    p_value_before_reset = > v_reset_value,

    x_meter_reading_id = > v_new_meter_reading_id

    );

    dbms_output.put_line ('New ID: ' | v_new_meter_reading_id);

    -IF v_return_status <>fnd_api.g_ret_sts_success THEN

    dbms_output.put_line (v_msg_count |) » '|| v_return_status | » '|| ( SQLERRM) ;

    dbms_output.put_line ('API Err: ' | v_msg_data);

    -END IF;

    COMMIT;

    EXCEPTION

    WHILE OTHERS THEN

    dbms_output.put_line ('Err: ' |) SQLERRM);

    END;

    -----------------------------

    The output:

    New ID:

    ORA-0000 S: normal end successfully

    Error API:

    The approach is good. No need to spend the reset_flag, unless it is necessary to reset odometer on a value less than the current reading in the system. A reason should be made available. Reset_flag is a field in the meter_reading_rec of the var, which is an Eam_MeterReading_PUB.meter_reading_Rec_Type. Please see SR 3-10403510631

    Thank you

  • Cannot submit the log import using fnd_request.submit_request

    Hi all

    Environment:

    -EBS R12.2.2

    -Oracle DB 11.2.0.3.0

    1.i am insert data into the table gl_interface

    INSERT INTO apps.gl_interface (status,

    ledger_id,

    accounting_date,

    currency_code,

    Date_Created,

    created_by,

    actual_flag,

    user_je_category_name,

    user_je_source_name,

    entered_dr,

    entered_cr,

    code_combination_id)

    values ('NEW',

    2023,

    31 December 2014 '.

    "USD."

    SYSDATE,

    1150,

    « A »,

    "MTM forward."

    "MTM forward."

    100,

    150,

    9006);

    2. then I insert the data into the gl_interface_control table

    INSERT

    IN apps.gl_interface_control (je_source_name, interface_run_id, status)

    VALUES)

    je_source_rec.user_je_source_name,

    Apps.gl_journal_import_s.nextval,

    'S');

    3. then running concurrent import program Journal, its request_id returns 0 .

    lv_request_id: = apps.fnd_request.submit_request)

    request = > "SQLGL"

    PROGRAM = > "GLLEZL"

    Description = > NULL,

    start_time = > SYSDATE,.

    sub_request = > FALSE,

    argument1 = > iv_interface_run_id, - interface id run

    argument2 = > iv_access_set_id,-set_id to data access

    Argument3 = > 'n', - post to suspense

    Argument4 = > NULL,-date

    Argument5 = > NULL,-to date

    Argument6 = > iv_summary_flag,-summary view

    Argument7 = > 'n',-import FDF

    Argument8 = > 'Y' - top-down mode

    );

    Please help me on this?

    If you need more details on this please let me know.

    Kind regards

    Sandrine

    Try Fnd_Global.apps_initialize before your code.

  • How to run Auto Bill all of OB

    Hello

    We need create a competing application to run from a single responsibility (responsibility all claims) to complete the process of Auto-facture against all the AR sobbed with batch source and by default a date equals the date of the application (no later than the current period of GL).

    Is this possible in 11i? If Yes, how?

    Kind regards

    Srikanth-

    I'm not big fan of customization, but sometimes it's easy for the end user.

    Srikanth - if you do not agree to be against the customization, here are the steps for customization:

    1. research to create and store the OU, batch mapping source (according to your requirement, you can decide how you want)

    2. starting at wrapper package initialize user, RESP

    fnd_global.apps_initialize (user_id =>

    resp_id =>

    resp_appl_id =>);

    3. place using the Autoinvoice request

    fnd_request.submit_request

  • How to import general imbalance using the standard import GL program.

    Hi experts,

    I wrote a package that the newspaper using standard gl inface import tax program.

    When I import the journal dolts he l gives an error (EU02, P). Please tell me how to import imbalance standard thorugh gl journal import program.

    It's my obligation to enter jv unbalance in the category 'Budget' of custome api.

    Please help me.

    Thank you

    Yoann

    Thank you.

    I try to download via the import program...

    PROCEDURE UPLOAD_BUDGET_JV (P_BUDGET_ID IN NUMBER) IS lv_request_id NUMBER;       number of irun_id;       errbuf VARCHAR2 (2000);       orig_req_id NUMBER;             num_copies NUMBER;       print_style VARCHAR2 (100);       printer VARCHAR2 (100);       save_output_flag VARCHAR2 (10);       save_output_bool BOOLEAN;       BEGIN fnd_global.apps_initialize (5443,50263,101);           fnd_profile.get ('CONC_REQUEST_ID', errbuf);       orig_req_id: = to_number (errbuf);                   / * Copy the print at the request of the child options * / IF (fnd_concurrent.get_request_print_options (orig_req_id, num_copies, print_style, printer, save_output_flag)) THEN IF (save_output_flag = 'Y') THEN save_output_bool: = TRUE;         ANOTHER save_output_bool: = FALSE;         END IF;         IF (NOT fnd_request.set_print_options (printer, print_style, num_copies, save_output_bool)) THEN fnd_file.put_line (FND_FILE. Log, 'Impossible to set print options');         END IF;       END IF;                       dbms_output.put_line(errbuf||) e -'|| orig_req_id);           SELECT gl_journal_import_s.NEXTVAL INTO irun_id FROM DUAL;       dbms_output.put_line (irun_id);       INSERT INTO gl_interface_control (status, set_of_books_id, je_source_name, group_id, interface_run_id) VALUES detached ', 1001, 'Map', null, irun_id);       /* Launch the concurrent request */       lv_request_id         := fnd_request.submit_request(             'SQLGL',             'GLLEZL',             '',             '',             FALSE,             to_char(irun_id),             '1000',             'NO',             '',             '',             'NO',             'NO',             'Y',         chr(0),             '', '', '', '', '', '', '', '', '', '',             '', '', '', '', '', '', '', '', '', '',             '', '', '', '', '', '', '', '', '', '',             '', '', '', '', '', '', '', '', '', '',             '', '', '', '', '', '', '', '', '', '',             '', '', '', '', '', '', '', '', '', '',             '', '', '', '', '', '', '', '', '', '',             '', '', '', '', '', '', '', '', '', '',             '', '', '', '', '', '', '', '', '', '',             '');                   dbms_output.put_line ('req_nu -' | lv_request_id);       IF (lv_request_id = 0) THEN errbuf: = fnd_message.get;         fnd_file.put_line (FND_FILE. Journal, errbuf);         gl_message.write_log ('LEZS0001');         IF (fnd_concurrent.set_completion_status ('ERROR', errbuf)) THEN NULL;         END IF;         dbms_output.put_line (' ERROR: ' | errbuf);       ELSE gl_message.write_log ('LEZS0000', 1, 'REQ_ID', to_char (lv_request_id));         IF (fnd_concurrent.set_completion_status ('NORMAL', NULL)) THEN NULL;         END IF;       END IF;       IF lv_request_id = 0 THEN UPDATE XXGP_GL_BUDGET_STG SET attribut1 = 'ERROR in RUNNING PAY IMPORT PROGRAM', attribut2 = lv_request_id, status = "ERROR" WHERE BUDGET_ID = P_BUDGET_ID;       ELSE UPDATE XXGP_GL_BUDGET_STG SET attribut2 = lv_request_id, attribut1 = "TRANSFORMED", status = "TRANSFORMED" WHERE BUDGET_ID = P_BUDGET_ID;       END IF;              end UPLOAD_BUDGET_JV;

    This is the procedure which is used to start the interface. Thank you yoann

  • Upload of project task

    What api I can use to create the task in the already created project I use this api PA_PROJECT_PUB. ADD_TASK to create the task already create project before

    I use the following query and queries run correctly, but no stain adds to the project please guide me

    put request is given below

    anonymous block filled

    Define the overall status-> S

    Return status =

    in the procedure task_id is an output parameter, but it doesn't have a main (Return Status =)

    declare

    Number L_API_VERSION_NUMBER: = 1.0;

    L_COMMIT varchar2 (1): = 'F';

    L_INIT_MSG_LIST varchar2 (1): = 'F';

    Number L_MSG_COUNT;

    L_MSG_DATA varchar2 (2000);

    L_RETURN_STATUS varchar2 (1);

    L_PM_PRODUCT_CODE varchar2 (10);

    L_PM_TASK_REFERENCE varchar2 (25);

    L_PA_TASK_NUMBER varchar2 (100);

    L_TASK_NAME varchar2 (240);

    L_PM_PARENT_TASK_REFERENCE varchar2 (25);

    L_TASK_DESCRIPTION varchar2 (2000);

    Number L_PA_PROJECT_ID;

    L_PM_PROJECT_REFERENCE varchar2 (1000);

    Number L_MSG_INDEX_OUT;

    L_DATA varchar2 (2000);

    API_ERROR EXCEPTION;

    Number L_PA_PROJECT_ID_OUT;

    L_PA_PROJECT_NUMBER_OUT varchar (1000);

    Number L_TASK_ID;

    Start

    -Fnd_global.apps_initialize (user_id, resp_id, resp_appl_id);

    FND_GLOBAL. APPS_INITIALIZE (1509,22593,275);

    L_PM_TASK_REFERENCE: = '1';

    L_PA_TASK_NUMBER: = '1';

    L_TASK_NAME: = 'Construction '.

    L_PM_PARENT_TASK_REFERENCE: = ";

    L_TASK_DESCRIPTION: = 'plant protection function;

    L_PA_PROJECT_ID: = 5001;

    l_PM_PROJECT_REFERENCE: = ";

    -call for global settings-

    pa_interface_utils_pub.set_global_info

    (

    p_api_version_number = > 1.0,

    p_responsibility_id = > 22593,

    p_user_id = > 1509,

    p_msg_count = > l_msg_count,

    p_msg_data = > l_msg_data,

    P_RETURN_STATUS = > L_RETURN_STATUS

    );

    DBMS_OUTPUT. Put_line ('the Global Set status->' |) L_RETURN_STATUS);

    l_pm_product_code: = ";

    PA_PROJECT_PUB. ADD_TASK

    (P_API_VERSION_NUMBER = > L_API_VERSION_NUMBER,)

    P_COMMIT = > L_COMMIT,

    P_INIT_MSG_LIST = > L_INIT_MSG_LIST,

    P_MSG_COUNT = > L_MSG_COUNT,

    P_MSG_DATA = > L_MSG_DATA,

    P_RETURN_STATUS = > L_RETURN_STATUS,

    P_PM_PRODUCT_CODE = > L_PM_PRODUCT_CODE,

    P_PM_PROJECT_REFERENCE = > L_PM_PROJECT_REFERENCE,

    P_PA_PROJECT_ID = > l_PA_PROJECT_ID,

    P_PM_TASK_REFERENCE = > L_PM_TASK_REFERENCE,

    P_PA_TASK_NUMBER = > L_PA_TASK_NUMBER,

    P_TASK_NAME = > L_TASK_NAME,

    P_TASK_DESCRIPTION = > l_task_description,

    P_PM_PARENT_TASK_REFERENCE = > L_PM_PARENT_TASK_REFERENCE,

    P_PA_PROJECT_ID_OUT = > L_PA_PROJECT_ID_OUT,

    P_PA_PROJECT_NUMBER_OUT = > L_PA_PROJECT_NUMBER_OUT,

    P_TASK_ID = > l_TASK_ID

    );

    dbms_output.put_line ('Return Status =' | l_TASK_ID);

    EXCEPTION WHEN api_error CAN

    dbms_output.put_line (' an error occurred creating project duing');

    If (L_MSG_COUNT > 0) then

    because me in 1.L_MSG_COUNT

    LOOP

    () apps.PA_INTERFACE_UTILS_PUB.get_messages

    p_msg_count = > l_msg_count,

    p_encoded = > 'F',

    p_msg_data = > l_msg_data,

    p_data = > l_data.

    p_msg_index_out = > l_msg_index_out);

    dbms_output.put_line ('error message-> l_data' | l_data);

    dbms_output.put_line ('error message l_msg_data->' | l_msg_data);

    END LOOP;

    end if;

    WHILE OTHERS THEN

    dbms_output.put_line (' an error duing conversion, SQLCODE-> ' |) SQLERRM);

    IF (l_msg_count > = 1) THEN

    I'm IN 1.l_msg_count LOOP

    () PA_INTERFACE_UTILS_PUB.get_Messages

    p_msg_count = > l_msg_count,

    p_encoded = > 'F',

    p_msg_data = > l_msg_data,

    p_data = > l_data.

    p_msg_index_out = > l_msg_index_out);

    dbms_output.put_line ('error-> message' | l_data);

    end LOOP;

    end if;

    end;

    and what is the difference between the terms of the task


    PA_PROJECT_PUB. ADD_TASK and PA_PROJECT_PUB. LOAD_TASK

    PA_PROJECT_PUB. ADD_TASK

  • Payment records are processed and receipts created for charges paid in advance using API OE_ORDER_PUB.process_order

    Hello

    I want States to payment are processed and recipes created for prepayments by using OE_ORDER_PUB.process_order. I created the iStore sales order.

    Type of payment is "CASH".

    I tried the following code:

    DECLARE

    l_header_rec OE_ORDER_PUB. Header_Rec_Type;

    l_line_tbl OE_ORDER_PUB. Line_Tbl_Type;

    l_action_request_tbl OE_ORDER_PUB. Request_Tbl_Type;

    l_header_adj_tbl OE_ORDER_PUB. Header_Adj_Tbl_Type;

    l_line_adj_tbl OE_ORDER_PUB.line_adj_tbl_Type;

    l_header_scr_tbl OE_ORDER_PUB. Header_Scredit_Tbl_Type;

    l_line_scredit_tbl OE_ORDER_PUB. Line_Scredit_Tbl_Type;

    l_request_rec OE_ORDER_PUB. Request_Rec_Type;

    l_return_status VARCHAR2 (1000);

    l_msg_count NUMBER;

    l_msg_data VARCHAR2 (1000);

    p_api_version_number NUMBER: = 1.0;

    p_init_msg_list VARCHAR2 (10): = FND_API. G_FALSE;

    p_return_values VARCHAR2 (10): = FND_API. G_FALSE;

    p_action_commit VARCHAR2 (10): = FND_API. G_FALSE;

    x_return_status VARCHAR2 (1);

    x_msg_count NUMBER;

    x_msg_data VARCHAR2 (100);

    p_header_rec OE_ORDER_PUB. Header_Rec_Type: = OE_ORDER_PUB. G_MISS_HEADER_REC;

    p_old_header_rec OE_ORDER_PUB. Header_Rec_Type: = OE_ORDER_PUB. G_MISS_HEADER_REC;

    l_HEADER_PAYMENT_TBL oe_order_pub. Header_Payment_Tbl_Type;

    x_HEADER_PAYMENT_TBL oe_order_pub. Header_Payment_Tbl_Type;

    l_OLD_HEADER_PAYMENT_TBL oe_order_pub. HEADER_PAYMENT_TBL_type;

    x_Header_Payment_val_tbl oe_order_pub. Header_Payment_Val_Tbl_Type;

    p_header_val_rec OE_ORDER_PUB. Header_Val_Rec_Type: = OE_ORDER_PUB. G_MISS_HEADER_VAL_REC;

    p_old_header_val_rec OE_ORDER_PUB. Header_Val_Rec_Type: = OE_ORDER_PUB. G_MISS_HEADER_VAL_REC;

    x_Line_Payment_tbl OE_ORDER_PUB. Line_Payment_Tbl_Type;

    x_Line_Payment_val_tbl OE_ORDER_PUB. Line_Payment_Val_Tbl_Type;

    p_Header_Adj_tbl OE_ORDER_PUB. Header_Adj_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_TBL;

    p_old_Header_Adj_tbl OE_ORDER_PUB. Header_Adj_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_TBL;

    p_Header_Adj_val_tbl OE_ORDER_PUB. Header_Adj_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_VAL_TBL;

    p_old_Header_Adj_val_tbl OE_ORDER_PUB. Header_Adj_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_VAL_TBL;

    p_Header_price_Att_tbl OE_ORDER_PUB. Header_Price_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_PRICE_ATT_TBL;

    p_old_Header_Price_Att_tbl OE_ORDER_PUB. Header_Price_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_PRICE_ATT_TBL;

    p_Header_Adj_Att_tbl OE_ORDER_PUB. Header_Adj_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_ATT_TBL;

    p_old_Header_Adj_Att_tbl OE_ORDER_PUB. Header_Adj_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_ATT_TBL;

    p_Header_Adj_Assoc_tbl OE_ORDER_PUB. Header_Adj_Assoc_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_ASSOC_TBL;

    p_old_Header_Adj_Assoc_tbl OE_ORDER_PUB. Header_Adj_Assoc_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_ASSOC_TBL;

    p_Header_Scredit_tbl OE_ORDER_PUB. Header_Scredit_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_SCREDIT_TBL;

    p_old_Header_Scredit_tbl OE_ORDER_PUB. Header_Scredit_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_SCREDIT_TBL;

    p_Header_Scredit_val_tbl OE_ORDER_PUB. Header_Scredit_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_SCREDIT_VAL_TBL;

    p_old_Header_Scredit_val_tbl OE_ORDER_PUB. Header_Scredit_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_SCREDIT_VAL_TBL;

    p_line_tbl OE_ORDER_PUB. Line_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_TBL;

    p_old_line_tbl OE_ORDER_PUB. Line_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_TBL;

    p_line_val_tbl OE_ORDER_PUB. Line_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_VAL_TBL;

    p_old_line_val_tbl OE_ORDER_PUB. Line_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_VAL_TBL;

    p_Line_Adj_tbl OE_ORDER_PUB. Line_Adj_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_TBL;

    p_old_Line_Adj_tbl OE_ORDER_PUB. Line_Adj_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_TBL;

    p_Line_Adj_val_tbl OE_ORDER_PUB. Line_Adj_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_VAL_TBL;

    p_old_Line_Adj_val_tbl OE_ORDER_PUB. Line_Adj_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_VAL_TBL;

    p_Line_price_Att_tbl OE_ORDER_PUB. Line_Price_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_PRICE_ATT_TBL;

    p_old_Line_Price_Att_tbl OE_ORDER_PUB. Line_Price_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_PRICE_ATT_TBL;

    p_Line_Adj_Att_tbl OE_ORDER_PUB. Line_Adj_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_ATT_TBL;

    p_old_Line_Adj_Att_tbl OE_ORDER_PUB. Line_Adj_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_ATT_TBL;

    p_Line_Adj_Assoc_tbl OE_ORDER_PUB. Line_Adj_Assoc_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_ASSOC_TBL;

    p_old_Line_Adj_Assoc_tbl OE_ORDER_PUB. Line_Adj_Assoc_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_ASSOC_TBL;

    p_Line_Scredit_tbl OE_ORDER_PUB. Line_Scredit_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_SCREDIT_TBL;

    p_old_Line_Scredit_tbl OE_ORDER_PUB. Line_Scredit_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_SCREDIT_TBL;

    p_Line_Scredit_val_tbl OE_ORDER_PUB. Line_Scredit_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_SCREDIT_VAL_TBL;

    p_old_Line_Scredit_val_tbl OE_ORDER_PUB. Line_Scredit_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_SCREDIT_VAL_TBL;

    p_Lot_Serial_tbl OE_ORDER_PUB. Lot_Serial_Tbl_Type: = OE_ORDER_PUB. G_MISS_LOT_SERIAL_TBL;

    p_old_Lot_Serial_tbl OE_ORDER_PUB. Lot_Serial_Tbl_Type: = OE_ORDER_PUB. G_MISS_LOT_SERIAL_TBL;

    p_Lot_Serial_val_tbl OE_ORDER_PUB. Lot_Serial_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LOT_SERIAL_VAL_TBL;

    p_old_Lot_Serial_val_tbl OE_ORDER_PUB. Lot_Serial_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LOT_SERIAL_VAL_TBL;

    p_action_request_tbl OE_ORDER_PUB. Request_Tbl_Type: = OE_ORDER_PUB. G_MISS_REQUEST_TBL;

    x_header_val_rec OE_ORDER_PUB. Header_Val_Rec_Type;

    x_Header_Adj_tbl OE_ORDER_PUB. Header_Adj_Tbl_Type;

    x_Header_Adj_val_tbl OE_ORDER_PUB. Header_Adj_Val_Tbl_Type;

    x_Header_price_Att_tbl OE_ORDER_PUB. Header_Price_Att_Tbl_Type;

    x_Header_Adj_Att_tbl OE_ORDER_PUB. Header_Adj_Att_Tbl_Type;

    x_Header_Adj_Assoc_tbl OE_ORDER_PUB. Header_Adj_Assoc_Tbl_Type;

    x_Header_Scredit_tbl OE_ORDER_PUB. Header_Scredit_Tbl_Type;

    x_Header_Scredit_val_tbl OE_ORDER_PUB. Header_Scredit_Val_Tbl_Type;

    x_line_val_tbl OE_ORDER_PUB. Line_Val_Tbl_Type;

    x_Line_Adj_tbl OE_ORDER_PUB. Line_Adj_Tbl_Type;

    x_Line_Adj_val_tbl OE_ORDER_PUB. Line_Adj_Val_Tbl_Type;

    x_Line_price_Att_tbl OE_ORDER_PUB. Line_Price_Att_Tbl_Type;

    x_Line_Adj_Att_tbl OE_ORDER_PUB. Line_Adj_Att_Tbl_Type;

    x_Line_Adj_Assoc_tbl OE_ORDER_PUB. Line_Adj_Assoc_Tbl_Type;

    x_Line_Scredit_tbl OE_ORDER_PUB. Line_Scredit_Tbl_Type;

    x_Line_Scredit_val_tbl OE_ORDER_PUB. Line_Scredit_Val_Tbl_Type;

    x_Lot_Serial_tbl OE_ORDER_PUB. Lot_Serial_Tbl_Type;

    x_Lot_Serial_val_tbl OE_ORDER_PUB. Lot_Serial_Val_Tbl_Type;

    x_action_request_tbl OE_ORDER_PUB. Request_Tbl_Type;

    X_DEBUG_FILE VARCHAR2 (500);

    l_line_tbl_index NUMBER;

    l_msg_index_out NUMBER (10);

    BEGIN

    dbms_output. Enable (1000000);

    oe_debug_pub. DEBUG_ON;

    oe_debug_pub. Initialize;

    fnd_global.apps_initialize (0,52862,810);

    mo_global.init ('HAVE'); Context parameter - Muti-org

    MO_GLOBAL.set_policy_context (the of ', 945);

    -MO_GLOBAL. INIT('S',null);

    OE_DEBUG_PUB. G_FILE: = ";

    oe_debug_pub. DEBUG_ON;

    oe_debug_pub. Initialize;

    X_DEBUG_FILE: = OE_DEBUG_PUB. Set_Debug_Mode ('FILE');

    oe_debug_pub. SetDebugLevel (5); -Use 5 for the debug output the most, I warn you there is a lot of data

    oe_debug_pub. Add ('NEW DEBUG START');

    -It's the UPDATE command line

    -l_line_tbl_index: = 1;

    -Modified attributes

    l_header_rec: = OE_ORDER_PUB. G_MISS_HEADER_REC;

    l_header_rec.header_id: = 98393; -order header_id

    l_header_rec. Operation: = OE_GLOBALS. G_OPR_UPDATE;

    l_Header_Payment_tbl (1): = OE_ORDER_PUB. G_MISS_HEADER_PAYMENT_REC;

    l_Header_Payment_tbl (1). PAYMENT_NUMBER: = 1;

    l_Header_Payment_tbl (1) .operation: = OE_GLOBALS. G_OPR_DELETE;

    l_Header_Payment_tbl (1). PAYMENT_COLLECTION_EVENT: = "PREPAY";

    -l_Header_Payment_tbl (1). PAYMENT_TYPE_CODE: = 'CASH '; -"CASH OUT."        -to ask TC to inform the appropriate payment type

    l_Header_Payment_tbl (1). RECEIPT_METHOD_ID: = 1365;          -appropriate received methof

    l_Header_Payment_tbl (1) .payment_amount: = 877;           -amount of the payment

    -l_Header_Payment_tbl (1). PAYMENT_PERCENTAGE: = 100;

    -CALL TO ORDER

    OE_ORDER_PUB.process_order (p_org_id = > 945,

    p_api_version_number = > 1.0, p_init_msg_list = > fnd_api.g_true p_return_values = > fnd_api.g_true,

    p_action_commit = > fnd_api.g_false x_return_status = > l_return_status x_msg_count = > l_msg_count x_msg_data = > l_msg_data

    , p_header_rec = > l_header_rec

    -, p_line_tbl = > l_line_tbl

    -, p_action_request_tbl = > l_action_request_tbl

    , p_Header_Payment_tbl = > l_Header_Payment_tbl

    -SETTINGS

    , x_header_rec = > p_header_rec x_header_val_rec = > x_header_val_rec

    , x_Header_Adj_tbl = > x_Header_Adj_tbl x_Header_Adj_val_tbl = > x_Header_Adj_val_tbl, x_Header_price_Att_tbl = > x_Header_price_Att_tbl x_Header_Adj_Att_tbl = > x_Header_Adj_Att_tbl, x_Header_Adj_Assoc_tbl = > x_Header_Adj_Assoc_tbl, x_Header_Scredit_tbl = > x_Header_Scredit_tbl , x_Header_Scredit_val_tbl = > x_Header_Scredit_val_tbl, x_Header_Payment_tbl = > x_Header_Payment_tbl, x_Header_Payment_val_tbl = > x_Header_Payment_val_tbl, x_line_tbl = > p_line_tbl x_line_val_tbl = > x_line_val_tbl x_Line_Adj_tbl = > x_Line_Adj_tbl, x_Line_Adj_val_tbl = > x_Line_Adj_val_tbl , x_Line_price_Att_tbl = > x_Line_price_Att_tbl x_Line_Adj_Att_tbl = > x_Line_Adj_Att_tbl, x_Line_Adj_Assoc_tbl = > x_Line_Adj_Assoc_tbl x_Line_Scredit_tbl = > x_Line_Scredit_tbl, x_Line_Scredit_val_tbl = > x_Line_Scredit_val_tbl, x_Line_Payment_tbl = > x_Line_Payment_tbl , x_Line_Payment_val_tbl = > x_Line_Payment_val_tbl x_Lot_Serial_tbl = >

    x_Lot_Serial_tbl, x_Lot_Serial_val_tbl = > x_Lot_Serial_val_tbl x_action_request_tbl = > p_action_request_tbl);

    dbms_output.put_line (' OM Debug file: ' | oe_debug_pub.) G_DIR | » /'|| oe_debug_pub. G_FILE);

    -Retrieve messages

    BECAUSE me in 1... l_msg_count

    LOOP

    Oe_Msg_Pub.get (p_msg_index = >, p_encoded = > Fnd_Api.G_FALSE, p_data = > l_msg_data p_msg_index_out = > l_msg_index_out);

    DBMS_OUTPUT. Put_line ('message is: ' | l_msg_data);

    DBMS_OUTPUT. Put_line ('message index is: ' | l_msg_index_out);

    END LOOP;

    -Check return status

    IF l_return_status = FND_API. G_RET_STS_SUCCESS THEN

    dbms_output.put_line ("' updated successfully");

    ON THE OTHER

    dbms_output.put_line ('update Failed');

    END IF;

    END;

    I'm getting ORA-01403: no data available in the package OE_Header_Payment_Util procedure Query_Row error message.

    Can someone help me?

    Thank you

    Aslam

    Hi all

    I added following line and it works fine.

    l_Header_Payment_tbl (1). HEADER_ID: = 98393;

    Thank you

    Aslam

Maybe you are looking for

  • Create a public folder

    I have three Macs.  One is ethernetted to my Tine Capsule router.  The other two are WiFi was the TC.  I would like to create a public folder on each Mac so that none of the three can connect and send/receive documents to one of the Macs.  Ideally, I

  • Is there an add-on for Shopsafe of Bank of America?

    Since switching to Firefox, I am unable to use ShopSafe on my Bank of America account. I get an error message that an add-on is required to use this feature. ShopSafe works fine when I use IE as my browser.

  • IPhone 6 more than bricks because of the touchscreen unresponsive.

    IPhone 6 Plus a touchscreen unresponsive after a fall. Running IOS 9.2, 128 GB, screen OK, no error message, no line, no ghost image. Screen has appropriate information are always displayed, except no sensitivity to the touch.  "Home" button works. 

  • U410 Lenovo - replace AHCI RAID

    Hello world Does anyone have solution Chipset SATA Mode to AHCI RAID change? Since yesterday I try to find the appropriate solution for this issue. I already checked: (1) change of tone to register as above;Departure from HKEY_LOCAL_MACHINE\System\Cu

  • Windows could not load the kernel mode driver service

    How can I fix the service of kernel mode driver