Authorization Quotation based on status
Hello,
we would like to control based on the status of an quotation if the quote can be deleted or the status be modified.
(e.g. if status = approved, the quote should not be deleted)
Second we would like to restrict the status of a quote to be changed after it was once approved
Thanks for any suggestions
Regards Bernd
About your first question go to spro->CRM->Transactions->Basic Settings->Status Management->Define status profile for user status. Enter in your status profile, and double-click on the status that you want to define the rule - in your case "approved". Then click on new entries, and look if there is available the action that disables deletion of transaction. If yes, then just mark tht action as forbidden and no action.
About your second question to restrict the status of a quote to be changed after it was once approved, you just have to set in your status profile (spro->CRM->Transactions->Basic Settings->Status Management->Define status profile for user status) in the column lowest status no and highest status no the same number as you assigned it to your status "approved" in column Status number.
Regards.
Similar Messages
-
Create quotation based on notification
Hello All,
Can any one tell me hwo to create quotation based on notification.
I know the BAPI's BAPI_QUOTATION_CREATEFROMDATA2 has to be used to create quotation
i get diffrent errors like
1) in sufficient parameters
2) Sales document was not changed
I don't know what these error means and How to solve it.
Here is my code
data: ls_quotation_header type bapisdhd1,
ls_quotation_headerx type bapisdhd1x,
lt_items type table of bapisditm,
lt_itemsx type table of bapisditmx,
lt_partners type table of bapiparnr,
ls_partner type bapiparnr,
ls_item type bapisditm,
lt_return type table of bapiret2,
ls_return type bapiret2,
ls_itemx type bapisditmx,
ls_diadr type diadr,
lv_parnr type ihpa-parnr.
ls_quotation_header-sales_org = '1000'.
ls_quotation_header-distr_chan = '10'.
ls_quotation_header-division = '20'.
ls_quotation_header-doc_type = 'AS'.
ls_quotation_header-ref_1_s = '63693'.
lv_parnr = ls_quotation_header-ref_1_s.
ls_quotation_headerx-notif_no = '000350000002'.
*ls_quotation_header-SALES_GRP = 'SOG'.
*ls_quotation_header-SALES_ORG = '0001'.
*ls_quotation_header-DOC_TYPE
*PURCH_DATE
ls_quotation_headerx-sales_org = 'X'.
ls_quotation_headerx-distr_chan = 'X'.
ls_quotation_headerx-division = 'X'.
ls_quotation_headerx-doc_type = 'X'.
ls_quotation_headerx-ref_1_s = 'X'.
ls_quotation_headerx-notif_no = 'X'.
*ls_quotation_header-SALES_GRP = 'X'.
*ls_quotation_header-SALES_ORG = 'X'.
*ls_quotation_header-DOC_TYPE
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = lv_parnr
importing
output = lv_parnr.
break-point.
call function 'PM_PARTNER_READ_MASTER_DATA'
exporting
parnr = lv_parnr
nrart = 'KU'
importing
diadr_wa = ls_diadr
exceptions
no_valid_parnr = 1
no_valid_parnr_today = 2
no_authority = 3
parvw_and_nrart_inital = 4
others = 5.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
elseif sy-subrc = 0.
move-corresponding ls_diadr to ls_partner .
append ls_partner to lt_partners.
endif.
ls_partner-partn_role = 'AG'.
ls_partner-partn_numb = lv_parnr.
append ls_partner to lt_partners.
*ls_item-hg_lv_item = 5.
*ls_item-material = 31999.
*ls_item-sales_unit = 'LE'.
*ls_item-item_categ = 'ZEQU'.
*APPEND ls_item TO lt_items.
*ls_itemx-hg_lv_item = 'X'.
*ls_itemx-material = 'X'.
*ls_itemx-sales_unit = 'X'.
*ls_itemx-item_categ = 'X'.
*APPEND ls_itemx TO lt_itemsx.
call function 'BAPI_QUOTATION_CREATEFROMDATA2'
exporting
* SALESDOCUMENTIN =
quotation_header_in = ls_quotation_header
quotation_header_inx = ls_quotation_headerx
* SENDER =
* BINARY_RELATIONSHIPTYPE = ' '
* INT_NUMBER_ASSIGNMENT = ' '
* BEHAVE_WHEN_ERROR = ' '
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
* IMPORTING
* SALESDOCUMENT =
tables
return = lt_return
quotation_items_in = lt_items
quotation_items_inx = lt_itemsx
quotation_partners = lt_partners
* QUOTATION_SCHEDULES_IN =
* QUOTATION_SCHEDULES_INX =
* QUOTATION_CONDITIONS_IN =
* QUOTATION_CONDITIONS_INX =
* QUOTATION_CFGS_REF =
* QUOTATION_CFGS_INST =
* QUOTATION_CFGS_PART_OF =
* QUOTATION_CFGS_VALUE =
* QUOTATION_CFGS_BLOB =
* QUOTATION_CFGS_VK =
* QUOTATION_CFGS_REFINST =
* QUOTATION_KEYS =
* QUOTATION_TEXT =
* EXTENSIONIN =
* PARTNERADDRESSES =
regards,
LisaIn the meantime we have found the solution to this problem.
The objectkey must contain the notification number (12 digits):
<b>METHODS</b>
000001 HEADER CREATETONOTIF %00000000001000010000188
000001 OPERATION CREATE %000000000010010
000001 SAVE %00000000001
Kind regards,
Lieselot -
Filtering My Open Task in SAP CRM based on Status, Transaction & Partner Function
Hello
Whenever i create a Task in SAP CRM, it displays that transaction in the My Open Task of all Business Partners involved in that Transaction.
I want to restrict the My Open Tasks based on Transaction Type, Status and Partner Function.
1) The system should work as it is for all other Tasks but for my Custom Transaction Type the logic should be based on status of the Transaction
2) When My Open Task component is prepared the system should consider the Status and Partner Function as well i.e. if the status is Approval of Manager, the system should show the Open Task only to the Manager and not other parties.
3) if the status of the Transaction is Open, the system should only display this Transaction / Task only to Employee Responsible and not to Manager and other people involved in their My Open Tasks.
I have gone through the following post in SCN:
https://scn.sap.com/thread/2056959
I have implemented the method DO_PREPARE_OUTPUT as per the post but it does not do anything. When i redefine the method GET_QUERY_RESULT and remove everything,it does not prepare any list.
If possible please specify which method needs to be redefined in the component/view CRMCMP_GS_WC/TodaysTasks & if possible please share the code that needs to be maintained in that method.
ThanksHi,
Method DO_INIT_CONTEXT should be redefined
This should be redifined to get the collections with your required filter criteria.
* get the collection of entities for the tasks
lr_col = get_query_result( gc_status-open ).
If this does not help, Delete the collections which are not required after above selection but before this code.
me->typed_context->resultnew->collection_wrapper->set_collection( lr_col ).
Thanks
Ajay Singh -
Percentage based on Status using per group
Hi Gurus,
Can you help me with this? You have any approach of getting the percentage based on status using per group?
Currently I have this code below but it doesn’t have result but no error. I am trying to get the % In Complete.
<?xdofx:(sum(current-group()/NUMINCOMPLETE)/(sum(NUMSUBMITTED) + sum(NUMCOMPLETED) + sum(NUMINPROGRESS) + sum(NUMINCOMPLETE)))*100?>
Thanks Much,
JP
Edited by: BIPnewbie on Feb 6, 2012 3:05 AMUse this:
<?xdoxslt:div(sum(current-group()/NUMINCOMPLETE), ((sum(NUMSUBMITTED) + sum(NUMCOMPLETED) + sum(NUMINPROGRESS) + sum(NUMINCOMPLETE)))*100?>
Thanks,
Bipuser -
Auto numbering Column id and filter this lookup id in another list based on status="active"
Hi,
I am trying to autonumbeirng the column id with default column ID. But it is not reset if i delete the list item. Also i want this id in another column which have status="Active". How i will do this?
Thanks in Advance.
RoopeshHi,
According to your description, my understanding is that you want to reset the column ID when you delete the list item and then you want to filter the id in another list based on status.
For resetting column id, there is no direct way to achieve it. I suggest you can save the list as a template and recreate the list. ID columns will always keep incrementing and will never be reused.
Here is a similar thread about reset column ID for your reference:
https://social.technet.microsoft.com/Forums/sharepoint/en-US/848a3d73-6273-45fa-806f-96312a4d71d1/is-there-anyway-to-reset-the-default-id-number-that-sharepoint-gives-to-an-item-back-to-1?forum=sharepointgeneralprevious
For filtering look up field, here are some detailed demos for your reference:
http://filteredlookup.codeplex.com/
https://social.technet.microsoft.com/Forums/en-US/d23d6e9b-dc7b-4741-8746-dd4bf00b8110/how-to-filter-lookup-column-in-sharepoint-2010
v
Thanks
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jerry Guo
TechNet Community Support -
Select data based on status priority
ID PRO_ID PRO_OBJ_ID TASK_ID DEVELOPER_ID STATUS
121243 4940 37506 5250 6532 REJECTED
122063 4940 37506 5250 6532 CLOSE
138306 4940 37506 5250 6532 ACCEPTED
138307 4940 37506 5250 6532 WIP
Hi,
From the above table i need to select data based on status any status that is prior to CLOSE or ACCEPTED it must display all the status any status that is after CLOSE or ACCEPTED we must not consider.
In the above scenioro it must display only the first three status. after ACCEPTED it must not display any thing
Please suggest me a query how to write.
Thanks
Sudhir.Try:
SQL> with t as (
2 select 121243 id, 4940 pro_id, 37506 pro_obj_id, 5250 task_id, 6532 developer_id, 'REJECTED' status from dual union all
3 select 122063, 4940, 37506, 5250, 6532, 'CLOSE' from dual union all
4 select 138306, 4940, 37506, 5250, 6532, 'ACCEPTED' from dual union all
5 select 138307, 4940, 37506, 5250, 6532, 'WIP' from dual union all
6 select 138308, 4940, 37506, 5250, 6532, 'ACCEPTED' from dual union all
7 select 138309, 4940, 37506, 5250, 6532, 'REJECTED' from dual union all
8 select 121243, 4940, 37777, 5250, 6532, 'REJECTED' from dual union all
9 select 122063, 4940, 37777, 5250, 6532, 'CLOSE' from dual union all
10 select 138306, 4940, 37777, 5250, 6532, 'ACCEPTED' from dual union all
11 select 138307, 4940, 37777, 5250, 6532, 'WIP' from dual union all
12 select 138308, 4940, 37777, 5250, 6532, 'ACCEPTED' from dual union all
13 select 138309, 4940, 37777, 5250, 6532, 'WIP' from dual
14 ) -- actual query starts here:
15 select t1.id
16 , t1.pro_id
17 , t1.pro_obj_id
18 , t1.task_id
19 , t1.developer_id
20 , t1.status
21 from t t1
22 where id <= (select max(id)
23 from t t2
24 where t2.status in ( 'ACCEPTED', 'CLOSED' )
25 and t1.pro_id = t2.pro_id
26 and t1.pro_obj_id = t2.pro_obj_id
27 and t1.task_id = t2.task_id
28 and t1.developer_id = developer_id
29 );
ID PRO_ID PRO_OBJ_ID TASK_ID DEVELOPER_ID STATUS
121243 4940 37506 5250 6532 REJECTED
122063 4940 37506 5250 6532 CLOSE
138306 4940 37506 5250 6532 ACCEPTED
138307 4940 37506 5250 6532 WIP
138308 4940 37506 5250 6532 ACCEPTED
121243 4940 37777 5250 6532 REJECTED
122063 4940 37777 5250 6532 CLOSE
138306 4940 37777 5250 6532 ACCEPTED
138307 4940 37777 5250 6532 WIP
138308 4940 37777 5250 6532 ACCEPTED
10 rows selected.If that doesn't work then please provide us some representative sample data again. -
Advaned warning for due date based on statuses
Hi,
While searching transactions, for the due date some icons are coming like(green squere, yellow triangle, tick mark, grayed dimond) and so on.
can I maintain these icons based on statuses. Presently tick mark is coming for one of the statuses maintained in the status management. But for this we didn't maintained any configuration settings at IMG --> CRM --> Interaction center Web client --> Agent Inbox --> Map item attributes to inbox Attributes --> Define advanced warning for due date.
Required quick response as it is business critical requirement.
Thanks,
ChanduHello Praeva ,
The event 1330 has a sample FM FKK_SAMPLE_1330. It doesnt even have a Standard Function Module.
You need to create a Installation-Specific FM and put your code to determine the Due Date based on the logic.
Rgds
Ram Kumar. -
I am not able to diffrenciates the campaigns based on statuses
Hi all,
In marketing calender I am able to diffrenciates the campaigns based on campaign type. But i am not able to do this based on statuses . i configared in SPRO also. But i am not able to get this . i have done all settings .
pls help me out
Thanks in advance,Hi,
Please try this,
1.Have chosen status in marketing calender.
2.In marketing calender , go to tool bar then choose one icon called 'Type of color coding'
3. In that you have option to choose either status or type after completing of all configurations in Spro.
Does this help?
Regards,
Basha. -
Authorization issues MM/PP STATUS Changes
Hello,
I'm getting the following error even with SAP_ALL SAP_NEW
BDC Transaction Report for ZM02. Report: ZUCC0026
Run by: KHALIFAO page: 1
On: 11/11/2009 at : 09:06:12
In System: Q47
Authorization issues MM/PP STATUS Changes
M365SC1110020 ZFIN M680 MM/PP STATUS 00 Not authorized to change MM/PP status
One of my user is having the following error when she excuted the following steps :
Steps:
SE38/ ZUCC0026 - Material Mass update program for Costing View
Enter the following fields before executions
Material : M365SC1110020
Plant: M680
Check off update material
Field to update: select MM/PP status
New Value: 00
Execute transaction
Thanks
Osama
Expected results: output document should states that update of MM/PP status was changed from XX to 00.
This messageHello Julius,
SY-UNAME
ZUCC0026 550 WRITE: / 'BDC Transaction Report for ZM02. Report:'(b01),
/ 'Run by: '(b02) ,sy-uname COLOR 5,
1167 * IF sy-uname <> 'BATCH'.
1183 READ TABLE itab_zusrgroup WITH KEY group_id = group_id
user_name = sy-uname.
1212 SELECT SINGLE update_ind scop_ind
FROM zusrgroup INTO (itab-update_field,l_scop_ind)
WHERE user_name = sy-uname
AND group_id = itab_fields-group_id.
1219 * WHERE user_name = sy-uname
1223 READ TABLE i_zplant WITH KEY
user_name = sy-uname
werks = itab-werks.
1422 SELECT werks FROM zusrplant
INTO zusrplant-werks
WHERE user_name = sy-uname.
1453 MOVE: sy-uname TO i_zplant-user_name,
Parameter :
188 *PARAMETERS: p_mode TYPE c DEFAULT 'N' NO-DISPLAY. JHSIR35508-
189 PARAMETERS: p_field LIKE itab_fields-descriptio.
190 PARAMETERS: p_name LIKE itab_fields NO-DISPLAY.
191 PARAMETERS: p_newval(14) TYPE c.
193 PARAMETERS: p_file(100) TYPE c LOWER CASE.
194 PARAMETERS: p_filval AS CHECKBOX. "0001+
195 PARAMETERS: p_unix AS CHECKBOX. "0004+
33 PARAMETERS: P_UPD AS CHECKBOX.
Thanks
Osama -
No authorization for activating user status PLIM
Dear Gurus,
I'm a newbie to SAP. Currently i'm facing the problem with Tcode KO01 while i'mtrying to create Internal Order. I can initialize the program but after i entered the Order type and pressed enter. Error msg "No authorization for activationg user status PLIM" pop-up. Pls help on this urgently.
Thanks.Dear Payal,
I checked /nSU53 just after i got the error msg. It said authorization check failed. Authorizaton object B_USERST_T status management: Set/Delete User Status using Transaction.
Activity:01
Authorization key: <Dummy>
Object Catagory: ORC
Status Profile: 00000002
What should i do after this??? -
Filtering Equipment download based on status?
Hi,
We are implementing CRM 2007 and need some of the equipments in R/3 to be downloaded to the CRM system. The standard filters on the EQUIPMENT object in R3AC1 only provide very limited filtering options and does not support our requirements.
What would be the best way of filtering based on the equipment status so only equipments with system status ECUS (Equipment at Customer) in R/3 are being downloaded?
Kind regards
ChristianHi Christian,
Have you set filter with JEST table based on STAT?
I also have same requirement, if the equipment status is ECUS, then only EQUIPMENT needs to flow to CRM. I have set filter like below.
But still Queues are forming in CRM. Can you tell me how to restrict the equipment queues based on status.
Thank you
Vijay -
Authorization check based on personnel sub area
Dear experts,
I would like to know if there's a way to do the authorization checking based on personnel subarea? Currently we can perform the authorization check up to Personnel Area only in P_ORGIN.
Please advice.
Thanks in advance.
Regards,
YenThe feature Administrator groups (PINCH) is designed to deal with such a situation.
Example
Administrator A is responsible for personnel areas 1 and 2, Administrator B is responsible for the employee subgroups X and Y within personnel area 3, Administrator C is responsible for all other employee subgroups within personnel area 3. -
How to create Collection Based on Status Message
It's possible create a collection based on Status Message?
If yes, please post how
tks
Allanthe query given by matthew is WQL but not SQL.you cannot run the WQL query in SQL which do not support.
The error what you get is expected .some of the wmi entries that exist in sms provider may not appear in sccm query design.
Do not click on show query design as sms_statusmessage attributes cannot be retrived .After you
created the WQL Query ,just paste in query box and click Ok (Ignore the error message box).
wait for sometime and see if that display any computers.
Eswar Koneti | Configmgr blog:
www.eskonr.com | Linkedin: Eswar Koneti
| Twitter: Eskonr -
How to provide authorization to set the statuses in Design registration
Hi All,
For HTOR transaction type CRMDRGO status profile has been configured. So based on this status profile the user can set any of the statuses which are there in CRMDRGO.Here the requirement is the user should not be able to set few statuses whicha are there in the CRMDRGO. Means for some of the statuses the user shouldn't have the authorization to set.For this I have created one authorization code and i have configured in CRMDRGO.How can i achieve this requirement.can anybody help me out regarding this.Thanks in advance....
Regards,
Laxman.PIn webUI GET_V for this attribute, make the available values as desired by restricting some values for a certain usergroup or role or on a certain value of a certain Authorization Object.
-
Authorization check based on item category on sales order (VA01 or VA02)
I want to be able to restrict authorization of users based on item category. We only want certain users to be able to select a certain item category. I know I'm going to have to check one of the userexits in MV45AFZZ. The issue I'm having is the authorization object .
The item category is field VBAP-PSTYV.
What we are going is having a item category for emergency orders. But this requires more manual steps to associate with the original order. We already have the emergency item categories defined and working (no credit check etc) so there's no reason not to have them added to the original order. The issue is its use has to be restricted so when the user selects an alternative item category it checks whether they have the authority.
Any help would be appreciatedHi,
You can achieve this through authorization objects.
Transaction
SU20 - Authorization Fields
SU21 - Authorization Objects
Create the field PSTYV in the Authorization Fields.
Then Create the authorization object and include this field along with the standard field ACTVT (which determines what activities can be performed by a certain user i.e. Create, Change or Display) & user-name
In your your-exit, you can either use the ABAP command AUTHORITY-CHECK or the function-module AUTHORITY_CHECK and pass the values for these fields. The system can perform the test based on this values & based on the sy-subrc value you can restrict the users that are not having the authorization to select item-categories for emergency orders.
Following link should help you:
[SAP Authorization Concept|http://help.sap.com/saphelp_wp/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm]
Hope that helps you.
Regards,
Saurabh
Maybe you are looking for
-
ABAP server proxy help required
Hello, I want to make two simple ABAP server proxy scenarios 1. File to ABAP server proxy (async scenario) 2. File to ABAP server proxy (sync scenario) Pls send me the blogs/docs for the above scenarios. Regards
-
The iTunes iPod app breaks albums apart if they have multiple artists (perhaps they recognize "artists" and not "album artists"?). This is especially infuriating with soundtracks. I have many soundtracks that I enjoy listening to, and I have found th
-
Can't burn CD's after installing Ver 6.0.5
I just downloaded & installed Ver 6.0.5 When I start itunes, I get a message saying "the registry settings used by itunes for importing and burning cds" are missing, and I should re-install itunes. When I try to burn a playlist to a cd I get a messag
-
BDLS - How to monitor the process?
Dear All, I am running the BDLS sessions in Background (excluding the known huge tables) now in my Testing System just after the system refresh activities from Production to the Testing. The BDLS sessions run more than 22 hours (still in progress now
-
Publishing to Facebook from LabVIEW
I have been tasked with adding social site functionality to a LabVIEW application. The goal is to let the user enter their Facebook and/or Twitter ID & password and then be able to sent updates periodically. The hangup with posting to Twitter has b