Email invoice to different addresses based on company code
Running 4.7 and want to send invoice via email to different customer email addresses depending on the company code of the billing document. Currently, configured to send invoice to bill-to party in header of billing doc. Still using modified version of RVADIN01 & Sapscript.
Has anyone done this? Can I overide the email address in the abap and if so, how?
Hi,
you have to have call of FM OPEN_FORM in your modified version of RVADIN01. This FM has input parameter MAIL_RECIPIENT. So you just need to find correct spot where you can change value of this field to correct email address.
Cheers
Similar Messages
-
Shopping cart default delivery address based on company code
Hi All,
As a standard behaviour of SRM, currently delivery address in shopping cart is defaulted from attribute (ADDR_SHIPT). But in our case we use cross company purchasing where requisitioners buy for different company codes.
Some times, they forgot to change the default dlivery address and shopping carts are getting created with wrong delivery address.
Is there any way, the we can default the delivery address based on company code selected by the user instead of defaulting from user attribute?
Suggestions would be greatly appreciated.
Regards,
KrishHi Krish,
Am looking for a same solution but instead of delivery address, we are looking for change in invoice recipient address
ADDR_BILLT. For this i have identifed a FM: BBP_GET_BILL_TO_PARTY from which system pulls the defaulted attribute of user profile. Now we are in a change of pulling the attribute defaulted to the company code entered in SC rather than the user's defaulted ADDR_BILLT.
Similarly i guess for your issue you can use the FM: BBP_GET_ORG_SHIPTO_ADDR implementing a enhancement in DOC CHANGE BADI
Regards,
Nihar -
Different pricing based on company codes
Dear experts,
I have a scenario where One of plant is not mapped in SAP, for stock transfer this plant has been created as a vendor, a different account group has been created for such vendors ( unmapped plants) now it is required that if any purchase from this vendor is made within the same country then tax codes should be the different and if purchase is made from a plant which is in different country code then tax code should be different.(tax code for inter company vendors)
your help will be highly appreciated.
Thanks & Regards
AnandHi,
1) You can set up the purchasing master record such as contract or info record where a different tax code is assigned to this particular vendor. This tax code will be automatically defaulted into the new PO.
2) Through the configuration of plant tax ID and assignment of plant tax ID to your plant (under IMG ---> Material Management ---> Purchasing ---> Taxes ...., you can be able to default different tax code for different plant).
Cheers,
HT -
TS4002 Can't send an email to many different addresses
Hello everybody! I was trying to send an email to many different address thru icloud and a pop window saying that I could do it at the time came up...I just copy a thousand of addresses that I had and paste it to the icloud address field but it didnt work. Any sugestions?
The maximum number of recipients per message is 100.
http://support.apple.com/kb/ht4863 says:
Limits on Sending Messages
iCloud has several safeguards to ensure that only iCloud members can send messages using the iCloud outgoing mail server. Among these safeguards are reasonable limitations on:
The total number of messages you can send each day (200 messages)
The number of recipients to whom you can send each day (1000 recipients)
The maximum number of recipients per message (100 recipients)
The size of incoming and outgoing messages (20 MB)
iCloud email has been designed primarily for personal use. Sending unsolicited bulk email messages through iCloud email servers is prohibited. To review the iCloud membership agreement and acceptable use policy, please see theiCloud Terms and Conditions. -
Two address for one company code
Hi SAPians,
I have a doubt in maintaining company address for Invoice output!
Is it possible to maintain two Address for one company code?
Like if XYZ company code and say it has has two customers AB and CD.
Then if i want to maintain Company address on print layout for invoice Different to each. how can i achieve it.
If yes, please through light on it.
Regards,
RomeshHi ,
As far i know it is not possible to have two different address for the same company code.As table can hold only single unique data.
As far as the above answer is concerned, we use International version fo Customers not for Company Codes.
Hope it helps.
Thanks and Regards
Rohit. -
Restriction of Tcode SQ01 based on Company code
We are running one customized query using Tcode SQ01. We need to restrict Tcode SQ01 in company code level. We have checked about authorization object in st01. But there is no check of authorization object. Can anybody help to restrict SQ01 based on company code level?
Regards
AuroshikhaHi Auroshikha,
Itu2019s very easy to maintain authorization in your Infoset Query report. I got and implemented similar requirement i.e. restriction /authorization as per company code.
You need to use authority check for authorization object P_ORGIN in your infoset.
Please follow the bellow steps:
-->Go to SQ02, Enter your Infoset name and click on Change button.
-->Click on 'Code' (Shift+F8) icon dispalyed on application toolbar, you will be moved to Code Section of Infoset that lists different events.
-->Choose Record Processing event from code section.
-->Write the following code in 'Record processing' event of your Infoset.
AUTHORITY-CHECK OBJECT 'P_ORGIN'
*ID 'INFTY' FIELD '*'
*ID 'SUBTY' FIELD '*'
ID 'AUTHC' FIELD 'R' "read
ID 'PERSA' FIELD P0001-WERKS
*ID 'PERSG' FIELD DUMMY
*ID 'PERSK' FIELD DUMMY
*ID 'VDSK1' FIELD DUMMY.
CHECK Sy-SUBRC EQ 0.
Note: PERSA field used in this Authorization object plays an importan role , if you are in different module other that HR , then pass here table_name-companycode_field
-->Genetare Infoset
-->Go to SQ01 (in a new session) , Click on exeute or 'Test button' to check authorization is working for report
Let me know if you need any more details.
Thank you.
Regards,
Dinesh Tiwari -
SD number range based on company codes
Dear all,
We have two company codes in one client.We want to create separate SD number ranges based on company codes.Is there any possibilities to do this.Please advice.
Regards,
Abdul jabbarAbdul,
If you have different doc types for two company codes then you can maintain different number ranges in standard for two company codes.
If you have same doc types for two company codes then you have to go for enhancement.
1. Create one ztable: Maintain the entries like below.
company code
SD document categ.
Document type
Sequence Number
Prefix code
Object name
Number range number
2XX1
C
ZXXX
1
A01
Z_XXX_X1
01
2XX1
C
ZXXX
1
A01
Z_XXX_X1
01
2XX1
C
ZXXX
1
A01
Z_XXX_X1
01
2XX1
C
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
K
ZXXX
1
A01
Z_XXX_X1
01
2XX1
K
ZXXX
1
A01
Z_XXX_X1
01
2XX1
L
ZXXX
1
A01
Z_XXX_X1
01
2XX1
M
ZXXX
1
A05
Z_XXX_X1
05
2XX1
M
ZXXX
1
A05
Z_XXX_X1
05
2XX1
M
ZXXX
1
A05
Z_XXX_X1
05
2XX1
N
ZXXX
1
A05
Z_XXX_X1
05
2XX1
N
ZXXX
1
A04
Z_XXX_X1
04
2XX1
O
ZXXX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08
Z_XXX_X1
08
2XX2
O
ZXXX
1
A08
Z_XXX_X1
08
2XX2
O
ZXXX
1
A08
Z_XXX_X1
08
2XX2
O
ZXXX
1
A08
Z_XXX_X1
08
2XX2
P
ZXXX
1
A09
Z_XXX_X1
09
2XX2
S
ZXXX
1
A08
Z_XXX_X1
08
2XX2
S
ZXXX
1
A08
Z_XXX_X1
08
2XX2
S
ZXXX
1
A08
Z_XXX_X1
08
2XX2
T
ZXXX
1
A07
Z_XXX_X1
07
2XX2
T
ZXXX
1
A07
Z_XXX_X1
07
2. In SNRO Maitain the number Ranges interval
First system take the number range interval and searches for the entry in ztable and prefix the code as per the ztable enteries.
By this u can differentiate the number ranges by company code.
Revert back to the forum if need any clarification.
Thank$
Hidayath -
Inserting logo based on Company Code in Adobe Forms
Hi All,
I need to insert three different logos in adobe foms based on company code.
Please help.
Regards,
SreelakshmiHi,
Thank you very much for your reply. I need to pass logo from interface. Can you please tell me how to include logo field in the form interface.
regards,
sreelakshmi. -
How to determine number range for billing document based on company code ..
Hi Friends!!
can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
Amit...plz help me!!Hi Amit,
1. Define different Billing Document number ranges in SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
e.g.
NO. From number To Number Current number Ext
A1 0930000000 0930999999
A2 0940000000 0940999999
A3 0950000000 0950999999
2. Define a Ztable ZNUMB_RANGE as follows
Comp. Code | Tax departure country | Billing Doc Type | Number Range
100 IN F2 A1
200 IN F2 A2
200 US F2 A3
3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
If found pass this number range value to us_range_intern.
us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
Let me know if you are clear.
Thanks,
Mandar -
Dear All,
As we are having several company codes and want users only to be able to open and close periods from transaction code OB52 belonging to their posting period with respect to company codes how can I restrict and allow them open & close periods based on company code repectively. Is there any process this be done.
I tried with the notes I got from one sap-img link. But it did not work & there something is missing. Kindly if anyone have done this before send be step by step process. Awaiting for you reply...
regards,
Raj B...How about trying it this way?
1. Remove access to OB52
2. Create a maintenance view similar to V_T001B specific for each company.
3. Create a TCODE for each of these views.
4. Use this TCODE for authorization assignment.
This should be simple but your number of views would be increasing with respect to the number of companies.
~Eswar -
Gl a/c short and long text based on company code
Hello Friends,
In table skat the gl account description is given based on chart of accounts but what if i want the description based on company code.
I want the table where i can get the gl account description based on company code??
Pls suggest.
Regards,
SunnyHi,
you can look at the database view for requirement
GL_ACCT_CC_TEXT
regards\
Mahesh -
SKF transactional values based on company code
Can anybody let me know the logic how we can seggregate transactional value passed to statistical key figure based on company code or is there anytable where we can direclty find SKF transactions involved based on company code ?
Need to upload SKF transactional figures from one SAP system to another.Hence require process for extraction and uploading of the sameHi Amogh
Hope you are looking for actual SKF quantities posted. kindly check s_alr_87013611 CC report, I think on the lower part this comes. This time I am not in front of system so you please check.
Regards
Rajneesh -
Decimal places adjustment based on company code or currency
Hi experts,
my requirement is i have to adjust the decimal places in amount fields of internal table based on company code or currency given by user.
suppose for example in my internal tables having 5 amount fields like 1.50 1.234 1.45 1.34, 1.67 for company code is in01
the same values for VN01 should be like this
150 1234 145 134 167 ....
can any body plz tell me any functional module is there to covert or abapcode?
Thanks in advance,
veena.That code is a bad idea. Why would you hard-code that type of action for currency/amount handling?
@poster: If the output is based on the local currency defined for the specified company code or one specified by the user, then use it. SAP handles amount output automatically with a currency specification because the currency definition identifies where/how the decimal is output.
Just use WRITE as Florian indicated but use the CURRENCY extension instead of DECIMALS. You can do this dynamically based on the company code easily...
A simple 3 line program shows you how this works:
PARAMETERS: p_wrbtr type wrbtr.
write:/ p_wrbtr CURRENCY 'USD'.
write:/ p_wrbtr CURRENCY 'JPY'.
Edited by: Brad Bohn on May 12, 2011 1:07 PM -
Any option to restrict SE16 record level access based on company code?
Hi All,
I have a requirement to restrict record level access in SE16 based on company code.
Our SAP system has two company codes. The requirement is that users of one company code should not be able to see records of other company code in SE16.
Is it possible through some exits/badis/other methods?
Thanks in advance.
Regards,
Arun MohanYou could write a small front end that accepts the company code, applies custom authorization code for each value and retains or removes, then calls the transaction and enters the selections the user requested and that your authorization check resulting in "passing".... Of course, you'd have to block those users from "pure" SE16... I once worked in situation similar, users in one country couldn't see USA data, etc. I think someone wrote an entire new program, called by ZSE16, for that.
-
Get pernr based on company code in logical databse
Hi,
When using the get pernr event, all the pernrs that I get are in the ascending order I want them first grouped based on the company code and then on pernr.
Any suggestions would be appreciated abd suitably rewarded.
for ex: get pernr.
write:/ pernr, bukrs.
end-of-selection.
result: 00000099 1001
00000002 1003
Regards
Vick
Message was edited by:
vick vennavfor ex: get pernr.
write:/ pernr, bukrs.
end-of-selection.
result: 00000099 1001
00000002 1003
We are sending the payroll information to the 3rd party for pay check purposes, at my client side they have inserted a custom include in the standard program and populating the information in a flat file which needs to be sorted first based on company code and then on pernr. If I try to do it later,the code is becoming a mess, so I want to know is there a way to get pernr using logical database whose order is based on company code.
Regards
Maybe you are looking for
-
Help! I'm new to OS X Leopard
Hi, In fact, I am new to Mac. I switched to Mac from PC just recently. Last night the TextEdit program wasn't responding, so I hit Command Option ESC and did a force quit to the application. After that, the window from the Command Option ESC wouldn't
-
Re-create or recover frmcmp.sh file?
OS: SLES 9 (Linux) Oracle As: 10.1.2.0.2 (Rel 2 for Linux) Is it possible to re-create or recover frmcmp.sh file? Some how my existing frmcmp.sh become corrupted. Its showing my size 0. -rwx------ 1 oracle oinstall 0 2005-09-20 11:38 frmcmp.sh And I
-
Beginning last week, Firefox will not connect to the internet.
Firefox will not access the internet at all. This began suddenly and not immediately following a change in Firefox or my computer.
-
Daylight Savings Time Change Mar-2007
Is this years new date for DayLight Savings Time going to affect my WRT54G v3.1 router? My firmware is 4.30.5. Also, does anyone know why the opening admin page for my router say I have a WRT54GL?
-
hi I have problem in installing iTunes. a message appears everytime i try to install it which is about " could not open key .." and " error 7 (126)" and " The program cann't start because AVFoundation.dll is missed..." also, I tried to delete the "ap