Create business partner with reference of another business partner
Hi all,
I want to create a business partner with reference of another BP in CRM 2007 from Web UI, please advise whether it is possible or not, if not ...why it is not possible?
Looking forward for your reply!
Regards,
Silpa.
Hi Silpa,
In the standard, this isn't possible with the BP. However, you can create a customer as a reference of another existing customer, and then sync this new customer into a new BP. So you can do this indirectly,.
If you want to create a BP directy as a reference of another BP - sorry, this isn't possible. You would need to copy the BP into another BP using a custom report. You can develop your report along these lines :
1. The easiest way is to use APIs. Start by calling BUPA_CENTRAL_GET_DETAIL usign the BP number. THis will give you all the central data for the BP - e.g. name, etc. Now, merely feed the output of this module into the module BUPA_CREATE_FROM_DATA. This will create a new BP with the same data of the old BP.
2. Now that the main BP is ready, you need to start copying the individual datasets - addresses, bank details, roles, Id, industry,etc. This is tricky - the ADD apis - BUPA_ADDRESS_ADD, BUPA_ROLE_ADD, etc can only create one record in a call. So, you need to first get the data of the reference BP using the GET_DETAIL api e.g. : BUPA_ADDRESS_GET_DETAIL, then loop at each returned record, and pass that into the corresponding ADD BAPI.
3. Be sure to call BAPI_TRANSACTION_COMMIT at the end to commit the data to the DB.
I hope this helps you.
Cheers,
Rishu.
Similar Messages
-
Using BAPI_PO_CREATE to create a PO with reference to another PO.
Hi, I am using BAPI_PO_CREATE to create a PO with reference to another PO, in the po_header_add_data, I have done this: po_head_add-our_ref = p_ebeln.
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
po_header = po_head
po_header_add_data = po_head_add
skip_items_with_error = ''
IMPORTING
purchaseorder = po_nbr
TABLES
po_item_schedules = po_item_schedules
po_item_text = po_item_text
po_items = poitem1
return = return.
But when I have created the PO, in the our reference field, it is space? Why? If I want to fill the the our reference with the another PO, how should I do?NULL
-
Creating an order with reference to another doc
I want to create an Order with reference to another document.....in other words it should be a copy of the other document...
Any ideas of what function modules we have to use and how we can acheive it...Hi Vin
Creating a Sales Order from a Sales Order Quotation is SAP Standard so really should not be an issue for you.
You do need to maintain the Copy Control Configuration as per my previous reply.
Define Copying Control for Transaction Types
Define Item Category Determination when Copying
Effectively the details of your Transaction Type for Sales Order Quotation will copy into your Sales Order transaction.
I'm used to working in an environment where the user manually decides to then continue with a follow-up transaction, therefore I'm not too sure which Function Modules you need to use in order to do this automatically.
But you are on the right track.
Regards
Arden -
BAPI to create equipment hierachy with reference to another equipment
HI,
is there any BAPI to create equipment hierarchy with reference to another equipment.
i.e. in selection screen i pass two equipments, one has hierachy and another one don't have hierarchy.
then it copy hierachy first equipment hierarchy and create same hierarchy for second equipment.Hi,
There are no standard BAPI to do that.You will have to create a custom program which would read the current equipment hierarchy and build the hierarchy from the lowest level, by using the equipment create BAPI and Equipment install BAPI.
Regards
Narasimhan -
BAPI to create sales order with reference to another sales order
hi all,
is there a bapi that allows you to create a sales order with reference to another sales order?
thanks,
VHi Valencia,
I think the normal BAPI (BAPI_SALESORDER_CREATEFROMDAT1)will do. You will have to fill the fields REF_DOC, REF_DOC_IT, REF_DOC_CA of the table ORDER_ITEMS_IN (and make sure that Customizing settings allow you to copy from order to order).
Regards,
John. -
FM to create Sales order with reference to another Sales order
Hi,
Is there any inbound IDOC FM which can create a Sales Order with reference to another Sales order.
PLease reply
Santhana M.Hi,
try FM BAPI_SALESORDER_CREATEFROMDAT2
with ORDER_HEADER_IN fields
REFOBJTYPE
REFOBJKEY
REFDOCTYPE
Regards,
Clemens -
Creating a Invoice with reference to another invoice with new pricing proce
Hi People,
I want to raise a supplimentary excise invoice for the differential price.
I want to do it by raising a supplimentary commercial invoice with reference to the old invoice but with a new pricing procedure assigned to it.later on raise the supplimentary excise invoice with Tcode j1iin wrt the new commercial invoice.
Although i have done all the necessary configurations such as determination of new pricing procedure, Doc pricing Procedure and changing the pricing type at the copy control settings of the item category to "B".
i am unable to get the new pricing procedure when i am creating the supplimentary commercial invoice.
Can u people suggest me in this regardDear Nagabhushan
Normally for price difference, there is an order type RK for "Invoice Correction Request" which should be created in reference to F2 billing document. Based on this, you can issue credit memo (document type G2).
This being the case, you cannot create supplimentary invoice with reference to original invoice. Moreover, for all excise related adjustments, you should not use j1iin. You should run j1ih - Other adj.
thanks
G. Lakshmipathi -
Create a notification with reference
Hi,
My requirement is to create a notification with reference to another notification.
How can i do that ? I tried to use BAPI_ALM_NOTIF_CREATE but I faced 2 problems:
1. I didnt know where to give the reference notification number
2. I am getting the error: "Partner maintenance: Manadatory function AG was not maintained for object"
Could anyone help me out with this ?Hello Sasi Upadrasta
can you please explain how to solve this?
because i'm getting same error.
Thanks
Kaushik Savaliya -
BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER
Hi ,
I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
but couldn't find for create with reference to Order ...
Thanks in advance ...
Regards
Rajesh.Hi,
You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
Reward if it's useful.
Thanks,
Anil -
Creating a PO with reference (using document overview) with ref to a PO?
Is this feasible to create a PO with reference to a PO ?????
Hi Maria,
Creating a PO with reference to another PO is possible even without the doc. overview. If you scroll your item overview long to the right you will find the columns "Purchasing document" and "Item" aside it (4th nd 3rd columns from the right in my version). Type in your referenced PO number there and the item and press Enter.
However, I don't think this will help you. If you are not allowed to create PO with reference to another PO, you will not be able to "cheat" on the system. Such limitation is normally introduced by "Functional auth. for buyers": IMG for Purchasing > Authorization Management > Define Function Authorizations for Buyers. Check the frame "Possible Reference Objects". The two-digit key of the "func. auth." is assigned to your user using the parameter ID EFB.
BR
Raf -
Create a sales order with reference to another one. (BAPI)
Hi everybody,
I'm trying to create a new sales order with reference to another one (That's important because of the documents flow).
I'm using 'BAPI_SALESORDER_CREATEFROMDAT2' but I couldn´t do it yet. I've read some ideas about this kind of creation in this forum; but I still haven´t found the solution yet.
Some ideas about the BAPI parameters I nedd to complete?
Thanks in advance!!Hi,
Go through this one
*& Report ZSD_R_SALESORDER
report zsd_r_salesorder1 line-size 132 message-id zmmbapi .
*& Created By : shailaja
*& Created on : 13.10.2007
*& Requested By : vardhman
*& Description of program :
Internal table definition *
data: gt_order_header_in like bapisdhead occurs 0 with header line,
gt_return like bapireturn1 occurs 0 with header line, " Return Messages
gt_order_items_in like bapiitemin occurs 0 with header line, " Item Data
gt_salesdocument like bapivbeln-vbeln , "Number of Generated Document
gt_order_partners like bapiparnr occurs 0 with header line, "Document Partner
gt_return1 like bapiret2 occurs 0 with header line.
Data definition *
types: begin of ty_gt_ft_sales ,
partn_numb(10) type n ,"Customer Number 1
partn_role(2) ,"Partner function
sales_org(4) , "Sales Organization
distr_chan(2) , "Distribution Channel
division(002), "DIVISION
doc_type(4) , "Sales Document Type
purch_no(020), "Purchase order
material(18), "MATERIAL
targetquantity(020),"Target quantity
reqqty(020), "Req quantity
reqdate(010), "req date
*REQ_DATE_H(010),
ref_1(012), "Ref
unload_pt(025),
*PARTN_ROLE(2) ,"Partner function
*PARTN_NUMB(10) ,"Customer Number 1
end of ty_gt_ft_sales,
begin of ty_header ,
partn_numb(10) ,"Customer Number 1
partn_role(2) ,"Partner function
sales_org(4) , "Sales Organization
distr_chan(2) , "Distribution Channel
division(002), "DIVISION
doc_type(4) , "Sales Document Type
purch_no(020), "Purchase order
unload_pt(025),
req_date_h(010),
end of ty_header,
begin of ty_item,
material(18), "MATERIAL
targetquantity(020),"Target quantity
reqqty(020), "Req quantity
reqdate(010), "req date
ref_1(012), "Ref
*UNLOAD(025),
end of ty_item.
data : msg(240) type c, " Return Message
e_rec(8) type c, " Error Records Counter
rec_no(8) type c, " Records Number Indicator
s_rec(8) type c, " Successful Records Counter
t_rec(8) type c, " Total Records Counter
v_matnr like mara-matnr,
v_parvw type parvw.
data : gt_ft_sales type standard table of ty_gt_ft_sales with header line.
data : wa_gt_ft_sales type ty_gt_ft_sales,
wa_order_items_in like gt_order_items_in,
wa_gt_ft_sales1 type ty_gt_ft_sales,
wa_header type ty_header,
salesdocument like bapivbeln-vbeln.
selection block for EXCEL UPLOAD FILE
selection-screen begin of block b1 with frame title text-000.
parameters file type ibipparms-path obligatory.
selection-screen end of block b1.
*<<<<AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE .
at selection-screen on value-request for file .
perform getname.
form getname.
call function 'F4_FILENAME'
exporting
program_name = syst-cprog
dynpro_number = syst-dynnr
importing
file_name = file.
endform.
*TOP-OF-PAGE.
top-of-page.
skip 3.
format color col_heading inverse on.
write 40 text-001.
format color col_heading inverse off.
skip 1.
format color col_negative inverse on.
write :/ text-002, 13 sy-mandt , 104 text-003, 121 sy-uname,
/ text-004, 13 sy-datum , 104 text-005, 121 sy-uzeit.
format color col_negative inverse off.
skip 3.
*START-OF-SELECTION.
start-of-selection.
perform get_data.
perform bapi.
*end-of-page.
perform result.
form result.
t_rec = e_rec + s_rec.
skip 3.
format color col_total inverse on.
write: /38 text-007, t_rec.
format color col_total inverse off.
format color col_negative inverse on.
write: /38 text-008, e_rec.
format color col_negative inverse off.
format color col_total inverse on.
write: /38 text-009, s_rec.
format color col_total inverse off.
endform.
*& Form get_data
text
--> p1 text
<-- p2 text
form get_data .
call function 'WS_UPLOAD' "#EC *
exporting
filename = file
filetype = 'DAT'
tables
data_tab = gt_ft_sales
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
no_authority = 10
others = 11.
if sy-subrc 0 .
message e000.
endif.
endform. " get_data
*& Form BAPI
form bapi .
loop at gt_ft_sales into wa_gt_ft_sales.
wa_gt_ft_sales1 = wa_gt_ft_sales.
at new partn_numb.
wa_header-doc_type = wa_gt_ft_sales1-doc_type..
wa_header-sales_org = wa_gt_ft_sales1-sales_org . "'0001'
wa_header-distr_chan = wa_gt_ft_sales1-distr_chan. "'01'
wa_header-division = wa_gt_ft_sales1-division. " '01'
wa_header-purch_no = wa_gt_ft_sales1-purch_no.
wa_header-req_date_h = wa_gt_ft_sales1-reqdate.
call function 'CONVERSION_EXIT_PARVW_INPUT'
exporting
input = wa_gt_ft_sales1-partn_role
importing
output = v_parvw.
wa_header-partn_role = v_parvw.
wa_header-partn_numb = wa_gt_ft_sales1-partn_numb.
wa_header-unload_pt = wa_gt_ft_sales1-unload_pt.
move-corresponding wa_header to gt_order_partners.
move-corresponding wa_header to gt_order_header_in.
append gt_order_header_in.
append gt_order_partners.
endat.
call function 'CONVERSION_EXIT_CCMAT_INPUT'
exporting
input = wa_gt_ft_sales1-material
importing
output = v_matnr.
gt_order_items_in-material = v_matnr .
gt_order_items_in-target_qty = wa_gt_ft_sales1-targetquantity . "'1000'
gt_order_items_in-req_qty = wa_gt_ft_sales1-reqqty.
gt_order_items_in-req_date = wa_gt_ft_sales1-reqdate.
*GT_ORDER_ITEMS_IN-BILL_DATE = wa_GT_FT_SALES1-REQDATE.
gt_order_items_in-ref_1 = wa_gt_ft_sales1-ref_1.
append gt_order_items_in.
clear : wa_gt_ft_sales1,wa_header.
at end of partn_numb.
call function 'BAPI_SALESORDER_CREATEFROMDAT1'
exporting
order_header_in = gt_order_header_in
WITHOUT_COMMIT = ' '
CONVERT_PARVW_AUART = 'X'
importing
salesdocument = salesdocument
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
return = gt_return
tables
order_items_in = gt_order_items_in
order_partners = gt_order_partners.
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CCARD =
ORDER_CFGS_BLOB =
ORDER_SCHEDULE_EX =
if gt_return-type eq 'E' .
e_rec = e_rec + 1.
read table gt_return with key id = 'V1'.
format color col_negative inverse on.
rec_no = e_rec + s_rec.
concatenate text-006 rec_no ':'
gt_return-message into msg separated by space .
condense msg.
write: / msg.
format color col_negative inverse off.
elseif gt_return-number = '000'.
s_rec = s_rec + 1.
format color col_positive inverse on.
msg = 'SUCCESS'.
condense msg.
write: / msg .
format color col_positive inverse off.
write :/ salesdocument, 'Has been created'.
perform commit_mm.
endif.
clear: gt_return[], msg.
endat.
endloop.
endform. " SLALE_UPLOAD_DATA
*& Form COMMIT_MM
text
--> p1 text
<-- p2 text
form commit_mm .
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'
importing
return = gt_return1.
clear: gt_order_items_inhttp://].\"GT_ORDER_CONDITIONS_IN[.
endform. " COMMIT_MM
inthis pass re_doc field in header...
Edited by: Naresh kumar -
Create a Sales order with reference to another sales order using BAPI
Dear All,
Can any one tell me what are all the parameters required to create a Sales order with reference to another sales order using BAPI_SALESORDER_CREATEFROMDAT2....
Thanks in advanceHi Madhan
Thanks a lot for your reply.
However, I would like to know which parameters need to passed in this BAPI in case of SO creation with reference. I beleive there are only a few parameters that need to passed in ORDER_HEADER_IN, ORDER_ITEMS_IN, etc.
Need to know exactly which are these parameters.
Regards
Mihir Shah. -
Create a configurable material with reference to another config material
Hi,
I want to create a configurable material with reference to another configurable material from different system.
Please tell me what data i need to check to see if that material has been created (copied manually) successfully.
Thanks.Hi,
In case of configurable material most important thing is configuration so please check weather the configuration is copied perfectly with all characteristics or not. Similarly check the valuation class and price control is proper or not.
Regards,
Umesh -
Create an order using BAPI with reference to another one.
Hi everybody,
I'm trying to create a new sales order with reference to another one (That's important because of the documents flow).
I'm using 'BAPI_SALESORDER_CREATEFROMDAT2' but I couldn´t do it yet. I've read some ideas about this kind of creation in this forum; but I still haven´t found the solution yet.
Some ideas about the BAPI parameters I nedd to complete?
Thanks in advance!!
Edited by: Ole ES on Sep 11, 2008 12:32 PMHi,
Are you sure you can create a sales order with reference to ANOTHER sales order? The reason I ask is that in the front end, sales orders are created with reference to either quotations or contracts. There are settings known as "copying control" that need to be maintained for this to show up as document flow.
We have been working on a BAPI to create a sales order, but that is without reference to another document, and it works fine.
Could you please elaborate?
Cheers. -
Tables for creating a new sales order with reference to another
Hi Experts
In ABAP, how can identify that I'm creating a new sales order with reference to another in the userexit read_document??, In which tables is this information??.
Thanks
RegardsIn Table VBFA there are two fields
a) Preceding Document and
b) Subsequent Document category
Based on the above two fields, you can conclude that sale order is created with reference to a preceding document.
thanks
G. Lakshmipathi
Maybe you are looking for
-
Photoshop 5.1 does not open up after upgrading to Yosemite on a 2009 mac book pro
Adobe Photoshop 5.1 does not work after installing upgrade Yosemite. I have a mac book Pro - 2009
-
Avoid processing of Duplicate Synchronous Messages
Hi, I have two synchronous messages coming with almost zero delay in it. Both the messages contains the same data which is causing a major problem in the backend. I want to avoid the processing of duplicate message. My scenario is HTTP to SOAP (sync)
-
Why does appletviewer crash with applet connecting to MSAccess?
I am a beginner and have written a very simple applet for accessing a very simple Microsoft Access database. It is based on code from the java tutorials, uses a vector to collect the query, the vector is copied and this copied vector is used to displ
-
MW project conversion to 10.1.3.0.0
I just noticed that when MW auto-upgrades my project when I open pre 10.1.3 projects, it does not convert the datatypes properly in my DB descriptors. (for instance, all INTs become VARCHARSs) I am using SQL Server as my DB Platform Is this a known i
-
What metadata is required to enter for individual tracks to get them all to show up under the same album artwork?