on 11-24-2011 10:02 AM
Hi Experts
Anybody have the SP for making Profit Centers mandatory for all Marketing documents including passing manual Journals
regards
KARTHIK
Hi
This is for A/R invoice Document.. by the way you can proceed by changing object type
If @object_type = '13' and (@transaction_type = 'A')
begin
IF EXISTS (SELECT T0.DOCENTRY FROM OINV T0 Inner join inv1 T1 on T0.DocEntry=T1.DocEntry WHERE (T1.ocrcode is null
) AND T0.DOCENTRY = @list_of_cols_val_tab_del)
begin
set @error = 1
set @error_message = 'Choose Profit Center'
end
end
Regards,
Sudhir B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhir
Thanks a Lot. It's working fine.
regards
KARTHIK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
To make profit centre mandatory in 2007 and 8.8 versions, look at http://wiki.sdn.sap.com/wiki/display/B1/SAPB1SQLZ-TSSettingMandatoryField , change T0.Project to To.OcrCode in query.
It will set profit centre as mandatory field on all marketing documents.
In 8.81 , go to general settings and set profit centre as mandatory field.
Thanks,
Neetu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What is your SAP Version and Patch Level ?
In prior to 8.81 you use the Stored Procedure
If You have in 8.81 then default option is there to make a mandatory in procit center.
*Close the thread if issue solved.
Regards
Jambulingam.P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
In SAP 8.81, this feature has come as a default setting under General settings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.