Crm_order_maintain---insert a partner
Hi guys, I've got a problem with crm_order_maintain!
I want to create a new service contract (subcontract from a master contract) but I don't know how to insert a sold-to-party because in the table et_partner there isn't the field 'MODE'.
Someone can halp me to resolve my problem?
Thanks,
Lorenzo
Message was edited by:
Lorenzo Nevi
Hi Nevi,
Refer the following piece of code to insert the partner on the basis of partner_fct field in et_partner :
* Sold to Party
MOVE: lv_header_guid TO wa_partner-ref_guid,
'A' TO wa_partner-ref_kind,
'0001' TO wa_partner-ref_partner_handle,
lc_stp TO wa_partner-partner_fct,
"lc_stp is partner function for sold to party
gv_partner TO wa_partner-partner_no,
'BP' TO wa_partner-no_type,
'BP' TO wa_partner-display_type,
lc_true TO wa_partner-mainpartner.
APPEND wa_partner TO lit_partner.
CLEAR wa_partner.
* Fill input fields
MOVE: lv_header_guid TO wa_inputfields-ref_guid,
lc_header TO wa_inputfields-ref_kind,
'0001' TO wa_inputfields-logical_key,
lc_partner TO wa_inputfields-objectname.
MOVE lc_partner_fct TO wa_inputfields-fieldname.
APPEND wa_inputfields TO lit_inputfields.
Pass these tables to BAPI_BUSPROCESSND_CHANGEMULTI along with header and item tables. This BAPI internally calls CRM_ORDER_MAINTAIN.
<b>Reward points if it helps.</b>
Similar Messages
-
How to insert the partner link (xml)response to data base adapter in BPEL:
Hi to every one,
I have little bit knowledge in oracle SOA suit and having knowledge in java technologies,
I am developing one central reporting server for this I have the following requirement.
I need to call ‘N’ departmental servers (partner links) daily at specific time I need to insert all the transaction details (xml) response in central database (db adapter).
I’m able to call the ‘N’ partner links but I’m facing the problem while inserting ‘N’ servers response into central db using db adapter.
I written one common xsd file for request and response for N departmental server.
Following are the SOAP request and response formats for your reference.
<!-- =========== request formate ========= -->
<Reportreq xsi:type="rep:Reportreq">
<reqdate xsi:type="xsd:string">01-01-2010</reqdate>
<reqtime xsi:type="xsd:string">1100</reqtime>
</Reportreq>
<!-- ======= Response Formate ================================ -->
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:ResponseBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="ReportServer">
<errorcode xsi:type="xsd:string"/>
<errordesc xsi:type="xsd:string" xsi:nil="true"/>
<reportres xsi:type="xsd:string">
<![CDATA[<response:getTransData>
<transdate>01-01-2010</transdate>
<transtime>1100</transtime>
<distcode>03</distcode>
<transdata>
<centre>GVLH</centre><deptcode>15</deptcode><servicecode>1</servicecode>
<cashtrans>1</cashtrans><cashamt>165</cashamt><chqtrans>0</chqtrans>
<chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt>
<cardtrans>0</cardtrans><cardamt>0</cardamt>
<epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
</transdata>
<transdata><centre>RBVP</centre><deptcode>15</deptcode>
<servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>3000</cashamt>
<chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans>
<cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
<userchrgs>0</userchrgs></transdata>
<transdata><centre>RKBH</centre><deptcode>15</deptcode>
<servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>412</cashamt>
<chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt><epaytrans>0</epaytrans>
<epayamt>0</epayamt><userchrgs>0</userchrgs></transdata>
<transdata><centre>ARLV</centre><deptcode>101</deptcode>
<servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>125</cashamt>
<chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
<ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt>
<epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
</transdata>
<transdata><centre>NTRS</centre><deptcode>101</deptcode>
<servicecode>1</servicecode><cashtrans>7</cashtrans><cashamt>2567</cashamt>
<chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
<ddamt>0</ddamt><cardtrans>0</cardtrans>
<cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
<userchrgs>0</userchrgs></transdata>
<!-- I will get “transdata” tag nearly 1000 to 10000 -->
</response:getTransData> ]]>
</reportres>
</multiRef>
In java I hold the response XML string between the <response> tag and with the DOM parser I am able to insert the response data into central server.
Now I want to do this in BPEL, I am getting the response from N partner links but I am facing the problem while inserting the response data into central database.
Let me know if you have any idea or small example to achieve my requirement.
Note: All partner services were implemented in bottom up approach.
Have a good day,
Thanks in advance,
Regards,
Ishmayel.vHi to every one,
I have little bit knowledge in oracle SOA suit and having knowledge in java technologies,
I am developing one central reporting server for this I have the following requirement.
I need to call ‘N’ departmental servers (partner links) daily at specific time I need to insert all the transaction details (xml) response in central database (db adapter).
I’m able to call the ‘N’ partner links but I’m facing the problem while inserting ‘N’ servers response into central db using db adapter.
I written one common xsd file for request and response for N departmental server.
Following are the SOAP request and response formats for your reference.
<!-- =========== request formate ========= -->
<Reportreq xsi:type="rep:Reportreq">
<reqdate xsi:type="xsd:string">01-01-2010</reqdate>
<reqtime xsi:type="xsd:string">1100</reqtime>
</Reportreq>
<!-- ======= Response Formate ================================ -->
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:ResponseBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="ReportServer">
<errorcode xsi:type="xsd:string"/>
<errordesc xsi:type="xsd:string" xsi:nil="true"/>
<reportres xsi:type="xsd:string">
<![CDATA[<response:getTransData>
<transdate>01-01-2010</transdate>
<transtime>1100</transtime>
<distcode>03</distcode>
<transdata>
<centre>GVLH</centre><deptcode>15</deptcode><servicecode>1</servicecode>
<cashtrans>1</cashtrans><cashamt>165</cashamt><chqtrans>0</chqtrans>
<chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt>
<cardtrans>0</cardtrans><cardamt>0</cardamt>
<epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
</transdata>
<transdata><centre>RBVP</centre><deptcode>15</deptcode>
<servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>3000</cashamt>
<chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans>
<cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
<userchrgs>0</userchrgs></transdata>
<transdata><centre>RKBH</centre><deptcode>15</deptcode>
<servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>412</cashamt>
<chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt><epaytrans>0</epaytrans>
<epayamt>0</epayamt><userchrgs>0</userchrgs></transdata>
<transdata><centre>ARLV</centre><deptcode>101</deptcode>
<servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>125</cashamt>
<chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
<ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt>
<epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
</transdata>
<transdata><centre>NTRS</centre><deptcode>101</deptcode>
<servicecode>1</servicecode><cashtrans>7</cashtrans><cashamt>2567</cashamt>
<chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
<ddamt>0</ddamt><cardtrans>0</cardtrans>
<cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
<userchrgs>0</userchrgs></transdata>
<!-- I will get “transdata” tag nearly 1000 to 10000 -->
</response:getTransData> ]]>
</reportres>
</multiRef>
In java I hold the response XML string between the <response> tag and with the DOM parser I am able to insert the response data into central server.
Now I want to do this in BPEL, I am getting the response from N partner links but I am facing the problem while inserting the response data into central database.
Let me know if you have any idea or small example to achieve my requirement.
Note: All partner services were implemented in bottom up approach.
Have a good day,
Thanks in advance,
Regards,
Ishmayel.v -
CRM_ORDER_MAINTAIN problems
Hello.
I'm trying to insert new partner entries to the activity in a badi ORDER_SAVE (pf 00000026). How can I add these entries without loosing other entries with different partner functions?
I have tried to call fm CRM_ORDER_MAINTAIN and I'm able to insert new entries by following logic introduced in test program CRM_TEST_ORDER_MAINTAIN. When calling this fm all other entries are deleted.
What am I missing here?
Br, Johannes
Message was edited by: Johannes MitronenHello Frederic!
Thank you for your answer. I finally managed to accomplish my goals. Other entries were deleted because I used an another fm with obviously wasn't the right one. Everything started to work when I also delete unwanted entries using fm CRM_ORDER_MAINTAIN.
Here's how I do it (if somebody else is struggling with similar kind of problems):
<b>1. Add new entries</b>
LOOP AT lt_entries INTO ls_entries.
ADD 1 TO counter.
CLEAR ls_new_partners.
ls_new_partners-ref_guid = ls_orderadm_h-guid.
ls_new_partners-ref_kind = ls_entries-ref_kind. "A
ls_new_partners-kind_of_entry = 'C'.
ls_new_partners-ref_partner_handle = counter.
ls_new_partners-partner_fct = ls_entries-partner_fct.
ls_new_partners-partner_no = ls_entries-partner.
ls_new_partners-display_type = 'BP'.
ls_new_partners-no_type = 'BP'.
INSERT ls_new_partners INTO TABLE lt_new_partners.
CLEAR ls_input_fields.
REFRESH ls_input_fields-field_names.
ls_input_fields-ref_guid = ls_new_partners-ref_guid.
ls_input_fields-ref_kind = ls_new_partners-ref_kind. "A
ls_input_fields-objectname = 'PARTNER'.
MOVE-CORRESPONDING ls_new_partners TO ls_logical_key.
ls_input_fields-logical_key = ls_logical_key.
ls_input_field_name-fieldname = 'PARTNER_FCT'.
INSERT ls_input_field_name INTO TABLE ls_input_fields-field_names.
ls_input_field_name-fieldname = 'NO_TYPE'.
INSERT ls_input_field_name INTO TABLE ls_input_fields-field_names.
ls_input_field_name-fieldname = 'DISPLAY_TYPE'.
INSERT ls_input_field_name INTO TABLE ls_input_fields-field_names.
ls_input_field_name-fieldname = 'PARTNER_NO'.
INSERT ls_input_field_name INTO TABLE ls_input_fields-field_names.
ls_input_field_name-fieldname = 'KIND_OF_ENTRY'.
INSERT ls_input_field_name INTO TABLE ls_input_fields-field_names.
INSERT ls_input_fields INTO TABLE lt_input_fields.
ENDLOOP.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_partner = lt_new_partners
CHANGING
ct_input_fields = lt_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
<b>2. Delete entries</b>
LOOP AT lt_partner INTO ls_partner.
MOVE-CORRESPONDING ls_partner TO ls_new_partners.
* clear some fields for delete operation
CLEAR ls_new_partners-ref_partner_handle.
CLEAR ls_new_partners-partner_fct.
INSERT ls_new_partners INTO TABLE lt_new_partners.
CLEAR ls_input_fields.
REFRESH ls_input_fields-field_names.
ls_input_fields-ref_guid = ls_new_partners-ref_guid.
ls_input_fields-ref_kind = ls_new_partners-ref_kind.
ls_input_fields-objectname = 'PARTNER'.
* create logical key for delete operation
CONCATENATE '0000' ls_partner-partner_fct ls_partner-partner_no INTO ls_input_fields-logical_key.
CONCATENATE ls_partner-ref_no_type ls_partner-ref_no_type INTO id.
WRITE id TO ls_input_fields-logical_key+28.
ls_input_field_name-fieldname = 'PARTNER_FCT'.
INSERT ls_input_field_name INTO TABLE ls_input_fields-field_names.
INSERT ls_input_fields INTO TABLE lt_input_fields.
ENDLOOP.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_partner = lt_new_partners
CHANGING
ct_input_fields = lt_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
Enjoy!
- Johannes -
Define Partner Determination Procedure With Filter?
Hello in SPRO you can define the partner determination procedure:
SPRO->CRM->Basic Functions->Partner Processing->Define Partner Determination Procedure
Here you can define a partner for instance for our sales team in the opportunities module I have defined some partners
and then I can go to partner functions in procedure and give the access sequence such as 1000 preceding document or 0008 Preceding Document->User.
But my question is, is it possible to have a partner appear based on the Opportunity expected value or other fields within the opportunity? For instance, I want our Vice President to be included in the assignment block of Partners "Sales Teams" if the value of the opportunity is greater then a certain amount of money.
So has anyone ever created partner determination members based on values of say the opportunity module?Jon,
Here is an easier approach which you can achieve your requirement thru actions.
1) Create an action "Add Partner" ( activate schedule automatically, processing time: Using selection reprot)
2) Take process type as methodcall.
3) Implement EXEC_METHODCALL_PPF badi. In the method execute, read the opportunity value. You can use CRM_ORDER_READ FM to do so.
4) Compare this value against the threshold value.
5) If step 4 is successful, call an approproiate FM to insert the partner function in the opportunity. CRM_ORDER_MAINTAIN will do. But you can search for a more performance friendly FM.
6) Include the action thus defined in the profile attached to you opportunity transaction type.
7) schedule program RSPPFPROCESS (TCode: CRMC_ACTION_JOB) with a variant in which action definition is the action defined in step 1 AND promotion status is 0 and 2.
Regds,
Raghu -
IDOC error when using LSMW+XIF to load business partner data
Hi experts,
i have configured the LSMW using idoc type 'CRMXIF_PARTNER_SAVE01', but it gives somes errors like below (LSMW_BP456 is the BP no)
E Partner LSMW_BP456 (4A01EE5D47261621E10000000A0A0ACB ): the following err
W Partner data processed with key PartnerGUID 4A01EE5D47261621E10000000A0A0
W Partner data processed with key PartnerID LSMW_BP456
E No update is defined for BP role 000000
E Validation error occurred: Module CRM_BUPA_MAIN_VAL , BDoc type BUPA_MAIN
E Error status 'A ' calling validation service
In fact i have loaded product succesfully using this interface, so i am sure the basic setting is done for XIF interface.
And i found the error messages come when executing below code in fm 'CRMXIF_PARTNER_SAVE' in debug mode. I am not very familiar with BDOC and it seems that the error occured when processing bdoc.
call MW flow service synchronous (error handled by caller)*
IF lv_callmode = 'S' OR lv_callmode IS INITIAL.
CALL METHOD cl_smw_mflow=>validate
Any advice ? thanksHi,
I have looked into the issue. If you are trying to create the BP with general role 000000, i think it might not be possible via LSMW.
The error message is correct, because role 000000 is indeed not relevant for update because if you can see in the customising Tx BUSD, 'FLAG - Do not update' will be active. This is the reason why you are getting the error message of 'No update is defined for the role 000000'.
When you insert a partner in role "000000 General Business Partner",the error message "BP role cannot be updated" will be returned. This error message is very specific for this issue. You can create BP in different roles apart from the general role.
Indeed if you try to change the 'Do not update' flag to inactive state and process the LSMW project you will be able to create the BP but it is strictly not recommended.
This role is a technical role which exists for the creation of BP, and immediately you will fall back to other roles available for the partner.
So i feel you need to change the role before you create BP with this role via LSMW.
I hope this helps.
Regards,
Venkat -
Update customer adding partner functions (KNVP)
Hi,
I need to insert new partner functions in a customer. I have been looking for a BAPI but it does not exist. Here in the forum I have seen some threads saying you can use SD_CUSTOMER_MAINTAIN_ALL but there are other threads saying you have to do a BDC because SD_CUSTOMER_MAINTAIN_ALL have not to be used for that at all.
Do you know the good way to do that?
Regards,
ManelHi,
We did that via batch input. No BAPI was found.
We used VD02 transaction so save a recording via SM35 transaction and use the code returned
Regards,
Manel -
hi,
There is a BDC program for creating an outbound delivery.
it has to update the partner function field and few other fields. it works fine in sap and the shipment is complete.
But in the third party system the shipment is not complete.
the log shows an error message in partner function updation.
The partner fucntion used is 'SP' - Forwarding agent.
sy-subrc for the call transaction statement is coming as 1001.
Can anyone suggest me where the problem can be.the screen where you enter partner involves Tablecontrol, so you need to take care of the tablecontrol. that is the reason it is giving the error.
Run it foreground mode, and see how it behaving at that particular partners screen.
I suspect it is not identifying the Tablecontrol fields where you insert the partner. it is because of your coding, you didn't handle the table control properly... -
Error in Vendor Partner Function
Hello,
I am getting an error while maintainin Partner Function DP -Delivery Plant for vendor MAster data,
Actually when I am maintaing the Partner function DP in EN logon langauge it is allowing to maintain while when maintain the same Partner function DP in Italian Langauge it is giving error message
The following error message is translated to english
Enter a valid role of partners
N.messaggio ME351
diagnosis
The partner functions contained in the scheme entered is not L1, which is attributed to the type of document purchases.
procedure
Insert a partner functions defined in the schema partners (you can view via the help function allowed values), or add the schema L1 partner functions in the customizing Purchase.
Please help me to resolve this issue.
SAGARHi,
Error show no valid role of partner role in vendor account group.
Why you are using partner schema L1
1st assign Partner Function DP -Delivery Plant (partner role) to vendor account group(ZV01) in following path:
SPRO->MM->Purchasing->Partner Determination-> partner roles->Permissible partner roles per account group
Now define partner schemas (Z111) & keep partner function u201CDPu201D under partner schemas Z111 in following path:
SPRO->MM->Purchasing->Partner Determination->Partner setting in Vendor master record-> Define partner Schema
Then, assign partner schemas Z111 to vendor account group(ZV01) in following path:
SPRO->MM->Purchasing->Partner Determination->Partner setting in Vendor master record-> Assign partner schema to account Group
Regards,
Biju K -
Sales User exit --Partner Function
Hi,
We are upgrading to ECC 5.0
User doesn't enter ship to on the first screen of VA01.He enters only Sold to.
They go to items--> partner and enter 'SH' and corresponding value.
After they press enter, message about tax determination comes and userexit USEREXIT_NEW_PRICING_VBAP is invoked. I insert two partner functions in xvbpa. But once the partner screen comes again, these 2 partner functions are not shown there on partner screen. While we can see them in 4.5.
Please help out.
Thanks,
AnuranjanHi Lokesh,
Thanks for reply.
Here is the information
z_vbpa-posnr = xvbap-posnr.
z_vbpa-parvw = knvp-parvw.
z_vbpa-kunnr = knvp-kunn2.
select single * from kna1 where kunnr = knvp-kunn2.
z_vbpa-adrnr = kna1-adrnr.
z_vbpa-land1 = kna1-land1.
z_vbpa-adrda = 'D'.
z_vbpa-name1 = kna1-name1.
select single * from tpar where parvw = z_vbpa-parvw.
z_vbpa-nrart = tpar-nrart.
z_vbpa-fehgr = tpar-fehgr.
z_vbpa-spras = 'E'.
z_vbpa-updkz = 'I'. -
FAGL_FC_TRANS - Incorrect Trading Partner & Partner Profit Center
I am using transaction FAGL_FC_TRANS at month-end to re-translate the income statement of our foreign operations from the daily rate to the avg monthly rate to satisfy a financial reporting requirement. The transaction produces the correct FX adjustment by GL account. My issue arises when the original posting being revalued or translated has a trading partner and partner profit center. The FAGL_FC_TRANS does not provide the correct trading partner and partner profit center on the fx adjustments. Also, SAP is populating a trading partner and partner profit center on my FX gain/loss accounts which is incorrect. SAP advised me to populate fields to be validate on table V_FAGL_FCBAL. I inserted trading partner and partner profit center on this table but this does not seem to correct the issue. We are on 6.0 and use document splitting. I am thinking this may be the cause but not sure how to correct. Has anyone experienced this?
Thank you,
JoeImplement the following SAP note.
https://service.sap.com/sap/support/notes/1087737 -
Insert Classification for customer master
Hi All,
In XD01 when creating customer(SOLD-TO) I have to assign classification of SOLD-TO to all the partner functions (i.e SHIP-TO,BILL-TO, PAYER). To assign classification i am using Userexit exit_sapmf02d_001 and CLAF_CLASSIFICATION_OF_OBJECTS fm.
When i am using this FM i am getting a error "Updation termination of sold-to ".
Can anyone please help me out to figure out y this error is coming.
Or any other place were i can include the code to assign classification.
Regards
venuHi ,
when inserting the classification for sold to (in tcode xd01=>extras=>classification), same classification we need to insert the partner functions also. Can u plz tell me the right place for inserting the classification for partner functions. I have tried in user exit(sapmf02d). when inserted the classification for partner functions its terminate the sold inserting classification(standard functionality). Even i am not calling any standerd functional modules .just i am checking the classification exist or not for partner functions.if does not exist then direct i am inserting the classification into table KSSK.
waiting for suggitions.....
Regards,
Rao. -
USER EXIT/BADI for blocking pop up in VA01/VA02 for unloading point
Hi,
Please see details below with an example
Following the below steps will execute the popup.
1. VA01 (Sales Doc Create)
Document type can be anything.This pop-up should be blocked for 'CRQ' and 'CR' types.
2. Input CRQ or CR in the Order Type field and execute.
3. Within the document:
Input customer 194 as the Sold-to and Ship-to parties
Input the PO Date field with todays date
Input material 475410m and a Target Quantity of 1
Press Enter
If the ship-to party has more than one unloading point a pop up would show both values to choose one(these values come from KNVA-ABLAD).
The code details are as follows:
Program SAPMV45A--> Include MV45AF0K_KUAGV_SELECT---->CALL FUNCTION 'VIEW_KUAGV'
2)CALL FUNCTION 'VIEW_KUAGV' uses CALL FUNCTION 'SD_PARTNER_SINGLE_MODIFY' for ship-to(WE)
3) IN FM 'SD_PARTNER_SINGLE_MODIFY' the following sub-routine is called:
*-- proceed inserting a partner -
create a new xvbpa-segment
PERFORM XVBPA_ENTRY_FILL USING LVF_VKORG LVF_VTWEG LVF_SPART
LVF_VBELN
fif_posnr
LVF_KUNNR_NEW
FIF_MANUAL_ADDRESS
FIF_MANUAL_ADDRESS_ORIGIN
FIF_PARVW FIF_PARGR
LVF_PARTNER_USER
FIF_KNREF_PARNR
FIF_PRFRE
FIF_BOKRE
FIF_HISTUNR
FIF_HZUOR
FIF_NO_DIALOG
LVT_XVBADR
LVF_ACTION_TODO
LVS_OLD_XVBPA-CNTPA
CHANGING LVS_NEW_XVBPA
LVT_XVBPA.
4)This subroutine uses FM 'SD_PARTNER_ABLAD_SELECTION' to determine unloading points for ship-to and also brings up the pop-up using 'REUSE_ALV_POPUP_TO_SELECT'.
partner is ship-to, so determinate unloading point
CALL FUNCTION 'SD_PARTNER_ABLAD_SELECTION'
EXPORTING
FIF_KUNNR = LVS_XVBPA-KUNNR
FIF_NO_DIALOG = LVF_NO_DIALOG
IMPORTING
FES_KNVA = LVS_KNVA
EXCEPTIONS
NO_UNLOADING_POINT = 1
NO_SELECTION_DONE = 2
OTHERS = 3.
LVS_XVBPA-ABLAD = LVS_KNVA-ABLAD.
Any help in this regard is highly appreciated.
Sincere Regards,
Sai.Have a look at below link which gives the details abt the user exits related to VA01/VA02.
http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
Best Regards,
Vibha
*Please mark all the helpful answers -
Best practice to process inbound soapenc:Array
Hi, I'm working my way through a real world example where I've sent a keyword search query to Amazon and it return 10 results. This works great. Now I want to loop thru the Array and put the returned values into a table in the database. I can't seen to get down to the element level via XQuery to assign the returned values to my local variables. The XML returned is defined in the wdsl as:
<xsd:complexType name="DetailsArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:Details[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Details">
What's the best practice for walking thru this incoming XML Array?
Thanks...MattHello again!
Thanks for quick reply!
The instance state says : closed.completed.
Perhaps the problem is not the insert into db, but the transformation activity?
This is what the audit trail (raw xml) looks like:
<?xml version="1.0" encoding="UTF-8" ?>
- <audit-trail>
- <event sid="0" cat="2" type="2" n="0" date="2008-06-24T10:16:21.875+02:00">
- <message>
- <![CDATA[ New instance of BPEL process "BPELProcess3" initiated (# "150001").
]]>
</message>
</event>
- <event sid="BpPrc0.1" cat="1" type="2" label="process" n="1" date="2008-06-24T10:16:21.875+02:00" psid="0">
- <message>
- <![CDATA[ _cr_
]]>
</message>
</event>
- <event sid="BpTry0.2" cat="1" type="2" n="2" date="2008-06-24T10:16:21.890+02:00" psid="BpPrc0.1">
- <message>
- <![CDATA[ _cr_
]]>
</message>
</event>
- <event sid="BpSeq0.3" cat="1" type="2" label="sequence" n="3" date="2008-06-24T10:16:21.890+02:00" psid="BpTry0.2">
- <message>
- <![CDATA[ _cr_
]]>
</message>
</event>
- <event sid="BpSeq0.3" cat="2" type="2" wikey="150001-BpRcv0-BpSeq0.3-1" n="4" date="2008-06-24T10:16:21.921+02:00">
- <message>
- <![CDATA[ Received "inputVariable" call from partner "client"
]]>
</message>
- <details>
- <![CDATA[
<inputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><ns1:BPELProcess3ProcessRequest xmlns:ns1="http://xmlns.oracle.com/BPELProcess3">
<ns1:stations>18700</ns1:stations>
<ns1:username/>
</ns1:BPELProcess3ProcessRequest>
</part></inputVariable>
]]>
</details>
</event>
- <event to="GetStationProperties_getStationsProperties_InputVariable" sid="BpSeq0.3" cat="2" type="1" wikey="150001-BpAss0-BpSeq0.3-2" n="5" date="2008-06-24T10:16:21.953+02:00">
- <message>
- <![CDATA[ Updated variable "GetStationProperties_getStationsProperties_InputVariable"
]]>
</message>
- <details>
- <![CDATA[
<GetStationProperties_getStationsProperties_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="stations"><stations>18700</stations>
</part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="username"><username xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</part></GetStationProperties_getStationsProperties_InputVariable>
]]>
</details>
</event>
- <event to="GetStationProperties_getStationsProperties_InputVariable" sid="BpSeq0.3" cat="2" type="1" wikey="150001-BpAss0-BpSeq0.3-2" n="6" date="2008-06-24T10:16:21.953+02:00">
- <message>
- <![CDATA[ Updated variable "GetStationProperties_getStationsProperties_InputVariable"
]]>
</message>
- <details>
- <![CDATA[
<GetStationProperties_getStationsProperties_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="stations"><stations>18700</stations>
</part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="username"><username/>
</part></GetStationProperties_getStationsProperties_InputVariable>
]]>
</details>
</event>
- <event sid="BpSeq0.3" cat="2" type="2" wikey="150001-BpInv0-BpSeq0.3-3" partnerWSDL="MetDataService2Ref.wsdl" n="7" date="2008-06-24T10:16:22.968+02:00">
- <message>
- <![CDATA[ Invoked 2-way operation "getStationsProperties" on partner "MetDataService".
]]>
</message>
- <details>
- <![CDATA[
<messages><GetStationProperties_getStationsProperties_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="stations"><stations>18700</stations>
</part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="username"><username/>
</part></GetStationProperties_getStationsProperties_InputVariable><GetStationProperties_getStationsProperties_OutputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="return"><return xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" xmlns:ns3="http://no.met.metdata/IMetDataService.xsd" ns2:arrayType="ns3:no_met_metdata_StationProperties[1]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<item xsi:type="ns3:no_met_metdata_StationProperties">
<toDay xsi:type="xsd:int">0</toDay>
<toMonth xsi:type="xsd:int">0</toMonth>
<fromYear xsi:type="xsd:int">1937</fromYear>
<municipalityNo xsi:type="xsd:int">301</municipalityNo>
<amsl xsi:type="xsd:int">94</amsl>
<latDec xsi:type="xsd:double">59.9427</latDec>
<lonDec xsi:type="xsd:double">10.7207</lonDec>
<toYear xsi:type="xsd:int">0</toYear>
<department xsi:type="xsd:string">OSLO</department>
<fromMonth xsi:type="xsd:int">2</fromMonth>
<stnr xsi:type="xsd:int">18700</stnr>
<wmoNo xsi:type="xsd:int">492</wmoNo>
<latLonFmt xsi:type="xsd:string">decimal_degrees</latLonFmt>
<name xsi:type="xsd:string">OSLO - BLINDERN</name>
<fromDay xsi:type="xsd:int">25</fromDay>
</item>
</return>
</part></GetStationProperties_getStationsProperties_OutputVariable></messages>
]]>
</details>
</event>
- <event to="StoreStationProperties_insert_InputVariable" sid="BpSeq0.3" cat="2" type="1" wikey="150001-BpAss1-BpSeq0.3-4" n="8" date="2008-06-24T10:16:23.000+02:00">
- <message>
- <![CDATA[ Updated variable "StoreStationProperties_insert_InputVariable"
]]>
</message>
- <details>
- <![CDATA[
<StoreStationProperties_insert_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="EklimaStationsTblCollection"><EklimaStationsTblCollection xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/db" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/db"/>
</part></StoreStationProperties_insert_InputVariable>
]]>
</details>
</event>
- <event sid="BpSeq0.3" cat="2" type="2" wikey="150001-BpInv1-BpSeq0.3-5" partnerWSDL="db.wsdl" n="9" date="2008-06-24T10:16:27.312+02:00">
- <message>
- <![CDATA[ Invoked 1-way operation "insert" on partner "db".
]]>
</message>
- <details>
- <![CDATA[
<StoreStationProperties_insert_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="EklimaStationsTblCollection"><EklimaStationsTblCollection xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/db" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/db"/>
</part></StoreStationProperties_insert_InputVariable>
]]>
</details>
</event>
- <event sid="BpSeq0.3" cat="2" type="2" wikey="150001-BpRpl0-BpSeq0.3-6" n="10" date="2008-06-24T10:16:27.312+02:00">
- <message>
- <![CDATA[ Reply to partner "client".
]]>
</message>
- <details>
- <![CDATA[
<outputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><BPELProcess3ProcessResponse xmlns="http://xmlns.oracle.com/BPELProcess3"/>
</part></outputVariable>
]]>
</details>
</event>
- <event sid="BpSeq0.3" cat="1" type="2" n="11" date="2008-06-24T10:16:27.312+02:00">
- <message>
- <![CDATA[ _cl_
]]>
</message>
</event>
- <event sid="BpPrc0.1" cat="1" type="2" n="12" date="2008-06-24T10:16:27.312+02:00">
- <message>
- <![CDATA[ _cl_
]]>
</message>
</event>
- <event sid="BpPrc0.1" cat="2" type="2" n="13" date="2008-06-24T10:16:27.328+02:00">
- <message>
- <![CDATA[ BPEL process instance "150001" completed
]]>
</message>
</event>
</audit-trail>
The webservice-method I'm calling in this case is getStationsProperties.
Kind regards
Jørn Eirik -
Can anyone give me user exit name for create/update purchase order partners
Hello guys
Can anyone gives me user exit name for create/update purchase order partners?
Requirement is to insert/update partner when SC flag is checked while creating/updating purchase order (ME22N / ME21N) by using user exit.hi,
check these exits.
Transaction Code - ME21N Create Purchase Order
Enhancement/ Business Add-in Description
Enhancement
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
M06B0003 Number range and document number -
Errors while transaction download from ECC- CRM
we are trying to download transactions from ECC 5.0 to CRM 5.0.
the initial download has stopped in between and we get an error "SysFail" in the Inbound queue (SMQ2). Information on this error is "The current application triggered a termination with a short dump"
when we try to analyze the short dump, it says the termination occured in the ABAP program :SAPLCRM_DOWNLOAD_MAP - in "FILL_BTM_PARTNER". In the source code you have the termination point in line 254 of the include program "LCRM_DOWNLOAD_MAPF37".
please provide pointers to resolve this issue .
thanks
RHfollowing is the place where the error is being triggered in the program, any suggestions?
Information on where terminated |
Termination occurred in the ABAP program "SAPLCRM_DOWNLOAD_MAP" - in
"FILL_BTM_PARTNER". |
The main program was "SAPMSSY1 ". |
In the source code you have the termination point in line 254 of the (Include) program "LCRM_DOWNLOAD_MAPF37
Source Code Extract
Line
SourceCde
number_int = <ls_bapisdpart>-itm_number. |
if sy-subrc eq 0. |
ls_btm_partner-ref_guid = ls_item_keys-guid. |
ls_btm_partner-ref_kind = gc_object_ref_kind-orderadm_i. |
endif. |
endif. |
*orderadm_h_guid
ls_btm_partner-orderadm_h_guid = ls_orderadm_h-orderadm_h_guid. |
*bp_partner_guid |
if lv_nrart = gc_partner_r3_types-customer. |
*-----AG, WE, RE, RG, etc. |
call function 'CRM_BUPA_MAP_CUSTOMER_TO_BP' |
exporting |
iv_customer = <ls_bapisdpart>-customer |
importing |
ev_partner = ls_btm_partner-bp_partner_guid |
exceptions |
partner_not_found = 1 |
others = 2. |
if sy-subrc eq 0. |
display_type |
s_btm_partner-display_type = |
gc_partner_no_type-business_partner_no. |
no_type |
ls_btm_partner-no_type = |
gc_partner_no_type-business_partner_no. |
else. |
if ls_btm_partner-partner_fct = '00000001'. |
>>>>>
message x020(crm_order_misc) with gv_logsys_r3.
endif. |
endif. |
if ls_btm_partner-task eq gc_bdoc_task-delete and |
ls_btm_partner-ref_kind eq gc_object_ref_kind-orderadm_i. |
special handling for deleting item partner. In this case the item |
partner must not be deleted but updated with the header partner |
insert ls_orderadm_h-orderadm_h_guid into table lt_header_guid. |
insert gc_object_name-partner into table lt_requested_objects. |
call function 'CRM_ORDER_READ' |
exporting |
it_header_guid = lt_header_guid |
iv_only_spec_items = true |
it_requested_objects = lt_requested_objects |
importing |
et_partner = lt_partner_header |
exceptions |
others = 1. |
Maybe you are looking for
-
ASSIGN_TYPE_CONFLICT - BAPI_CONTRACT_CREATE
Hi Gurus, I'm encountering a dump ASSIGN_TYPE_CONFLICT when using BAPI_CONTRACT_CREATE and BAPI_CONTRACT_CHANGE. The parameters of my BAPI are as follows: call function 'BAPI_CONTRACT_CREATE' exporting header = wa_header
-
I Need To Know All Programs/Plug-ins/Files Bundled With CS2 Design Standard Suite
I am the Unit Software License Manager for my office at a government installation. I am in charge of accounting for all licensed software (both the physical CDs and the licenses/serial #s/Registration #s) being used on the computers in my office. Cur
-
Display the computer name in a Finder window?
Is there a way to show the comouter name in a FInder window? I sometimes open windows to other computers on my home network and copy files. It can be confusing as to which computer a particular window is connected to.
-
Oradim and open database problem ?
hi eveyone I have problem when i am restarting my pc or restarting database the database did not open I have checked the oradim log is showing : Wed Sep 02 01:48:14 2009 C:\oracle\product\10.2.0\db_1\bin\oradim.exe -startup -sid orcl -usrpwd * -log o
-
Hi I have a problem when I need to confirm my finished product with the trx COR6N, it only shows the components (261), but for the finished product I have to post the confirmation with MIGO. It only happens when I have more than one phase in my maste