Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all 3160 articles
Browse latest View live

Multi line text in mail body

$
0
0

Hello All,

I have a problem in mail step. When I am trying to fetch the rejection reason text,

it's fetching only the First Line. But I need all text content instead of First line.

Please Help me in this.

I have written the code like below.

 

DATA: reason_txt TYPE swcont-value,
      reason
TYPE swc_object OCCURS0,
      object_content
LIKE solisti1 OCCURS0,
      workitemid
LIKE swr_struct-workitemid,
      subcontainer_all_objects
LIKETABLEOF swr_cont,
      lv_wa_reason
LIKELINEOF subcontainer_all_objects,
      lv_no_att
LIKE  sy-index,
      document_id
LIKE sofolenti1-doc_id,
      return_code
LIKE  sy-subrc,
      ifs_xml_container
TYPE  xstring,
      ifs_xml_container_schema
TYPE  xstring,
      simple_container
LIKETABLEOF swr_cont,
      message_lines
LIKETABLEOF swr_messag,
      message_struct
LIKETABLEOF swr_mstruc,
      subcontainer_bor_objects
LIKETABLEOF swr_cont.

swc_get_table container
'REASON' reason.
swc_get_element container
'WORKITEMID' workitemid.

* Read the work item container from the work item ID
CALLFUNCTION'SAP_WAPI_READ_CONTAINER'
 
EXPORTING
    workitem_id              = workitemid
   
language                 = sy-langu
    user                     = sy-uname
 
IMPORTING
    return_code              = return_code
    ifs_xml_container        = ifs_xml_container
    ifs_xml_container_schema = ifs_xml_container_schema
 
TABLES
    simple_container         = simple_container
    message_lines            = message_lines
    message_struct           = message_struct
    subcontainer_bor_objects = subcontainer_bor_objects
    subcontainer_all_objects = subcontainer_all_objects.

* Initialize
lv_no_att =
0.

* Read the _ATTACH_OBJECTS element
LOOPAT subcontainer_all_objects INTO lv_wa_reason
                                
WHERE element = '_ATTACH_OBJECTS'.
  lv_no_att = lv_no_att +
1.
  document_id = lv_wa_reason-
value.

ENDLOOP.

* Read the SOFM Document
CALLFUNCTION'SO_DOCUMENT_READ_API1'
 
EXPORTING
    document_id    = document_id
 
TABLES
    object_content = object_content.

* Pass the text to the exporting parameter
IF sy-subrc = 0.
 
READTABLE object_content INTO reason_txt INDEX1.
 
SHIFT reason_txt BY5PLACESLEFT.
  swc_set_element container
'REASON_TXT' reason_txt.
ENDIF.
end_method.


User Decision step has completed but no process further

$
0
0

Hi All,

 

I am facing this issue for first time. The user decision step has completed but the workflow didn't process further. The user has authorization to approve it. I can't find any workitem in SWPC, SWPR  and no dump as well. I can find the result value 0001 and actual agent filled. I cannot refresh the buffer in production.

 

Regards,

Bikash.

Multi line text in mail body

$
0
0

Hello All,

I have a problem with mail step in my workflow.

When I am fetching reject reason to send it in mail body,

Only Line no one is getting fetched. Instead of first line I need complete Rejection text .

 

So please help me .

 

Below code I have written.

DATA: reason_txt TYPE swcont-value,
      reason
TYPE swc_object OCCURS0,
      object_content
LIKE solisti1 OCCURS0,
      workitemid
LIKE swr_struct-workitemid,
      subcontainer_all_objects
LIKETABLEOF swr_cont,
      lv_wa_reason
LIKELINEOF subcontainer_all_objects,
      lv_no_att
LIKE  sy-index,
      document_id
LIKE sofolenti1-doc_id,
      return_code
LIKE  sy-subrc,
      ifs_xml_container
TYPE  xstring,
      ifs_xml_container_schema
TYPE  xstring,
      simple_container
LIKETABLEOF swr_cont,
      message_lines
LIKETABLEOF swr_messag,
      message_struct
LIKETABLEOF swr_mstruc,
      subcontainer_bor_objects
LIKETABLEOF swr_cont.

