API - HZ_LOCATIONS

Perguntas relacionadas a questões técnicas do Oracle EBS. Criação de Concorrentes, Value Sets, Alerts, Forms Personalizations, Configurações, etc
Post Reply
cralcantara
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 4
Joined: Thu, 30 Apr 2009 10:58 am
Location: RJ

Hey guys.

I need guidelines as to maintain the HZ_Locations table via API.

Thanks for the attention.

Carlos A.
User avatar
fsitja
Rank: OraSauro
Rank: OraSauro
Posts: 611
Joined: Mon, 19 Jan 2009 4:29 pm
Location: Gaúcho no Rio de Janeiro - RJ
"The scars exist to remind us that the past was real"
Campanha: Como fazer uma pergunta e obter uma resposta.
http://tkyte.blogspot.com/2005/06/how-t ... tions.html

OCA & OCP Developer — OCE SQL Expert — OCS Data Warehousing Specialist

I think the question belongs to the EBS forum ...

I have no experience to answer your question, but in the OTN forum I found something: http://forums.oracle.com/forums/thread. ... dID=678965
cralcantara
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 4
Joined: Thu, 30 Apr 2009 10:58 am
Location: RJ

Thank you, I'll post the post in the right place.
paulochagas
Moderador
Moderador
Posts: 86
Joined: Wed, 15 Mar 2006 2:46 pm
Location: São Paulo - SP
Paulo Chagas Filho
__________________

Analista Funcional / Desenvolvedor Oracle EBS
MSN - paulochagas@hotmail.com
Gtalk - pachafi@gmail.com
Skype - paulochagas

Hi friend

What version of your EBS?
marlonpasquali
Rank: DBA Pleno
Rank: DBA Pleno
Posts: 248
Joined: Fri, 06 Feb 2009 3:02 pm
Location: ERECHIM - RS

Hello, I have these examples to include and change via API:

to include

Select all

 
            HZ_LOCATION_V2PUB.CREATE_LOCATION 
      										  ( 'T' 
      										  , P_LOCATION_REC 
      										  , X_LOCATION_ID 
      										  , X_RETURN_STATUS 
      										  , X_MSG_COUNT 
      										  , X_MSG_DATA 
      										  ); 
       
      		  dbms_output.put_line('*********** ENDERECO ****************'); 
      		  dbms_output.put_line('x_location_id: '||x_location_id); 
      		  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); 
      		  dbms_output.put_line('***************************'); 
       
       
            IF X_RETURN_STATUS  <> 'S' THEN 
              DBMS_OUTPUT.PUT_LINE ('ERRO CREATE LOCATION'); 
              DBMS_OUTPUT.PUT_LINE('x_msg_data '     || x_msg_data); 
    			    DBMS_OUTPUT.PUT_LINE('x_msg_count ' || x_msg_count ); 
               
      			  VRETURN_STATUS_END    := X_RETURN_STATUS; 
      			  VMSG_COUNT_END        := X_MSG_COUNT; 
      			  VMSG_DATA_END         := X_MSG_DATA; 
       
      		    ROLLBACK; 
              RETURN; 
      		  END IF;
to change

]
cralcantara
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 4
Joined: Thu, 30 Apr 2009 10:58 am
Location: RJ

Marlon Thanks for the aid, it was very useful.
cralcantara
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 4
Joined: Thu, 30 Apr 2009 10:58 am
Location: RJ

Folks.

I found the same way, a little more complete.

Select all

 
DECLARE 
	p_location_rec  HZ_LOCATION_V2PUB.LOCATION_REC_TYPE; 
	x_location_id   NUMBER; 
	x_return_status VARCHAR2(2000); 
	x_msg_count     NUMBER; 
	x_msg_data      VARCHAR2(2000); 
BEGIN 
	p_location_rec.country           := 'US'; 
	p_location_rec.address1          := '300 Oracle Parkway'; 
	p_location_rec.address2          := '13th Floor'; 
	p_location_rec.city              := 'Redwood Shores'; 
	p_location_rec.postal_code       := '94065'; 
	p_location_rec.state             := 'CA'; 
	p_location_rec.created_by_module := 'TCA_EXAMPLE'; 
	hz_location_v2pub.create_location('T', 
	p_location_rec, 
	x_location_id, 
	x_return_status, 
	x_msg_count, 
	x_msg_data);
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests