on 09-16-2014 6:17 AM
Hi ALL ,
HOW TO ADD APPROVAL FOR ADD ON
THANK YOU AND REGARDS
SIVA
hello all how to add approval while adding a Addon Screen ..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
maybe you ca do :
1) the user create the price list but your addon when will click on button add the addon save the data on user table and your addon send a internal message to the manager with the id of the user table pricelist.
2) The manager recive the sap internal message, the addon show the price list stored in user table when click on the link in the message and click on add button that create a new price list on sap then the addon delete clear user table data and send a internal message to user with confirmation or not with motivation.
Regards Alessandro
HI.
YES U CAN ADD APROVAL PROCEDURE TO YOUR ADDON.
YOU CAN PASS ALERT MESSGES TO THE MANAGER ONCE YOUR ADDON SCREEN IS ADDED.
I DID EXACTLY LIKE YOUR REQUIREMENT..
STEP1: IN YOUR ADDON SCREEN PUT ONE STATIC TEXT LIKE STATUS
STATUS: APPROVED,REJECTED,DRAFT...................OK
STEP2: ONCE END USER IS OPEN THE ADD_ON SCREEN STATUS SHOULD BE DRAFT OK
STEP3: ONCE MANAGER IS LOGIN IN TO HIS SYSTEM U HAVE TO POP ONE ALERT MESSAGE JUST LIKE ABOVE IMAGE.
STEP4: IN THIS ALERT MESSAGE ALL THE DOCUMENT YOUR ADD_ON SCREEN WHICH ARE IN DRAFT MODE YOU HAVE TO POP UP.
SELECT DOCENTRY FROM YOUR ADD_ON TABLE WHERE STATUS ='DRAFT'
THEN
STEP5: YOU HAVE TO ASK THE MANAGER TO CLICK ON THE DOCENTRY AT ALERT MESSAGE (AT IMAGE 2 POSITION) OK
STEP6: IF HE PRESS 1 DOCENTRY 22 WILL BE OPEN.
BY USING CODING SBO_APPLICATIN.ACTIVEMENUITEM("YOURADDONMENU"
)
STEP7:YOU CAN OPEN THE FORM IN ADD MENU AFTER THAT YOU HAVE TO OPEN DOCENTRY 22 OK
STEP8:PUT ONE COMBO BOX AT YOUR ADDON SCREEN ONLY MANAGER CAN ACCESS THE COMBO BOX . VALUES LIKE APPROVED, REJECTED.
STEP9: MANAGER CAN SELECT COMBO BOX VALUE APPROVED THEN HE WILL UPDATE THE FORM. AT FORM UPDATE MODE... YOU CAN APPLY YOUR LOGIC
IF COMBOBOX.VALUE ='APPROVED' THEN
YOU LOGIN
ELSE
NOTHING
WE CAN DO BY USING ABOVE METHOD.
OR APPLY YOUR LOGIC..
THERE IS NO MANDATORY METHOD FOR COMPLETE YOUR REQUIREMENT..
BUT WE CAN DO IT..
hi,
Step 1) whe the user save the data in the itempressed event with beforection true set bubboleven = false and do this.
ocompany.StartTransaction()
'''''''''''code where user save data in the user table''''''''
if ousertable.add() = 0 then
''''''Create message to send to the manager'''''''
Dim msg As SAPbobsCOM.Messages = Nothing
Dim strSub As String = "RDA - " & Magazzino & " - " & NomRep
If strSub.Length > 50 Then
strSub = strSub.Substring(0, 50)
End If
msg = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMessages)
msg.Subject = strSub
msg.MessageText = "(example)code user table : " & Codeusertable& "
'''''''''''''''''line to set manager
msg.Recipients.SetCurrentLine(0)
msg.Recipients.UserCode = manageruserCode
msg.Recipients.SendInternal = SAPbobsCOM.BoYesNoEnum.tYES
'''link to data if you have a object to link
msg.AddDataColumn("Remind", "(example Valid Data Add ....", APbobsCOM.BoObjectTypes.ousertables, usertableCode)
msg.Priority = SAPbobsCOM.BoMsgPriorities.pr_High
If msg.Add <> 0 Then
If ocompany.InTransaction() Then
ocompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
else
If ocompany.InTransaction() Then
ocompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
End If
End If
'''''' show error''''''''''
End if
ReleaseCOMObject(msg)
end if
in the step 2) when the manager open the message the addon have to open the same form filled with the data stored before in the usertable. So when the manager click on add the data will create in the sap object ad if you want can resend a msg to user like above.
i hope tis help you.
User | Count |
---|---|
111 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.