swc_get_table container
'REASON' reason.
swc_get_element container
'WORKITEMID' workitemid.

* Read the work item container from the work item ID
CALLFUNCTION'SAP_WAPI_READ_CONTAINER'
 
EXPORTING
    workitem_id              = workitemid
   
language                 = sy-langu
    user                     = sy-uname
 
IMPORTING
    return_code              = return_code
    ifs_xml_container        = ifs_xml_container
    ifs_xml_container_schema = ifs_xml_container_schema
 
TABLES
    simple_container         = simple_container
    message_lines            = message_lines
    message_struct           = message_struct
    subcontainer_bor_objects = subcontainer_bor_objects
    subcontainer_all_objects = subcontainer_all_objects.

* Initialize
lv_no_att =
0.

* Read the _ATTACH_OBJECTS element
LOOPAT subcontainer_all_objects INTO lv_wa_reason
                                
WHERE element = '_ATTACH_OBJECTS'.
  lv_no_att = lv_no_att +
1.
  document_id = lv_wa_reason-
value.

ENDLOOP.

* Read the SOFM Document
CALLFUNCTION'SO_DOCUMENT_READ_API1'
 
EXPORTING
    document_id    = document_id
 
TABLES
    object_content = object_content.

* Pass the text to the exporting parameter
IF sy-subrc = 0.
 
READTABLE object_content INTO reason_txt INDEX1.
 
SHIFT reason_txt BY5PLACESLEFT.
  swc_set_element container
'REASON_TXT' reason_txt.
ENDIF.


Insert/Update/Delete Infotype within Workflow --> Best Practice?

$
0
0

Hi folks,

 

I'm at the verge of using UPDATE TABLE <dbtable>. Let me elaborate why:

 

System Info:

 

NW AS 7.03 ABAP Stack 731 Level 13, ECC 606 (EHP 6) with SAP_HR 604 Level 81 and EA_HR 607 (HR-Renewal 1) Level 32

 

Background:

 

I want to manually implement a pseudy-integration with the PT module in our FI-TV. Our business process allows for the fact, that there's only need for a manipulation of IT 2002 ST0027 for two Events of BUS2089 (handled via Workflow), i.e. the scope of the implementation is quite small.

 

Problem:

 

The first thing that came to mind was creating a standard task which reuses good ol' FM HR_INFOTYPE_OPERATION (yes, I am aware it's not released for customers). However, this doesn't work because the FM decides to crash upon a problem in the programming which seems to be older than a decade (according to my research):

 

violate_precondition.JPG

 

I found the following SCN dicussions amongst others: HR_INFOTYPE_OPERATION Precondition ViolatedUncaught exception in HR_INFOTYPE_OPERATION, CX_HRPA_VIOLATED_PRECONDITION using HR_INFOTYPE_OPERATION to insert record.

 

As far as I understood, the problem occurs because the factory method is wrongly called several times in case of a mixtured usage of the coupled and decoupled infotype framework (that applies for my company, we use both). Unfortunately, none of the mentioned workarounds, i.e. calling it in an RFC wrapper with "DESTINATION 'NONE'", executing in new task, submitting a program, executing that magical form routine "do nothing" in SAPFP50P worked for me. It still crashed. After searching for notes (none of the found notes apply for my system anymore, the corrections are all already implemented) and finding KBA #2093195 I gave up on this approach. To whomever created this KBA: I hereby declare you wisenheimer (even though I sympathyize with you, since you are probably an employee in Support who gets 50 incidents for this non-released FM per day).

 

