Create contact returns -- CAPI_STAT_LIBRARY_INTERNAL_COSMICRAY
I am not able to figure out this cause of this message.
The code i am using to create a contact is:
private void createCalendarContact() {
RequestResult results = new RequestResult();
String s = "";
s += "Content-Type: text/x-vard; charset=UTF-8\n";
s += "Content-Disposition: attachment; filename=\"\"\n";
s += "Content-Transfer-Encoding: QUOTED-PRINTABLE\n\n";
s+= "BEGIN:VCARD\n";
s+= "TITLE:dba\n";
s+= "ADR;TYPE=WORK:;; javk;xyz;;3333;ddd\n";
s+= "N;ENCODING=QUOTED-PRINTABLE:Jills;Joyce\n";
s+= "FN;ENCODING=QUOTED-PRINTABLE:Joyce=20Jills\n";
s+= "REV:20060120T151337Z\n";
s+= "VERSION:3.0\n";
s+= "END:VCARD\n";
System.out.println(s);
try {
mySession.storeContacts(Api.CSDK_FLAG_STORE_CREATE | Api.CSDK_FLAG_STREAM_NOT_MIME,s,results);
System.out.println("Status is :" + results.getFirstResult().getStatus());
System.out.println("Contact Created");
// results.getFirstFailure();
// System.out.println(results.toString());
catch (Api.StatusException e)
System.out.println("storeContacts returned status'" + e.getMessage() + "'");
System.out.println("storeContacts returned status'" + e + "'");
e.printStackTrace();
The return is
user: orcladmin
Content-Type: text/x-vard; charset=UTF-8
Content-Disposition: attachment; filename=""
Content-Transfer-Encoding: QUOTED-PRINTABLE
BEGIN:VCARD
TITLE:dba
ADR;TYPE=WORK:;;x;y;;'11212;z
N;ENCODING=QUOTED-PRINTABLE:Jills;Joyce
FN;ENCODING=QUOTED-PRINTABLE:Joyce=20Jills
REV:20060120T151337Z
VERSION:3.0
END:VCARD
storeContacts returned status'CAPI_STAT_LIBRARY_INTERNAL_COSMICRAY'
storeContacts returned status'oracle.calendar.sdk.Api$StatusException: CAPI_STAT_LIBRARY_INTERNAL_COSMICRAY'
Message was edited by:
user477791
The CAPI_STAT_LIBRARY_INTERNAL_COSMICRAY is not very helpfull for the end user, I will log a bug to have that error message, removed from the list of errors and have a meaningfull error retruned instead.
For the issue with problems querying the contact, here is how you can have it working.
Here is the output from a demo program, available in the 10G sdk package called CSDKCalendar.java.
Enter VCARD property name
FN
Enter Operator
startswith
Enter Case Sensitive true or false
false
Enter Value
Joy
oracle.calendar.sdk.Query@1f9dc36
BEGIN:VCARD
UID:ORACLE:CALSERV:CONTACT/AAAAAQAAAVcD6AAAAAAAAAQCAAQAAAAA
CLASS:PUBLIC
REV:20060515T152832Z
TITLE:dba
ADR;TYPE=X-ORACLE-OTHER:;;;;;;
ADR;TYPE=HOME:;;;;;;
ADR;TYPE=WORK:;;x;y;;'11212;z
N:Jills;Joyce;;;
FN:Joyce Jills
VERSION:3.0
END:VCARD
Currently the supported types for the queries are N, FN, BDAY, TITLE, ROLE, NOTE, CATEGORIES, NICKNAME, X-ORACLE-SPOUSE, X-ORACLE-ANNIVERSARY, X-ORACLE-OFFICE, and X-ORACLE-ASSISTANTNAME."
Regards,
Jean-Philippe
Similar Messages
-
Error while creating contact through API in Install Base
Hello
I am trying to create contacts when creating a install base through API...
I tried below code as per metalink note# 215456.1 and giving the below error. I checked setup andI have 'Ship To' exists in Instnace Party Account Relationsship setup in the aplication and also I have a party Id 1232890 exist in hz_parties table with party type as 'Person' and I passed contact_ip_id as instance_party_id from CSI_I_PARTIES table for the instance to be update...
Also, can anybody help me how to purge the error messages before calling the API, suppose if i have 2 records and all two records will error then my second record error getting contatenated with my first error and message count also getting increased(see error message below as message count coming as 2 even though there is only one error)
SET SERVEROUTPUT ON SIZE 1000000
DECLARE
p_instance_rec CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
p_ext_attrib_values_tbl
CSI_DATASTRUCTURES_PUB.EXTEND_ATTRIB_VALUES_TBL;
p_party_tbl CSI_DATASTRUCTURES_PUB.PARTY_TBL;
p_account_tbl CSI_DATASTRUCTURES_PUB.PARTY_ACCOUNT_TBL;
p_pricing_attrib_tbl CSI_DATASTRUCTURES_PUB.PRICING_ATTRIBS_TBL;
p_org_assignments_tbl CSI_DATASTRUCTURES_PUB.ORGANIZATION_UNITS_TBL;
p_asset_assignment_tbl CSI_DATASTRUCTURES_PUB.INSTANCE_ASSET_TBL;
p_txn_rec CSI_DATASTRUCTURES_PUB.TRANSACTION_REC;
x_instance_id_lst CSI_DATASTRUCTURES_PUB.ID_TBL;
x_return_status VARCHAR2(2000);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
x_msg_index_out NUMBER;
t_output VARCHAR2(2000);
t_msg_dummy NUMBER;
BEGIN
p_party_tbl(1).instance_party_id := null;
p_party_tbl(1).instance_id := 1216497;
p_party_tbl(1).party_source_table := 'HZ_PARTIES';
p_party_tbl(1).party_id := 1232890;
p_party_tbl(1).relationship_type_code := 'Ship To';
p_party_tbl(1).contact_flag := 'Y';
p_party_tbl(1).contact_ip_id := 1699185;
x_msg_count := 0;
p_party_tbl(1).OBJECT_VERSION_NUMBER := 1;
-- Now call the stored program
csi_item_instance_pub.update_item_instance(
1.0,
'F',
'F',
1,
p_instance_rec,
p_ext_attrib_values_tbl,
p_party_tbl,
p_account_tbl,
p_pricing_attrib_tbl,
p_org_assignments_tbl,
p_asset_assignment_tbl,
p_txn_rec,
x_instance_id_lst,
x_return_status,
x_msg_count,
x_msg_data);
-- Output the results
if x_msg_count > 0
then
for j in 1 .. x_msg_count loop
fnd_msg_pub.get
( j
, FND_API.G_FALSE
, x_msg_data
, t_msg_dummy
t_output := ( 'Msg'
|| To_Char
( j
|| ': '
|| x_msg_data
dbms_output.put_line
( SubStr
( t_output
, 1
, 255
end loop;
end if;
dbms_output.put_line('x_return_status = '||x_return_status);
dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
dbms_output.put_line('x_msg_data = '||x_msg_data);
-- COMMIT;
END;
ERROR
SQL> @p
Msg1: The Party Relationship Type (Ship To) entered is either invalid or it does
not exist in the Installed Base Lookups
Msg2: The Party Relationship Type (Ship To) entered is either invalid or it does
not exist in the Installed Base Lookups
x_return_status = E
x_msg_count = 2
x_msg_data = The Party Relationship Type (Ship To) entered is either invalid or
it does not exist in the Installed Base Lookups
PL/SQL procedure successfully completed.Hi
We are in 11.5.10.2 and I already checked notes which you sent before and setups are fine as the relationship type' Ship to' having 'contacts' enabled in the setup.
I am also seeing a differernt issue as once I update existing item instnace with the status 'Return for Credit' through API, system is not allowing me to update the extended attributes through front end application manually and I am seeing a note at the end of the screen as 'Note: This item instance cannot be updated. ' and this is only happening when I update the item instance status to 'Returned for Credit' not when I create new item instances with status as 'Created'. Is this intended functionality to restrict update on extended attributes if I change the status of item instnace to 'Return for Credit' ?
Thanks -
BAPI to create Contact person in Vendor master
Hi
We need to create Contact Person in Vendor master using BAPI.
We already used BDCs in CREMAS IDOC posting to create contact person. Since we dont get the address number back in IDOC posting, we need BAPI which can create the contact person and return the address number created for that contact person.
Regards
AnandHi,
this is not supported by CREMAS idoc types and there is no plan to get this in the future.
There is no BAPI and no direct function module to maintain a vendor.
The only solution that is coming will be in ECC 2005 EhP 4 or EhP5 and available from class VMD_EI_API with method Maintain.
If you need this functionality from the CREMAS idoctype, the only solution is to request a remote consulting project or an EoD project at SAP under component LO-MD-BP-VM.
BR
Alain -
How to create contact person with BAPI_ADDRCONTPART_SAVEREPLICA
Dears,
when using BAPI BAPI_ADDRCONTPART_SAVEREPLICA to create contact person,it exports the PERSON_NUMBER and ADDRESS_NUMBER, but no record found in table KNVK for customer or vendor .
The parameters is as below,
CALL FUNCTION 'BAPI_ADDRCONTPART_SAVEREPLICA'
EXPORTING
obj_type_p = 'BUS1006001'
obj_id_p = <personal number>
obj_type_c = 'KNA1'
obj_id_c = <customer>
obj_id_ext = SPACE
context = '0005'
also no return message and sy-subrc =0.
what maybe the error? and any other method to create contact person ?
Ths .DEAR,
after test by my colleague, after creating contact person by BAPI_ADDRCONTPART_SAVEREPLICA , then he should input the parter and name into BI structure bknvk when he use bi fm to create customer, then the contact person will be associated with the customer.
But i use BI fm 'VENDOR_BDCDATA' to create vendor, there is no such structure to do so. so no contact person associated with the vendor, but the contact person has been created and just not associated with this vendor in table KNVK.
are there any other methods to do such things to associate contact person with my vendor after call BI FM 'VENDOR_BDCDATA' ?
BR. -
Create Contact Person via BAPI / CMD_EI_API (TCode VAP1)
Hi everybody,
I have to develop a function module, which has to be called from an external application (java). This function module should, create contact persons for customers (like Transaction VAP1 does).
I did not find any function module or bapi for this, but I found class CMD_EI_API, which seems to possibly help me. Unfortunately, there is no documentation for this class.
Could anyone help me getting the contact person's addresses into the system? Just hustle me into the right direction and I will walk by myself
Thank you very much
Ralf
Edit: The contact persons addresses have to be maintained for existing customers.
Edited by: Ralf Wenzel on Feb 21, 2012 12:19 PMI have this working. I wrote a wrapper BAPI. If inserting a new contact, you need to get a new partner number otherwise it won't work. There is extra code in this function module that you can remove. I left it as I used the logic for other customer update BAPIs.
FUNCTION Z_CUSTOMER_CONTACT.
*"*"Local Interface:
*" IMPORTING
*" VALUE(CUST) LIKE ZCUSTOMER STRUCTURE ZCUSTOMER
*" VALUE(TESTFLAG) LIKE WDL_FLAG-XFLAG DEFAULT ' '
*" VALUE(FBAPI) TYPE CHAR01 OPTIONAL
*" VALUE(CONTACT) LIKE ZCONTACT STRUCTURE ZCONTACT
*" EXPORTING
*" VALUE(CUSTOMERNO) LIKE BAPIKNA103-CUSTOMER
*" VALUE(RETURN) LIKE BAPIRETURN1 STRUCTURE BAPIRETURN1
*" EXCEPTIONS
*" CLIENT_ERROR
*" KNA1_INCOMPLETE
*" KNB1_INCOMPLETE
*" KNB5_INCOMPLETE
*" KNVV_INCOMPLETE
*" KUNNR_NOT_UNIQUE
*" SALES_AREA_NOT_UNIQUE
*" SALES_AREA_NOT_VALID
*" INSERT_UPDATE_CONFLICT
*" NUMBER_ASSIGNMENT_ERROR
*" NUMBER_NOT_IN_RANGE
*" NUMBER_RANGE_NOT_EXTERN
*" NUMBER_RANGE_NOT_INTERN
*" ACCOUNT_GROUP_NOT_VALID
*" PARNR_INVALID
*" BANK_ADDRESS_INVALID
*" TAX_DATA_NOT_VALID
*" NO_AUTHORITY
*" COMPANY_CODE_NOT_UNIQUE
*" DUNNING_DATA_NOT_VALID
*" KNB1_REFERENCE_INVALID
*" CAM_ERROR
data: wa_header type cmds_ei_header,
wa_central_data type cmds_ei_vmd_central_data,
wa_central_datax type cmds_ei_vmd_central_data_xflag,
wa_address type bapiad1vl,
wa_addressx type bapiad1vlx,
wa_contact_addr type bapiad3vl,
wa_contact_addrx type BAPIAD3VLX,
wa_tax_ind_st type cmds_ei_tax_ind,
wa_tax_ind type cmds_ei_cmd_tax_ind,
wa_bankdetail_st type cvis_ei_cvi_bankdetail,
wa_bankdetail type cvis_ei_bankdetail,
wa_company_code_st type cmds_ei_company,
wa_company_code type cmds_ei_cmd_company,
wa_functions_st type cmds_ei_functions,
wa_functions type cmds_ei_cmd_functions,
wa_tcontact type CVIS_EI_PHONE,
wa_phone_st type CVIS_EI_PHONE_STR,
wa_phone type CVIS_EI_CVI_PHONE,
wa_fcontact type CVIS_EI_FAX,
wa_fax_st type CVIS_EI_FAX_STR,
wa_fax type CVIS_EI_CVI_FAX,
wa_econtact type CVIS_EI_SMTP,
wa_smtp_st type CVIS_EI_SMTP_STR,
wa_smtp type CVIS_EI_CVI_SMTP,
wa_sales_data_st type cmds_ei_sales,
wa_sales_data type cmds_ei_cmd_sales,
wa_customer type cmds_ei_extern,
wa_cust_created type cmds_ei_extern,
is_customers type cmds_ei_main,
es_customers type cmds_ei_main,
wa_correct type cmds_ei_main,
wa_defective type cmds_ei_main,
wa_mes_correct type cvis_message,
wa_mes_error type cvis_message,
it_contacts type cmds_ei_contacts_t,
wa_contacts type CMDS_EI_CONTACTS,
messages type BAPIRET2_T.
FIELD-SYMBOLS: <bapiret2> type BAPIRET2.
DATA: STATUS TYPE CHAR20,
PARNR LIKE KNVK-PARNR.
constants: FILLCHAR VALUE '/',
gc_objtype_customer TYPE mds_ctrl_object VALUE 'CUSTOMER',
gc_insert TYPE c VALUE 'I',
gc_delete TYPE c VALUE 'D',
gc_current_state TYPE c VALUE 'C',
gc_update TYPE c VALUE 'U',
gc_true TYPE c VALUE 'X',
gc_false TYPE c VALUE ' '.
include fbgenmac.
* generate data record
fbgenmac 'Z_CUSTOMER_CONTACT'.
* Clear memory variables - needed if run in Test mode
* Initialization
CALL METHOD cmd_ei_api=>initialize.
wa_customer-header-object_instance-kunnr = cust-kunnr.
wa_customer-header-object_task = gc_update.
append wa_customer to is_customers-customers.
call method CMD_EI_API_EXTRACT=>get_data
EXPORTING
is_master_data = is_customers
IMPORTING
es_master_data = es_customers
es_error = wa_mes_error.
IF wa_mes_error-is_error is initial.
STATUS = 'OK'.
LOOP at es_customers-customers into wa_cust_created.
wa_company_code = wa_cust_created-company_data.
IF STATUS = 'OK' and wa_mes_error-is_error is INITIAL.
* is_customers = es_customers.
free: wa_customer, wa_company_code_st,
wa_company_code, wa_address, wa_sales_data_st,
wa_contacts, wa_contact_addr,
wa_sales_data, wa_tax_ind_st, wa_functions,
wa_functions_st, wa_correct, wa_mes_correct,
wa_defective, wa_mes_error, wa_cust_created,
wa_tcontact, wa_phone_st, wa_phone,
wa_fcontact, wa_fax_st, wa_fax, wa_econtact,
wa_smtp_st, wa_smtp.
FREE: is_customers.
IF CONTACT-FIRSTNAME IS NOT INITIAL.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = 'AP'
object = 'PARTNER'
QUANTITY = '1'
SUBOBJECT = ' '
* TOYEAR = '0000'
** IGNORE_BUFFER = ' '
IMPORTING
NUMBER = PARNR
* QUANTITY =
* RETURNCODE =
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8.
IF SY-SUBRC = 0.
* Add partner type 20
wa_contacts-task = gc_insert.
wa_contacts-data_key-parnr = PARNR.
wa_contacts-data-pafkt = '20'.
wa_contacts-datax-pafkt = 'X'.
* wa_contacts-address_type_1 = ''.
* wa_contacts-address_type_2 = ''.
* wa_contact_addr-fullname = CUST-NAME.
wa_contact_addr-firstname = CONTACT-FIRSTNAME.
wa_contact_addrx-firstname = 'X'.
wa_contact_addr-lastname = CONTACT-LASTNAME.
wa_contact_addrx-lastname = 'X'.
* Assign address data directly
wa_contacts-address_type_3-task = gc_insert.
wa_contacts-address_type_3-postal-data = wa_contact_addr.
wa_contacts-address_type_3-postal-datax = wa_contact_addrx.
* e-mail address
wa_econtact-task = gc_insert.
wa_econtact-data-std_no = 'X'.
wa_econtact-data-e_mail = CONTACT-E_MAIL.
* wa_econtact-datax-std_no = 'X'.
* wa_econtact-datax-e_mail = 'X'.
wa_smtp-current_state = ' '.
wa_smtp_st-contact = wa_econtact.
append wa_smtp_st to wa_smtp-smtp.
wa_contacts-address_type_3-communication-smtp = wa_smtp.
* wa_contacts-contact_texts = ''.
append wa_contacts to it_contacts.
ENDIF.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = 'AP'
object = 'PARTNER'
QUANTITY = '1'
SUBOBJECT = ' '
* TOYEAR = '0000'
** IGNORE_BUFFER = ' '
IMPORTING
NUMBER = PARNR
* QUANTITY =
* RETURNCODE =
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8.
IF SY-SUBRC = 0.
* Add partner type 30
wa_contacts-data_key-parnr = parnr.
wa_contacts-data-pafkt = '30'.
append wa_contacts to it_contacts.
ENDIF.
* Assign contacts to customer structure
wa_customer-central_data-contact-contacts = it_contacts.
* Set object_task to modify
wa_customer-header-object_instance-kunnr = cust-kunnr.
wa_customer-header-object_task = gc_update.
append wa_customer to is_customers-customers.
IF FBAPI = 'X'.
* MAINTAIN_BAPI seems to now work. Fills in table addr_appl_to_int used in function module
* ADDR_MEMORY_SAVE line 631. It should be blank.
call method cmd_ei_api=>maintain_bapi
EXPORTING
iv_test_run = TESTFLAG
iv_collect_messages = 'X'
is_master_data = is_customers
IMPORTING
es_master_data_correct = wa_correct
es_message_correct = wa_mes_correct
es_master_data_defective = wa_defective
es_message_defective = wa_mes_error.
ELSE.
call method cmd_ei_api=>maintain
EXPORTING
iv_test_run = TESTFLAG
is_master_data = is_customers
IMPORTING
es_error = wa_mes_error.
ENDIF.
IF wa_mes_error-is_error is initial.
if testflag <> 'X'.
commit work and wait.
LOOP at wa_correct-customers into wa_cust_created.
CUSTOMERNO = wa_cust_created-header-object_instance-kunnr.
SY-MSGID = 'F2'.
SY-MSGNO = '056'. " Failure
SY-MSGV1 = ''.
SY-MSGV2 = ''.
SY-MSGV3 = ''.
SY-MSGV4 = ''.
CALL FUNCTION 'BALW_BAPIRETURN_GET1'
EXPORTING
TYPE = 'E'
CL = SY-MSGID
NUMBER = SY-MSGNO
PAR1 = SY-MSGV1
PAR2 = SY-MSGV2
PAR3 = SY-MSGV3
PAR4 = SY-MSGV4
* LOG_NO = ' '
* LOG_MSG_NO = ' '
IMPORTING
BAPIRETURN = RETURN.
ENDLOOP.
CALL FUNCTION 'ADDR_MEMORY_CLEAR'
EXPORTING
force = 'X'
EXCEPTIONS
unsaved_data_exist = 1
internal_error = 2
others = 3.
ELSE.
ROLLBACK WORK.
LOOP at wa_correct-customers into wa_cust_created.
CUSTOMERNO = wa_cust_created-header-object_instance-kunnr.
SY-MSGID = 'F2'.
SY-MSGNO = '035'.
SY-MSGV1 = ''.
SY-MSGV2 = ''.
SY-MSGV3 = ''.
SY-MSGV4 = ''.
CALL FUNCTION 'BALW_BAPIRETURN_GET1'
EXPORTING
TYPE = 'E'
CL = SY-MSGID
NUMBER = SY-MSGNO
PAR1 = SY-MSGV1
PAR2 = SY-MSGV2
PAR3 = SY-MSGV3
PAR4 = SY-MSGV4
* LOG_NO = ' '
* LOG_MSG_NO = ' '
IMPORTING
BAPIRETURN = RETURN.
ENDLOOP.
CALL FUNCTION 'ADDR_MEMORY_CLEAR'
EXPORTING
force = 'X'
EXCEPTIONS
unsaved_data_exist = 1
internal_error = 2
others = 3.
ENDIF.
ELSE.
messages = wa_mes_error-messages.
LOOP at wa_mes_error-messages assigning <bapiret2>.
CUSTOMERNO = CUST-KUNNR.
CALL FUNCTION 'BALW_BAPIRETURN_GET1'
EXPORTING
TYPE = <bapiret2>-type
CL = <bapiret2>-id
NUMBER = <bapiret2>-number
PAR1 = <bapiret2>-message_v1
PAR2 = <bapiret2>-message_v2
PAR3 = <bapiret2>-message_v3
PAR4 = <bapiret2>-message_v4
* LOG_NO = ' '
* LOG_MSG_NO = ' '
IMPORTING
BAPIRETURN = RETURN.
ENDLOOP.
ENDIF.
ELSE.
CUSTOMERNO = CUST-KUNNR.
SY-MSGID = 'F2'.
SY-MSGNO = '152'. " Failure
SY-MSGV1 = CUST-KUNNR.
SY-MSGV2 = CUST-BUKRS.
SY-MSGV3 = ''.
SY-MSGV4 = ''.
CALL FUNCTION 'BALW_BAPIRETURN_GET1'
EXPORTING
TYPE = 'E'
CL = SY-MSGID
NUMBER = SY-MSGNO
PAR1 = SY-MSGV1
PAR2 = SY-MSGV2
PAR3 = SY-MSGV3
PAR4 = SY-MSGV4
* LOG_NO = ' '
* LOG_MSG_NO = ' '
IMPORTING
BAPIRETURN = RETURN.
ENDIF.
ENDIF.
ENDLOOP.
ELSE.
CUSTOMERNO = CUST-KUNNR.
SY-MSGID = 'F2'.
SY-MSGNO = '077'. " Failure
SY-MSGV1 = CUST-NAME.
SY-MSGV2 = ''.
SY-MSGV3 = ''.
SY-MSGV4 = ''.
CALL FUNCTION 'BALW_BAPIRETURN_GET1'
EXPORTING
TYPE = 'E'
CL = SY-MSGID
NUMBER = SY-MSGNO
PAR1 = SY-MSGV1
PAR2 = SY-MSGV2
PAR3 = SY-MSGV3
PAR4 = SY-MSGV4
* LOG_NO = ' '
* LOG_MSG_NO = ' '
IMPORTING
BAPIRETURN = RETURN.
ENDIF.
ENDFUNCTION. -
Suppress an error message while creating a return PO ( ZRO type) (ME21n)
Hello All,
I have to write a code in order to suppress the below message while creating a return purchase order (of type ZRO) , transaction ME21n after entering the purchase organization, purchase group, the vendor & the material no :-
"You have no authorization to create without reference to another document".
For users with the below values of parameter ID & parameter value :-
parameter ID = EFB & parameter value = 02 in transaction 'SU3' , under "parameters" tab, this message is getting triggered.
My requirement is to suppress this message.
Please suggest an exit name or a BADI name wherein I can implement the code for this requirement.
Regards,
Rachana.You can remove parameter ID EFB
and for Order type other then ZRO you can put check of doc. reference. -
Urgent : Need help to open the contacts / Returns screen from ICWeb Client
Hi Gurus,
I have no much information on PCUI. I need your help to the following:
1--> To open the Contacts / Returns PCUI screen from ICWeb client. (which object to be used)
2--> Pass the confirmed BP to the newly opened window.
Please give me your valuable inputs.
Hoping for the best and the earliest.
Regards,
Raju
Edited by: reg raju on Apr 22, 2008 3:36 PMHi Gurus,
I have no much information on PCUI. I need your help to the following:
1--> To open the Contacts / Returns PCUI screen from ICWeb client. (which object to be used)
2--> Pass the confirmed BP to the newly opened window.
Please give me your valuable inputs.
Hoping for the best and the earliest.
Regards,
Raju
Edited by: reg raju on Apr 22, 2008 3:36 PM -
Error while trying to create Contact for Bank in Cash Management
Hi,
I have a Bank created in Cash Management. I am trying to create a Contact for the bank but when I click on the Create Contact button, the page appears with the following error on top
"No field listener is registered to resolve field CUST.CUSTOMER_NUMBER referenced by the flexfield with application short name AR and name RA_PHONES_HZ. Please contact your system administrator. "
I can enter the desired values in the contact details fields like name , job code etc but then nothing happens when I click on the Apply button.
I found the following notes on metalink for similar errors but none of them explains how to resolve the issue.
1087754.1,
889794.1
791190.1
Could someone please help me resolve the issue? I am a newbie to Oracle Apps.
Thanks
SusovanPlease see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
Thanks,
Hussein -
SRM: Create Contact Person Could not create user; contact your system admin
Hi All,
First, I am not sure this question should be posted here, or SRM General. From my point of view, here is more suitable.
Our Problem:
Activity "Create Contact Person With Reference" error with message:
Step to reproduce:
1. Login to SRM JAVA as super administrator
2. Open tab "SRM Administration"
3. Using the current query, search for Business-Partner no: 30000725
4. Press "Create Contact Person with Reference"
5. Fill all required fields, tick "Is contact person" checkbox
6. Put: /SAPSRM/SUPPLIER as Role
7. Save
The following Message appear:
Could not create user; contact your system administrator
SPML Service error: Error reading request status. Display Help
Contact Person 2000000214 Created Successfully for BP 30000725 Display Help
E-mail was sent
The first error is intriguing. The username & password is created successfully in ABAP System (Our UME is in ABAP).
QUESTIONS:
1. What cause this problem? How to trace the error?
2. We want the user have portal role automatically. How to achieve that?
Thank you for any responses and helps.
SRM ABAP Version:
SRM_PLUS 700 0009 SAPKIBK209 SRM_PLUS for mySAP SRM
SRM_SERVER 700 0009 SAPKIBKV09 SRM_SERVER
SAP_ABA 701 0007 SAPKA70107 Cross-Application Component
SAP_BASIS 701 0008 SAPKB70108 SAP Basis Component
PI_BASIS 701 0007 SAPK-70107INPIBASIS Basis Plug-In
SRM JAVA Version:
SRM JAVA: Release 7 SP Level 9.0
BP SRM: Release 7 SP Level 9.0
Edited by: Nur Agus Suryoko on Mar 11, 2011 11:36 AM
Version information addedHi Fernando,
Can you please tell me how you resolved this issue ??
Regards,
Adren -
ORDERS05 - Create a Return with reference to a Sales Order
Hi all,
I'm trying to create a return with reference to a sales order via IDOC ORDERS05. I'm indicating referenced Sales Order number into segment E1EDK02; indicating qualifier (QUALFR = 002) and Sales order number (BELNR). By this way, I create a Customer Return but without reference.
Which fields or segment have to be filled in order to create it correctly?
Thanks
MaríCorrect...
You need something like:
*Get the pricing cond number.
select single knumv from vbak into cond
where vbeln = '0000080347'.
if sy-subrc = 0.
Get the pricing record which are by line item.
select * from konv into table konv_tbl where knumv = cond.
Loop thru them one line at a time.
loop at konv_tbl.
bapi_cond-itm_number = '000010'.
bapi_cond-cond_st_no = konv_tbl-stunr.
bapi_cond-cond_count = konv_tbl-zaehk.
CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'
EXPORTING
RETURN_HEADER_IN = bapi_hdr
BUSINESS_OBJECT = 'BUS2102'
CONVERT = 'X'
IMPORTING
SALESDOCUMENT = bapi_salesdoc
RETURN = BAPI_RET
TABLES
RETURN = bapi_ret_tbl
RETURN_ITEMS_IN = bapi_itm
RETURN_ITEMS_INX = bapi_itm_out
RETURN_PARTNERS = bapi_prtnr
RETURN_SCHEDULES_IN = bapi_schd_lin
RETURN_CONDITIONS_IN = bapi_cond. "pricing
ORDER_TEXT = bapi_text. -
I have an iPod Touch 4th gen (model MC544LL), running iOS 5.1.1
My Contacts and email synchronize with the corporate Exchange server of my employer.
I use Outlook 2007 (Windows) on my Desktop.
If I create a contact in Outlook 2007, it synchs to the iPod.
If I modify that contact on the iPod, it synchs back to the Exchange server.
All that works great.
However!
If I create a Contact on the iPod, it never syncs to the exchange server. It is only available on my iPod.
I do not see contacts in Outlook, that were created on the iPod.
I only discovered this today. I'm not sure how many contacts I created on the iPod that do not exist in Outlook. (I have hundreds of contacts).
It is a most vexing problem. I hope that someone may have a solution.Searching the site more, I found this link to be very helpful.
https://discussions.apple.com/thread/2047996?start=0&tstart=0
I did not find a way to move the contact to the Exchange server directly, but I found out how to find the locally created contacts and then I could email the contacts one by one, to my Outlook email, then add them to the Exchange server contacts. -
Hi,
In Sales A/R I have created a Return. Now I want to deliver new items (to replace the items customer returned). What I should I do? I can't copy from Sales order, because its closed.
Should I create a new delivery that isn't linked to any earlier document related to this process?
Thanks!
-Juha-Hi
You can also use Duplicate option by right clicking on sales order.
and not to update as per new Business Partner message.
Regards
Datta Kharat -
Hi All,
I am new to AFS and my requirement is to create a Return from my program.id Order type RE in VA01
The return should have AFS details , so the BAPI BAPI_CUSTOMERRETURN_CREATE seems to be not sufficient as it does not have any AFS data entry.
Please suggest how to populate the AFS data in Return.
Thanks,
AnoopPlease clarify "AFS".
-
BAPI_ADDRCONTPART_SAVEREPLICA Create contact person issue
Dear SAP Gurus,
I'm coding a RFC for create customer with contact person. I used BAPI_PARTNEREMPLOYEE_GETINTNUM and BAPI_ADDRCONTPART_SAVEREPLICA in order to create the contact person for the corresponding customer.
The process is
1. get customer number by BAPI
2. create customer by BDC
3. create contact person
The issue is
The BAPI is successfully called, and the address data is into the table, eg. ADRC.
But in Tcode XD03 contact person view, I can not find the contact person information for this customer.
Could you please kindly advise?
BTW, the BAPI input parameters are all correct I think, I also did the test in SE37
Best Regards,
Shiliang
nullDears,
Could you please kindly help?
BR -
How to create a Return Order from a Quality Notification?
Hi everyone at SDN.
Really need some help on this issue we are having. We want to create a Return Order from a Quality Notification, ie. the document flow should be:
:: Serv. notif 000200000482
:: Return Order 0060299453
In the SAPGUI we are able to do this by going into transaction QN02, enter the notification number and in the menu: "Notification" --> "Functions" --> "Sales Order" --> "Create Selection of Order Type". Now we select the Return Order type and the result is as wanted.
However, we want to do all this in ABAP instead. The BAPI I have tried with is BAPI_CUSTOMERRETURN_CREATE.
And the following code is used:
ls_order_h_in-refobjtype = 'BUS2078'. "Quality Notification
ls_order_h_in-refdoctype = 'Z5'. "Quality Notification type
ls_order_h_in-refobjkey = '000200000482'. "Ref. Quality Notification
ls_order_h_in-doc_type = 'ZREN'. "Return Order type
ls_order_h_in-sales_org = 'S001'.
ls_order_h_in-distr_chan = '01'.
ls_order_h_in-division = '01'.
Then I add a material as well as the mandatory partner functions. When I execute the Return Order is created but when I check the document flow for the Return Order there is no link to the Quality Notification.
Any suggestions on how to do this? I have tried using FM RV_DOCUMENT_FLOW_UPDATE_U for updating the document flow but it doesn't seem to like it when I enter a Notification in there. And when I run FM RV_ORDER_FLOW_INFORMATION for the above (working) Return Order there is no Quality Notification available. So this leads me to believe that I have to update something else then VBFA (Sales Document Flow)...
I would really appreciate all the help I can get on this.
Best Regards
Niklasanyone?
Maybe you are looking for
-
MessageTransformationBean in JMS Adapter
Hi Experts, Proxy message is coming from ECC to PI and at receiver side JMS adapter is used.Source structure has 2 fields .one is filename and payload.Actual XML content will be sent as string in Payload field.In PI JMS adapter,I am using message tra
-
D/f, User is able to save the sales order without any line item. We want to stop it. So we maintained item (Field: MATNR) in the incompletion log @ item level, but still user is able to save the order w/out line item. So how to achieve this? Is there
-
Problem creating Techincal system as my R/3 system on different LAN
Hello friends Our r/3 system with host name [ps0784] is on different LAN hence accessible only by IP or if we give its complete name like ps0784.persistent.co.in But here the problem is, when we try to create a Technical system in SLD for ps0784 usin
-
How to insert code with Change Pointers (BATMAS)
Hello, We make use of change pointers to notify our customer of changes on batches (BATMAS). I would like to update a segment-field in the IDoc before sending it. Is this possible? And if Yes, where can I do this? Thanks in advance! Guido Verbruggen
-
We have alert no 181,182,183, 184 185 and 171-175 which is std alert. This is 'TLB Alert for transportation lane. We do not want this alert to be displyed in exceptions---> alert monitor. How to deactivate this alert? We are using SNC5.1 regards, Vai