FND_REQUEST.SUBMIT_REQUEST
Posted: 22 July 2009 08:38 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2009-07-22

Hi ,
I’m trying to submit a concurrent program from another concurrent program
the concurrent program i’m trying to call is “Retropay by Element” which is seeded by oracle
by writing the following pl/sql code :

procedure test_run_requests(retcode Out number ,
Errbuf Out Varchar2 ) is
ret number ;
v_msg varchar2(1000);
l_return_code boolean ;
begin
l_return_code := FND_REQUEST.SET_OPTIONS(’N’,’N’);

ret := FND_REQUEST.SUBMIT_REQUEST(application => ‘PAY’
,program => ‘RETROELE’
,start_time => sysdate
,sub_request => false
,argument1 => ‘RETROELEMENT’
,argument2 => ‘eyad’
,argument3 => ‘ÚäÇÕÑ ÇáÊÓæíÉ ÈÃËÑ ÑÌÚí’
,argument4 => to_char(to_date(’01/04/2009’,’dd/mm/yyyy’),’dd/mm/yyyy’)
,argument5 => to_char(to_date(’01/07/2009’,’dd/mm/yyyy’),’dd/mm/yyyy’)
,argument6 => ‘’
);

if ret = 0 then

FND_MESSAGE.RETRIEVE(MSGOUT => v_msg);
else
commit;
end if;

fnd_file.PUT_LINE(fnd_file.OUTPUT,ret||’ test ‘||v_msg);

end;

but it gives an error

here is the part of the log issued

HR_6881_HRPROC_ORA_ERR
SQLERRMC ORA-01722: invalid number

SQL_NO 4640
TABLE_NAME PER_BUSINESS_GROUPS
APP-PAY-06881: Error ORA-01722: invalid number
has occurred in table PER_BUSINESS_GROUPS at location 4640

Cause:  an oracle error has occurred.  The failure was reported on table PER_BUSINESS_GROUPS at location 4640 with the error text ORA-01722: invalid number

Action:  Please contact your support representative.

Profile
 
 
Posted: 23 July 2009 09:11 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  6
Joined  2006-05-30

Initialize apps in your code.

refer to following URL for code

http://oracleappshr.blogspot.com/2007/12/initializing-apps-when-we-are-running.html#links

Thanks,
Soham khot

 Signature 

Regards,
Soham Khot
Oracle Apps HRMS Consultant

Profile
 
 
Posted: 25 July 2009 11:21 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2009-07-22

hi soham,
I’ve tried to initalize the application but it gives the same error
I’ve initialized it by this code:

fnd_global.APPS_INITIALIZE(user_id => 1230
,resp_id => 50237
,resp_appl_id => 800
);

Profile