My alternative approach was using BDC instead (yes I know BDC shouldn't be used within workflows), which also didn't work, because the processed logic is not commited, i.e. nothing is written to the database into the PA*-Tables, not even when using a heretic explicit COMMIT WORK.

 

Both approaches work perfectly when used outside of the workflow.

 

Yet another idea was stealing the idea from the leave request business logic, converting stuff a billion times from BLOP to Attabs and vice versa until the system is so confused things just have to work. But that would have been to expensive due to its complexity.

 

I've now fallen back to creating a job which uses HR_INFOTYPE_OPERATION yet again and this works, but I find this to be horribly inelegant and I'm not happy with it, because it deviates from my workflow design and skips its protocolling and... meh.

 

So, folks, what do you do when you need to manipulate infotypes within a workflow? What magically elegant solution did I miss?

 

Cheers, Lukas

 

P.S. Maybe it's all so damn expensive, because I forgot to offer a sacrifice to the Workflow Goddess ? :<

Error in deletion of WSDL File.

$
0
0

Hi everyone,

 

I am facing one fetal problem in my BPM development using NWDS. I have created one RFC WSDL service, but due to some problem I had to delete that.

When I deleted that WSDL file neither its getting Deleted nor it allows to reimport of same file.

However This service couldn't be opened and no Right Click option is available for that.

I tried with Reimport of this Development Component in other system also but the same problem exists there as well.

 

Does anyone have idea what is exact cause of this problem .

 

Thanks in Advanced.

Deepak Kalouni

TransportBindingException: Response code (401) [Unauthorized]

$
0
0

Hello Experts,

 

I have created an ABAP Provider system with SAP_DEFAULT_PROFILE (WS). The runtime authentication has been set to Technical User and I am able to find my ABAP web service when I ping the system.

 

When I try to test the service from WS Navigator I get the following error:

 

Invalid Response Code (401). Server [http://<server>:<port>/sap/bc/srt/rfc/sap/zwam_get_approver_wsd/400/zwammi_srv_apprv/zwammi_srv_apprv] returned message [Unauthorized]. Http proxy info: none

 

[Exception]

com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Response code (401)


Please provide your valuable inputs.

 

Thanks & Regards

Gaurang Dayal

FM:SAP_WAPI_DECISION_COMPLETE behaves differenty in Q & Dev Client

$
0
0

Dear Expert,

 

SAP_WAPI_DECISION_COMPLETE Works fine in Q but in Dev it's complete the current work item & does not create the new Work item for the next level approval.

 

I have checked the log & found error in Dev Cleint  "Work Item & is locked by User WF-Batch'  which is not coming in Q client.

 

after callling FM SAP_WAPI_DECISION_COMPLETE (wait statement is there for 6 Seconds).

 

Please suggest what to do. Thanks is Advance....

 

 

Regards,

Santosh Gupta

Workflow container value is not getting populated after copied workflow template to other server

$
0
0

Hello Experts,


Copied a custom Appraisal Workflow from a server to an another Dev server. But after activating the workflow in new server, the task container value is not getting populated correctly.

 

I have checked all the bindings between method_>task and task->to Workflow and moreover Workflow is triggered properly.

Tried to use SWU_OBUF without success.

 

Did the all neccessary things to activate workflow properly.

 

I have no clue about this issue though the appraisal workflow in other server from which I have copied, is working properly in another server.

Please suggest. The requirement is very urgent.

 

Regards,

Rituparna


Display Material Document from Workflow Email

$
0
0

Hi all,

 

Please help me with the following.

Upon material document creation (BUS2017 - CREATED) I start a workflow that ends up sending in-sap emails  (SELFITEM - SENDTASKDESCRIPTION ) to notify them that the document has been created.

 

When the user received the email, I would like him/her to be able to drill down to the MB03 / MIGO TCODE and view the document.

 

So far i've been able to either send the email containing the material document &BUS2017-MATERIALDOCUMENT&

OR 

send a workitem for BUS2017-DISPLAY method.

 

I want to attach the Display Method Workitem to the Email, or any other solution to achieve the above mentioned task.

 

Thank you in advance,

Andrei

Language Issue

$
0
0

Hello All,

I have problem related to language.

My requirement is , when user logging in to system. in his inbox he wants to see

all work item in Chinese language . ZH(Chinese) language will be his SY-LANGU.

 

So please guide me to proceed for next,

 

Thanks

Abhisek

How to select event Type to trigger st. Wf

$
0
0

Hi Experts,

 

My Requirement is in transaction UKM_ BP

 

once check rule(TC) , Credit limit (LC) , Payment Behaviour (VC)  will be changed and for  Credit Rejected (CF) than standard workflow ws01700047 will be triggered and notification will be sent to credit analyst.

 

how could I select event type TC, LC, VC and CF to trigger workflow?

 

 

Regards

Goutam

Wrong Data Coming in SBWP

$
0
0

Hi Experts,

 

     In SBWP i am getting wrong data in one column for work flow "PO Invoice Dash Board (Header WF). To be specific vendor number is coming wrong.  The business object I am using is /OPT/B2081 which is an extension of BUS2081 (This is a Open Text VIM application). How should I proceed in order to know from where the application is fetching vendor number from?

 

BR.

SAP Workflow

$
0
0

Hi Experts,

 

For my Customized Workflow, SWO1 i had created customization Business object(ZBUS2089) by giving Super type as Standard business object(BUS2089) and created Function module for picking the position of the Employee in method and activated(Released and Generated).

When i check in SWUS it is working fine as Manual by clicking the user decision in work log and approve.

Now if i create the Travel Request in TRIP T.code. My workflow is not Triggering. I also checked,

SWU3, SWE2, SWUE all are Configured and stimulated.

 

Kindly help me to resolve the Problem and why my workflow is not triggering.

 

Thanks,

Gkl

Changing the Link Text for Extended Notificattons

$
0
0

Hello

 

First, let me say, I have searched everywhere for my answer and to no avail.  I have configured extended notifications and it all works wonderful.  I need to change a couple of things and I have tried and tried to muddle through looking on how to accomplish.

 

1.  In the email that comes via outlook I have two links as there are two different ways that an end user can log into to approve or reject a document.  One for portal and the other via SAP Workplace.  The links reads:

  • Workflow Inbox - this goes to the portal
  • Execute Work Item - this goes to SAP Workplace

 

I want to change these two links above to read something else that would be more user friendly so that the end user can tell where they are going..that change would be something like:

 

for Workflow inbox it would read.....SAP Workflow - Web Base

 

 

for Execute Work item it would read....SAP Workflow - SAP Software

 

I have read this is capable through use of SE80 but I cant seem to find something very concrete that states this is a true statement or how to accomplish this.    Any assistance would be greatly appreciated.

 

The other one thing I would like to change is when the End User selects the link to SAP Workplace and it has already been approved rejected.  At present the standard message that SAP gives is

 

"Following errors occurred when editing the work item - work item XXXXXX already deleted or ended - unable to execute again"

 

I would also like to  change that up a bit.

 

In saying that, my main concern is the two links, if I could get that changed, I would be very grateful.  Thanks

workflow help required

$
0
0

I am new to workflow and would require the steps to achieve the below requirement .Would be thankful for your inputs .

 

 

When a manual booking with document type AS or SA will be created in SAP , user who will create the booking will first park this. After parking the document the SAP workflow must be triggered for posting and approving the booking.

 

Workflow approval and posting document must be assigned to user user1  and/ or user2 in SAP  who will post and approve the booking.

 

Following users must be able to park the posting and start workflow to assign the posting to users user1 and/or  user2:

user5

user6

 

If users user1 or user2 park documents there needs to be a rule that they are not able to approve and post the document also.

For all other postings (which are not created by user1 or user2) both users can/may approve and post the document.

 

Maintain the Workflow settings which are needed for the process above.

 

Create necessary WF roles for the workflow assigner (users user5,user6) and for workflow approver (user1 and user2 ).

User user3 and user4 need a monitoring role (display authorization).


Work Item Being Auto Forwarded.

$
0
0

Hi Experts,

 

There is a leave scenario for my client which is an MNC and the scenario is specific to a country, where in, when an employee raises a sick leave request in the portal, it should go to the official doctor of the organisation. To achieve this a FM is written in BO where in the doctor's position is hard coded and in turn which is binded to the WF.

 

But what it is happening in production is, for some employees the work item is being triggered to doctor. For some employees the work item is  auto forwarded to the line manager of the employee immediately when it is triggered to the doctor.

 

Any Help is appreciated.

 

Regards

Phani Kumar

Purchase order release work flow mail

$
0
0


Dear Friends,

 

In our organisation PO release configured and the work flow also activated based on the Org position assignment. here we are using 3 levels in release strategy.

 

1st level---- supervisor/ manager/reginal manager can be approved the PO

2nd level---- manager/reginal manager can be approved the PO

3rd level----- Approval by CEO

 

 

Release strategy is triggered perfectly and the relevant work flow also perfectly started. But the mail is not prperly received to the particular user SAP inbox.

 

For ex., I have assigned two user ID's(A & B) for a particular position and the position ID is also assigned to the relevant release code in the name of agent ID

 

 

A & B, both suppose to receive the work flow mail. Here, the mail is triggred to two user's, but one receives the mail and  another one is not.

 

When i checked with SWI1 transaction, two user names is displayed belongs to the agent, but Inbox symbol is appeared one of the user.

 

Why it is like that?

 

thanks & regards,

sathes

NWBC : Configuring POWL Inbox IBO_WDA_INBOX : Need pointers

$
0
0

Hello.

 

UI : NWBC Desktop client

ESS/MSS Addon : NO

ROLE : SAP_BC_BMT_WFM_NWBC_END_USER

 

I am trying to configure POWL inbox IBO_WDA_INBOX  to be used in NWBC, However facing lots of issues and need help in identifying the correct place to look at them. FYI..  I have very little experience of POWL and WDA.

 

INBOX :IBO_WDA_INBOX

WDAC : IBO_WDAC_POWL_INBOX

 

To compare the functionality I added EHS role which uses following inbox. The idea is to test response for same workitem.

EHSINBOX : EHHSS_INBOX

WDAC : EHHSS_WDAC_POWL_INBOX

 

 

Issue 1)

While clicking on any row in worklist, the preview do not appear at bottom

However, the same works fine in EHSInbox . For each workitem details are shown along with text box for notes .

 

 

Issue 2)

