cancel
Showing results for 
Search instead for 
Did you mean: 

Display news with approval from Administrator

Former Member
0 Kudos

Dear All ,

My aim is that the employee of my company post there news abt the group company into the portal and the new will be displayed into the portal only if it gets approved by the administrator .

Plz help me our how to achive this.

Plz provide your solution in detail manner since i am new member in SAP World

Regards

Krishan Kumar Yadav

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Krishan,

As far as I remember u have asked the same question earlier also.

I have responded and i guess you were satisfied with the answer.

Please explain why you have opened a new thread asking the same question.

If you are facing some problems then revert back.

Although, I am explaining the solution once again.

1)News are stored in XMl forms format in some repository.

2) You just have to enable the approval process for that repository.

3)Create a step as "Approve News" and designate ur administrator as the approver.

This will solve your purpose.

To see the screenshots refer to the images in Wiki>EPAttachments.

The name of images is Approval1.jpg,Approval2.jpg,Approval3.jpg,Approval4.jpg

For more clearence also refer to the previous thread you asked.

Regards,

Sumit

Edited by: Sumit Oberoi on Dec 22, 2007 1:28 PM

Edited by: Sumit Oberoi on Dec 22, 2007 1:46 PM

Former Member
0 Kudos

Hi Sumit

How r u ?

I ahve gon through the process you told me to do and also i got some reference material

/people/paul.tomlinson/blog/2006/01/27/a-real-world-example-of-flexible-user-interface-150-part-2

I have achived my task almost 90% but there is a problem .

If in folder permission i give every user Read/Write rights then then news item goes for approval to the admin but at the same time the news is disblayed in the main news iview.

If i give only the read permission in the news folder then user won't be able to upload news .

So i thought of a new way .

Ther news which will be displayed in the portal will be comming from Different folder say "News1"

and the news that the user will upload for approval will be stored in another folder say "News2"

so as the administrator approves the news that news XML file should move from NEWS2 folder to NEWS1 folder .

Dear plz suggest me how to achive that

Regards Krishan Kumar

Former Member
0 Kudos

Hi Krishan,

The problem is now more clear to me.

This is happening: When any user uploads the news it goes to the main news view together with the repository.

Now you need to modify the flow.

This is what uy shud do.

1)Open ur main news view for editing.

2)Go into its properties .

3)Change the source from NEWS2 to NEWS1.

Hi Krishan,

The problem might not be solved by the above suggestion also.

As the permissions for iview has been given to everyone.

Now as per my knowledge u have to options:

1) Modify the permissions of the main news iview. OR

2) You can make a new iview and replace the main news iview

I found the above two options better than the effort for" moving XML forms from one repository to another on approval".

I hope it helps.

Regards,

Sumit

Regards,

Sumit

Edited by: Sumit Oberoi on Dec 26, 2007 7:57 AM

Former Member
0 Kudos

Hi Sumit ,

Thanks a lot for that reply but our main concern is that the news should be only displayed after getting approved by the admin .

I was not abe to get completly what you wanted to convey.

So plz if you can explain me in detail then that will be very helpful to me.

Thank you once again dear

Regards

KK

Former Member
0 Kudos

Hi Krishan,

Okk.

In document approval process everyone(with atleast read access) can view the doc after approval.

But , in ur case pblm is that the main news iview is having read permissions for everyone( which i guess are not editable).

So u can try these as i explained earlier.

1) Go to Content_Admin-->Portal content >content by Sap>End user content> iviews>km iviews--->News. open this iview for editing and change the property( path to initially displayed folder and path to root folder)

2)Or u define a new iview and make ur News repository as the source.

I have seen ur new thread also. I am also working on your thought of moving xml file from one folder to another on approval. Will get back if got ne answer.

Regards,

Sumit

Edited by: Sumit Oberoi on Dec 26, 2007 9:04 AM

Edited by: Sumit Oberoi on Dec 26, 2007 10:50 AM

Former Member
0 Kudos

Hi Krishan,

I was exploring for the option of displaying news only after approval.

Look krishan tha action of approval is in UWL and we need to do something in UWL only to diplay news after approval.

This option can be useful:

1)Make a custom button as "display" on the UWL screen.

2)Approver has to click this button before the approve button.

3)On click of "display" button a WD application runswhich copies xml files from NEWS1 repository to NEWS2( where main news view points).

This blog tells how to launch a web dynpro application from UWL:

The doc required for KM APIs is:

https://help.sap.com/javadocs/NW04S/current/km/index.html

This blog will help u to know which APIs to use ad how to use them for getting the content of one repository.

You just have to figure out ways to cut and paste the repository content.

I hope this helps.

Regards,

Sumit