VA42 Contract split during Billingu0096 Based on Partner different regioregion
Hi All,
I am trying do a billing for a contract in VA42, which as 2 line item. When I do billing for this contract it creates 2 separate Invoice Reason Ship-To-Party as different region. In VOFM I try to implement routine to stop splitting based on Ship-To-Party Region (REGIO) but unsuccessful with coding.
Have anyone come across such issue? What should be I checking or updating in my routine so that I should avoid split on Region condition. Any help much appreciated. Thanks in advance.
Kind Regards,
Tim
Please refer OSS Note #11162
It indicates the following cause.
"Different header partners
The header partners in the billing documents created are not identical which causes an invoice split. With regard to partner processing, an invoice split also occurs if the entries in the partner table of the reference document and the billing document also differ only in one field for the partner functions of the billing document header (in the standard system, these are SP, BP and PY)."
Similar Messages
-
Split delivery based on partner type
Hi Forum Colleagues
I have a scenario where in I need to split delivery based on partner type at line item level.
I am aware I need to look into copy control routine to be able to address this concern, however I am unable to find the solution.
Could someone guide me.
Regards
Kalpesh
Edited by: Kalpesh Mirchandani on Mar 31, 2009 7:07 AMHi
I am getting the following error
Item 000002: delivery split due to conflicting header data (Function Y2: Partner Number: 5100001701 <-> 5100001154)
I have created new delivery type in which I have checked "Delivery Split Part" which should ideally address this issue but it is not.
I would like to create delivery for each line item having different partner number. I am unable to locate the routine in which I could include the logic to separate the deliveries based on line item.
Pls guide.
Regards
Kalpesh
Edited by: Kalpesh Mirchandani on Mar 31, 2009 2:01 PM
Edited by: Kalpesh Mirchandani on Apr 1, 2009 6:59 AM -
Restrict Contact Person replication from CRM to ECC based on Partner Funct
Hi Experts
We are replicating Contacts from CRM to ECC, by assigning them to Accounts. We have a scenario to restrict Contact Person replication to ECC only for specific Partner functions (we have 5 such partner functions), for remaining partner functions the contact Persons should not be replicated to ECC.
By Partner function I mean, while making this assignment of Contact to an Account in u201Ccontact Person Relationships datau201D under u201CPartner Function Assignment blocku201D (in web UI) we are adding a Partner function E.g. Author, (same can be seen in GUI, under Usage tab of CP Relationship data).
However we were able to replicate contacts assigned to accounts to ECC in our 5 partner functions, but even the unwanted contacts assigned to other partner functions in CRM are also getting replicated
How can I restrict CP replication from CRM to ECC based on Partner Functions assigned to the Contact Person
Your help is highly appriciated.
Points guaranteed.
RegardsIssue resolved using CRMC_BUT_CALL_FU.
Posing the table name, just in case it might help others.
Thanks -
Delivery Split during creation of delivery using ME2O
The system creates two delivery documents for the same vendor while using transaction ME2O. There is no delivery split criteria defined in customizing
Hi,
Please check following note
546668 - FAQ: Delivery split when creating deliveries
Also check the note 355404 - Why was there a delivery split during creation?
in this note you have attached report ZLE_ANALYZE_DELIVERY_SPLIT run it in SE38,
You will come to know why two deliveries created
Thanks -
Need F4 Help for custom container element based on partner type
Hi Friends
I am displaying customer details in custom container .In that custom container I have a field Partner number,Partner type etc etc..
I included F4 help for partner number field, In that I referenced the following field.Now its coming perfectly.
wa_cat1-f4availabl = 'X'.
wa_cat1-ref_table = 'KNA1'.
wa_cat1-ref_field = 'KUNNR'.
But as per my requirement, customer wants to get the different F4 help when the partner type eq "Contact Person".
Rest of the partner type(Ship to party, Sold to party,Reseller, End user) should show the above one.
So I dont know, where I have to change, because in the field catelod level there is no option to control particular type in the column.
Kindly help me on this.
Thanks
GowrishankarHi Jose
Thanks for your Input.I created Event Receiver than Defined and implemented a method to get F4 help for customer number and email id field.Already F4 help is available for Email ID.Now I want to Include the F4 help for partner number field, it will call the search help based on partner type.I can able to get the partner number field search help, but F4 help is not working for email id.
I am not sure some whee its over writing some values or I am not sure.If I comment partner number F4 help class, I can able to get the F4 help for email address.
Plz guide to me to fix the same.
Thanks
Gowrishankar -
How to split the IDOCS based on document number change whit out BPM
Hi all,
Thanks,for giving the responce..
Scenario:File to IDoc.
Problum1 : How to Split the IDocs based on document number change in the source file with out BPM.My file contains document numbers like
20000092
20000092
20000092
50000050
50000050
50000065
I want 3 IDocs in target system.i.e 1 for 20000092,20000092,20000092
2 for 50000050,50000050
3 for 5000006
By using external definations i am getting 6 IDOCs insted of 3.
Problum 2:Is there any chnges/modifications in Directory when we are using external definations.
Could u plz provide me the step by step process(Repository/Directory) with using of external definations.
Thanks in advance.
Regards,
KPHI,
for this no need of BPM.
You can think of Idoc bundling concept to acheive this-just you need to do the external definition to change the idoc occurence
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
to achieve for each document no, one idoc, you can write small user defined function in the mapping with context handling you an achieve this.
For this e.g
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
Regards,
Moorthy -
Splitting a file based on the payload field - multimapping
HI Everyone,
I have a requirement of splitting a file based on the field .
e.g When I am a file as :
row1 David US
row2 Cindra US
row3 Peeru CA
row4 Jay CA
Then, I have to split the file into two files, one file with the US rows and another file with the CA rows.
There can be many countries in the input file, so number of target files need to be generated is not fixed.
I have gone through the below links :
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible ( in the blog we know that there are two receivers but in my case I dont know that )
https://bond.newellco.com/irj/scn/,DanaInfo=www.sdn.sap.com,SSL+thread?messageID=6449801#6449801
( Everyone is providing JAVA mapping as a solution....)
Is Java mapping the only option to resolve the problem case I have ?
Thx
PEERU INHi Peeru,
I don't have access to the any FTP or file server of XI to check the file adapter as i am travelling right now(I am 100% sure that the file adapter splitting will work as i have done this for one of my requirement).
Coming to your requirement:
I wrote an java map which will read the XML file and create the multiple recordset based on number of different country exists in the file, then i am printing the final structure in an multi mapping layout (please see the attached input file Country.xml and out put file which the java map generated Final.XML) if we do this i think the file adapter will create the different files based on the number of recordset we have as you can see the output file is generated with the 3 recordset (<Country>) tag each country tag has its own records, now if i give the filename in variable substuition pointing to region then i think i should get 3 files with names
us.xml
us01.xml
us02.xml
i think by using the multi mapping i can generate 3 files and by using the variable substution i can give the 3 different names from the payload of each file and also can add the timestamp for each of the file, again i didn't have access to the file adapter in the project i am working on so i couldn't verify in XI server, but if you still looking for solution then let me know i will give the map details.
Input File: Country.xml
<?xml version="1.0"?>
<check>
<order>
<name>Nisar1</name>
<region>US</region>
</order>
<order>
<name>Nisar2</name>
<region>US</region>
</order>
<order>
<name>Nisar3</name>
<region>US</region>
</order>
<order>
<name>Nisar4</name>
<region>US01</region>
</order>
<order>
<name>Nisar5</name>
<region>US01</region>
</order>
<order>
<name>Nisar6</name>
<region>US01</region>
</order>
<order>
<name>Nisar7</name>
<region>US</region>
</order>
<order>
<name>Nisar8</name>
<region>US</region>
</order>
<order>
<name>Nisar8</name>
<region>US02</region>
</order>
</check>
Output File : Final.XML
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<country>
<Order>
<name>Nisar1</name>
<region>US</region>
</Order>
<Order>
<name>Nisar2</name>
<region>US</region>
</Order>
<Order>
<name>Nisar3</name>
<region>US</region>
</Order>
<Order>
<name>Nisar7</name>
<region>US</region>
</Order>
<Order>
<name>Nisar8</name>
<region>US</region>
</Order>
</country>
<country>
<Order>
<name>Nisar4</name>
<region>US01</region>
</Order>
<Order>
<name>Nisar5</name>
<region>US01</region>
</Order>
<Order>
<name>Nisar6</name>
<region>US01</region>
</Order>
</country>
<country>
<Order>
<name>Nisar8</name>
<region>US02</region>
</Order>
</country>
</ns0:Message1>
</ns0:Messages>
regards
Nisar Khan -
How to split the data based on one column
Dear All,
I have the table data like this.
type quantity revenue_mny count country
a 10 10 2 India
a 20 12 3 India
b 30 15 1 India
a 35 20 2 US
b 20 10 1 US
b 60 15 1 US
I woulkd like to split the date based on type column.
For each country, for Type "a" get the sum of revenue count quanity ans same for b
and all shuld come in on row for each country.
output should be like
country revenue_mny(For a) quantity(for a) count(For a) revenue_mny(for b) quantity(for b) count(For b)
India 22 30 5 15 30 1
US 20 35 2 25 80 2
I tried the below query . its not splittng the date for each country in one row.
select country,
sum(case when type='a') then revenue_mny else 0 end ) revenue_mny_a,
sum(case when type='b' then revenue_mny else 0 end ) revenue_mny_b
sum(case when type='a' then quantity else 0 end) quantity_a,
sum(case when type='b' then quantity else 0 end) quantity_b from
test
group by country
Please need your heloLike this?
with t as
select 'a' type, 10 quantity, 10 revenue_mny, 2 cnt, 'India' country from dual union all
select 'a', 20, 12, 3, 'India' from dual union all
select 'b', 30, 15, 1, 'India' from dual union all
select 'a', 35, 20, 2, 'US' from dual union all
select 'b', 20, 10, 1, 'US' from dual union all
select 'b', 60, 15, 1, 'US' from dual
select country,
sum(case when type='a' then revenue_mny else 0 end ) revenue_mny_a,
sum(case when type='a' then quantity else 0 end) quantity_a,
sum(case when type='a' then cnt else 0 end) cnt_a,
sum(case when type='b' then revenue_mny else 0 end ) revenue_mny_b,
sum(case when type='b' then quantity else 0 end) quantity_b ,
sum(case when type='b' then cnt else 0 end) cnt_b
from t
group by country;result:
COUNTRY REVENUE_MNY_A QUANTITY_A CNT_A REVENUE_MNY_B QUANTITY_B CNT_B
India 22 30 5 15 30 1
US 20 35 2 25 80 2Or you can do it with a decode instead of case. The result will be the same:
with t as
select 'a' type, 10 quantity, 10 revenue_mny, 2 cnt, 'India' country from dual union all
select 'a', 20, 12, 3, 'India' from dual union all
select 'b', 30, 15, 1, 'India' from dual union all
select 'a', 35, 20, 2, 'US' from dual union all
select 'b', 20, 10, 1, 'US' from dual union all
select 'b', 60, 15, 1, 'US' from dual
select country,
sum(decode(type,'a',revenue_mny,0)) revenue_mny_a,
sum(decode(type,'a',quantity,0)) quantity_a,
sum(decode(type,'a',cnt,0)) cnt_a,
sum(decode(type,'b',revenue_mny,0)) revenue_mny_b,
sum(decode(type,'b',quantity,0)) quantity_b,
sum(decode(type,'b',cnt,0)) cnt_b
from t
group by country;(I changed tablename from TEST to T and columnname from COUNT to CNT, because you should not use reserved words as tablename or columnname.)
Edited by: hm on 09.10.2012 06:17 -
Pre-populate adapters behaviour during role based provisioning
Hi all,
I have a question about pre-populate adapters behaviour during role based provisioning.
I'll sortly describe our architecture: we have OIM 11.1.1.3, Active Direcotry connector and obviously Active Directory as target system.
Our scenario is: assigning a role to a user , OIM should provision two account for this user to the same target system but in two different organizational unit (Active Directory).
Here some sample information to better understand our request:
- OIM User userID: userid1
- Active Directory IT Resource: ADServer1
- Active Directory Organizational Units: OU1 and OU2
- Role: Example Role
- UserID of the account provisioned in OU1: admin.userid1 (in this organizational unit the UserID is composted by a prefix "admin." and the OIM User UserID "user1")
- UserID of the account provisioned in OU2: user.userid1 (in this organizational unit the UserID is composted by a prefix "user." and the OIM User UserID "user1")
To achieve this goal, we have created two access policies AP1 and AP2. The first access policy provision the user account in OU1; while the second one in OU2.
Here some access policies form details:
### AP1 ###
- AD Server: ADServer1
- Organization Name: OU1
(other fields are empty)
### AP2 ###
- AD Server: ADServer1
- Organization Name: OU2
(other fields are empty)
Our idea was to develope two pre-populate adapter: one to compose the userID with "admin." prefix and the other one to compose userID with "user." prefix. However this solution cannot work because obviously you can link only one pre-populate adapter to a resource form field.
Any suggestion to avoid to create a second resource form?
Thank in advise,
DanieleHi,
probably your confusion is caused by my english....anyway....
I'm trying to generate two userids and in our scenario it's simple map the organizational units. For example userids in organizational units OU1 have "admin." prefix; while organizational units OU2 have "user." prefix.
Do you suggest to create a pre-populate adapter that use a lookup to set the correct prefix based on organizational unit name?
Thank you
Daniele -
How to get Notification based on Partner Information
Dear Gurus,
Does anyone have any idea, how to populate Notification details based on Partner Information. The scenario is mentioned below.
The user creates the Notification and based on equipment cost center, system finds out the approver and update in Partner data in Notification.
As the Partner user needs to approve the created Notification, how to populate those Notification in a separate z- Application.
Advance thanks for the comments / update.
Regards,
SahuSahu
You would need to develop a solution.
Most of the notification user-exits start with QQMA* - see transaction SMOD.
PeteA -
Determine partner role based on partner number/Guid.
I need to determine whether a partner (against a repair order) is a consumer (BP) or dealer (organisation). How can I determine this based on partner number/guid?. I'm sure there's a BAPI etc to show the role information.
Gary KingMany thanks for that. I suspect this FM to get the roles will work fine and will try it now.
I can also look at the marketing attributes and the account group will determine whether the partner is a consumer of Organisation (Dealer).
Regards
Gary King -
Component Qty Split during Backflush
Dear Gurus,
We have a problem with the quantity splitting during backflush.
Ex. Prod Order for FG requires PM 500pcs as per BOM. Current SAP stock is 400pcs only. During backflush (production confirmation CO15), there is a deficit error due to insufficient stock (500 > 400). COGI registers 500pcs.
How can we setup the system that during backflush, 400pcs is successfully consumed while leaving a COGI of 100pcs only (instead of 500pcs)?
Thanks for your help.Hi,
You can split the qty while doing confirmation thru Edit> splitting function( CtrlshiftF4) into different qty as per your requirement in to 400 and 100 and consume 400 from stock and COGI for 100 pcs
Check at your end
Regards
Anupam Sharma -
Split without delimiter based on position
Hi,
I am having a query i need to split the query based on the position i specify
Say
string is 123456789101112
am having position as 1,1,2,5,4,2
i need as
1
2
34
56789
1011
12
I need to insert this in to my table
create test table (col1 number(10),col2 number(10),col3 number(10),col4 number(10),col5 number(10),col6 number(10));
col1,col2,col3,col4,col5,col6
1,2,34,56789,1011,12
Thanksi'm having some 80 columns in my table how to do for 80 columns Will data inserted into all 80 columns ?
Will there any change in order of insertion i.e. suppose data will be in col1,col2,col10,col11,col15,col23,col45,col80,col14,col68,col5... ?
How you will calculate the number of columns in which that number string is going to inserted ?
If there are fix 80 columns then rather than writing block of code for 80 times, you can use varray type variable and then proceed ahead. Since, in the above code, I have not handled exception(s), so exception handling will be another part of code to make it smooth.
Between, at the moment, I am not getting why there is error which is in the end :
create type np_type is varray(80) of number
create type cn_type is varray(80) of number;
create type cxn_type is varray(80) of varchar2(100)
I created TEST table by below pl/sql block :
declare
execstr varchar2(2000) :='create table test(';
begin
for i in 1..80 loop
execstr:=execstr || 'col' || to_char(i) || ' number,';
end loop;
execstr:=substr(execstr,1,length(execstr)-1);
execstr:=execstr || ')';
dbms_output.put_line(execstr);
execute immediate execstr;
end;
create or replace procedure myproc1
strx in varchar2, delarray in np_type)
as
execstr varchar2(200);
cn cn_type;
cxn cxn_type;
xpos number:=1;
begin
for i in 1..80 loop
select Delimiterlength into cn(i) from sp_table where Splitid = delarray(i);
select substr(strx,xpos,cn(i)) into cxn(i) from dual;
execstr:='insert into test values(' || cxn(i) || ',';
xpos:=length(cxn(i));
end loop;
execstr:=substr(execstr,1,length(execstr)-1);
execstr:=execstr || ')';
dbms_output.put_line(execstr);
--execute immediate execstr;
end;
/SQL> declare
2 v np_type:=np_type(4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4);
3 begin
4 dbms_output.put_line(v(80));
5 --exec myproc1('11111111111111111111111111111111111111111111111111111111111111111111111111111111',v);
6 end;
7 /
4
PL/SQL procedure successfully completed.
SQL>
SQL> declare
2 v np_type:=np_type(4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4);
3 begin
4 --dbms_output.put_line(v(80));
5 exec myproc1('11111111111111111111111111111111111111111111111111111111111111111111111111111111',v);
6 end;
7 /
exec myproc1('11111111111111111111111111111111111111111111111111111111111111111111111111111111',v);
ERROR at line 5:
ORA-06550: line 5, column 6:
PLS-00103: Encountered the symbol "MYPROC1" when expecting one of the
following:
:= . ( @ % ;
The symbol ":=" was substituted for "MYPROC1" to continue.
SQL>
Try to remove this error. Here '1111...' is the string which is going to be entered and '44444...' is the Splitid of sp_table.
Now, its your turn to help me.... :)
Regards
Girish Sharma -
How to find name of partner based on partner number
Hello All,
Can any one help me how to find name of partner based on partner number.
Regards,
LisaSELECT kunnr name1 erdat
FROM kna1
INTO TABLE i_kna1
WHERE erdat IN s_date.
SELECT kunnr kunn2 knref vkorg vtweg spart
FROM knvp
INTO TABLE i_knvp
FOR ALL ENTRIES IN i_kna1
WHERE kunnr = i_kna1-kunnr AND
vkorg IN s_vkorg AND
vtweg IN s_vtweg AND
spart IN s_spart AND
parvw = 'ZR'.
LOOP AT i_kna1.
READ TABLE i_knvp WITH KEY kunnr = i_kna1-kunnr.
IF sy-subrc = 0.
MOVE-CORRESPONDING i_kna1 TO i_cust2.
MOVE-CORRESPONDING i_knvp TO i_cust2.
APPENd i_cust2.
endif.
ENDLOOP.
*SELECT kunnr name1
FROM kna1
INTO TABLE i_kna1.
loop at i_cust2.
read table i_kna1 with key kunnr = i_cust2-kunn2.
IF sy-subrc = 0.
i_cust2-name2 = i_kna1-name1.
modify i_cust2.
endif.
endloop.*
icust2 will have partner number ,....partner name is in KNA1,..
so look in tat ..by above code.._ if this is wat u r luking for -
Split the Delivery based on Storage location
HI all,
How to Split the Delivery based on Storage location when creating delivery. is there any functional setting ?
Thanks
KrupaliHi KR and Lakshmipathi,
I am having exactly the same requirement. My requirement is that i need to split one Sale Order line into multiple line items in delivery based on the stock in a particular storage location at the time of delivery creation.
Eg.
Line item 10 in Sale order for quantity 100.
Storage location stock in the priority
ST01 = 40
ST02 = 25
ST03 = 2000
I wish to have 3 line items in delivery like
Line item Storage Location Qty
10 ST01 40
20 ST02 25
30 ST03 35
I was able to do the same in the BADI LE_SHP_DELIVERY_PROC ~ SAVE_DOCUMENT_PREPARE
But i am facing problems regarding the inconsistency in delivery document such as Picking status update etc
Suggest if there is any better method to do.
Thanks in advance.
Maybe you are looking for
-
I have been trying to burn a CD-R at a slower speed but everytime I do so it comes up with Error 4260 and spits it out. I have tried a system reload and still can't get it fixed. I am trying to burn it at a slower speed b/c the CD will not play in
-
Macbook can't see time capsule through airport utility; powerbook can.
This question probably applies to Airport Extremes as well as Time Capsules, but I happened to see it with a new TC. My Time Capsule came in yesterday. My plan was to bridge it into my existing network to serve 802.11n over 5ghz. I did the initial se
-
hi everybody i have DV4-1135ee labtop and i have some serious problems with it : 1- the dvd drive i very weak and didnt read or ever write, it gives me that it writes and when i try to view the content of it i find it empty, so i dosent write and rea
-
HT201412 App goes black screen upon loading, any suggestions to fix this?
I have just encountered a problem when trying to load an app on my iPhone 4, the screen just goes black upon launch and stays black, any suggestions to fix this fault?
-
Access denied: Security Store Credentials
I created a target application in secure store services to be used by BCS. I have two regular domain accounts apptest1 and apptest2. They both have same permission levels for the site collection, site and lists. None of these accounts are included in