On WI Click : New window error message to maintain POWL Categories.

However, EHSInbox, clicking on same items open up a transaction in new window seamlessly

 

I would like to know what is required to setup the inbox in basic form where it executes WI properly. Any pointer will be helpful.

 

 

Regards

Manish

Basic step on Work Item Error

$
0
0

Hi experts.

I have no experience in WF, but client is requesting me to find out why a work item is been saved with status ERROR in a Release Strategy Purchase Requisition.

We have already noticed that this error occurs only for certain Requisitions associated to a specific PEP Element.

 

My doubt is: where is the point where the code analises and saves this status?

 

 

My best regards,

Alm.

WF template activation issue

$
0
0

Hello dear SCN,

 

Context of the issue

We're using a custom workflow in our ERP6.0 systems. I had to make a change (FYI - simply added a condition that uses a method, one branch goes on normally, the other uses a control step to complete the WF, and also changed the event linkage), and now there is an activation issue.

 

The issue

Our dev system has two clients, the 600 to make changes and the 100 to test.

In client 600:

- SWDD shows version 003 of the template as being active

- table HRS1205 shows version 003 as being active

- checking the wf in SWDD gives no errors

- activating the wf in SWDD gives no errors

- SWUD's consistency check says everything is fine

- SWI1_DIAG shows nothing

 

