cancel
Showing results for 
Search instead for 
Did you mean: 

Add Approval for Addon

Former Member
0 Kudos

Hi ALL ,

               HOW TO ADD APPROVAL FOR ADD ON

THANK YOU AND REGARDS

SIVA

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hello all how to add approval while adding a Addon Screen ..

AdKerremans
Active Contributor
0 Kudos

Hi,

What do you want to do. your question is a bit short to be answered

Regards

Ad

Former Member
0 Kudos

HI AD,

   I createing a  price list updating screen the user should not add the document if he press add button then it should go for manager for approval ..

thank you in advance

siva

AdKerremans
Active Contributor
0 Kudos

Hi Siva,

You could store the pricelist update in a user defined table and make a second screen where the manager can approve the change and then change the prices.

Regards

Ad

Former Member
0 Kudos

thankyou Ad ,

            is there any object for sending approval ?

other wise i will do as you said ...

thank you

AdKerremans
Active Contributor
0 Kudos

Hi, Siva,

There is no object for price update approval.

Regards

Ad

Former Member
0 Kudos

ok for USER define Table is there any object

... for approval

AdKerremans
Active Contributor
0 Kudos

Too bad, no

Former Member
0 Kudos

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

Former Member
0 Kudos

hiAlessandro

thankyou i will try

regards

siva

Former Member
0 Kudos

hi Alessandro

i have tryed can u giv the exact idea  pls ...

thank you and regards

siva

Former Member
0 Kudos

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..

Former Member
0 Kudos

HI sreenivas ,

             Thank you i will try and get back

regards

siva

Former Member
0 Kudos

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.