However, in client 100:

- SWDD says no version is active

- table HRS1205 shows version 003 as being active

- SWUD's consistency check says "workflow definition does not exist"

- SWI1_DIAG shows nothing

- SWEL shows the events are properly received and checked, but after that it stops with error WD274 "Workflow definition of task 'WS98100159' cannot be activated" (same is given when testing in SWUS)

- when we try to open a container of a pre-existing task in SWIA, it gives error WL820 "task cannot be read"

 

So it kind of makes sense we can't start the workflow since it's inactive, but it why on earth is it shown as inactive in one client but not the other? Templates are supposed to be cross-client, right?

 

What we already tried to fix it

- generate a new version and activate that one

- activate an old version

- delete and old version that had errors in it

- cancel the changes and reactivate

- change the syntax used to pass the parameter to the method called in the change we made (just in case it was a syntax error not being picked up by the "check" button)

- transport again the event linkage TR using SCC1

- regenerate the business object

- clean buffers using SWU_OBUF, in both clients

- refresh organizational environment, in both clients

- searched SCN for similar issues, but most people that had error CD724 just had to correct errors when checking in SWDD, others had transport issues, which we do not have

 

Our questions to you

- did you already experience this, and if so, how did you solve it?

- any ideas on what we could try next? Our next step is searching for sap notes; if you already know one that could help, don't hesistate to give its number

 

Thanks in advance !

 

Jonathan

Viewing all 3160 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>