Readsoft User's Forum
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Prost1988

Member
Registered:
Posts: 15
Reply with quote  #1 
Dear all

We are using /COCKPIT/WC to answer, valid or reject workflows.

With this transaction we are only in Display mode, so we cannot update any fields (we have to use /COCKPIT/1).

Is there any possibility to access /COCKPIT/WC in Update mode ?

If yes, how to do that ?

Many thanks for your answers

Kind Regards
David 
0
cherylc

Moderator
Registered:
Posts: 162
Reply with quote  #2 
Hi David
In our system, it is display only for certain types of workflows.  For example, with an Adhoc workflow we are only asking for the user to include a note with the workflow.  Therefore there is no change option for Adhoc workflows.   However, for our assign PO workflow, we ask the user to include the PO number.  I think if one of the fields is mandatory or optional, then the system will display the change icon.  If no fields are mandatory (they are display only) then you won't see the change (pencil) icon.
Here is an example of our assign PO workflow. Note the change icon:
change icon cockpit wc.png 

The field status is defined in trans /cockpit/C23
PO  number mandatory field.png 
Kind regards


__________________
Cheryl
LinkedIn: https://au.linkedin.com/in/cherylc-651471a0
0
Prost1988

Member
Registered:
Posts: 15
Reply with quote  #3 
Hi Cheryl

Thank you for detailed answer.

I tried to use /COCKPIT/C23 as indicated in your post, and I added PO_NUMBER as a mandatory field... but the result is PO_NUMBER is now mandatory in transaction COCKPIT/1 (what I don't want because we have FI invoices without reference to PO) and there is no change in COCKPIT/WC.  

Kind regards
0
IanM

New Member
Registered:
Posts: 4
Reply with quote  #4 
David,
The controls to whether a workflow allows fields to be edited or not in /COCKPIT/WC, is in the work cycle step customising, transaction /COCKPIT/WI3

The field 'Workflow type' must contain 'Correction' or 'Release and Correction' to allow the workflow to have the edit button.

Capture1.PNG 

As Cheryl correctly mentioned you can control which fields are editable then using the 'Field Status' and setting the fields in transaction /COCKPIT/C23.

It is common to have different field statuses for different work cycle steps.

Hope this helps.

Regards
Ian

0
Prost1988

Member
Registered:
Posts: 15
Reply with quote  #5 
Thanks Ian.


0
Prost1988

Member
Registered:
Posts: 15
Reply with quote  #6 
Thanks again Cheryl and Ian.
Now we are able to work with COCKPIT/WC in update mode.


But we have a new request within this transaction : we would like to transfer invoices from FI to MM  or  from MM to FI.

We already use this transfer button with /COCKPIT/1 but is it possible with /COCKPIT/WC ?

Regards
David 
0
nicothebee

Senior Expert Member
Registered:
Posts: 125
Reply with quote  #7 
Hello,

No. This is not possible. And for a very stupid reason. Actually /COCKPIT/1 and /COCKPIT/WC are one single transaction that will behave differently according to the variable gc_in_webcycle.
The okcode "FIMM" (to switch from MM to FI and vice verse) is ignored when gc_in_webcycle is true.
This is for the technical info.

If you have few cases where you need to perform this action, the process is:
- the recipient sets a note to tell the accountant that the document should be swithed from MM to FI (or vice versa)
- the accountant does it from /COCKPIT/1

If you have many cases, then you can create a customer button for /COCKPIT/WC.
You need an exit to tell the system what to do when this button is used. In this exit, you just execute the form change_fi_mm(/COCKPIT/LDISPLAY46F03). Piece of cake!

Best regards,

Nicolás
0
Prost1988

Member
Registered:
Posts: 15
Reply with quote  #8 
Hello Nicolas

Thanks for your answer. Very interesting.

Now, I have to convince our IT team to test this solution. As it is not standard, it will be difficult [frown]

Best regards
David 
0
Psyrus

New Member
Registered:
Posts: 3
Reply with quote  #9 
Hello,

@Nicolas:

You said :
Quote:
If you have many cases, then you can create a customer button for /COCKPIT/WC.
You need an exit to tell the system what to do when this button is used. In this exit, you just execute the form change_fi_mm(/COCKPIT/LDISPLAY46F03). Piece of cake!


It's true for workcycle, you can create a custom button in the parameter (/cockpit/c26).
But this is not possible for cockpit/WC. How do you create a custom button for cockpit/wc ?

Best regards.

Marc

0
nicothebee

Senior Expert Member
Registered:
Posts: 125
Reply with quote  #10 
Hello,

You have the same customizing for Workcycle with transaction /COCKPIT/WI4.
The main difference is that this customizing is depending on the workflow step.

Example: I have a workflow for a good entry missing. I want a button to call the MIGO transaction, with the PO already populated :
[image]


0
nicothebee

Senior Expert Member
Registered:
Posts: 125
Reply with quote  #11 
Then, I have a user exit :
[image]

0
nicothebee

Senior Expert Member
Registered:
Posts: 125
Reply with quote  #12 
And a function module :


Code:
FUNCTION zdemat_usex_custfct_process.
*"----------------------------------------------------------------------
*"*"Interface locale :
*"  IMPORTING
*"     REFERENCE(I_FUNCTION) LIKE  SY-UCOMM
*"     REFERENCE(I_DETAIL_VIEW) LIKE  BOOLE-BOOLE OPTIONAL
*"  TABLES
*"      C_TAB_ITEM STRUCTURE  /COCKPIT/SITEM_IF
*"      C_TAB_ACCOUNT STRUCTURE  /COCKPIT/SACCT_IF
*"      C_TAB_TAX STRUCTURE  /COCKPIT/STAX_IF
*"      C_TAB_ACCT_ASSIGN STRUCTURE  /COCKPIT/TACCAS OPTIONAL
*"      E_TAB_MESSAGES STRUCTURE  BAPIRET2
*"      I_TAB_SEL_HEADERS STRUCTURE  /COCKPIT/SHDR_IF OPTIONAL
*"  CHANGING
*"     REFERENCE(C_STR_HEADER) LIKE  /COCKPIT/SHDR_IF STRUCTURE
*"        /COCKPIT/SHDR_IF
*"  EXCEPTIONS
*"      WRONG_STATUS
*"      ERROR_OCCURED
*"----------------------------------------------------------------------
*@US@aa         => Signiture of Creator, e.g. HH for Harry Hirsch
*@CU@aaa...     => Customer Name
*@K1@ ... *@K9@ => Keywords for Implemented Functionality

* Dummy entry for user exit cross reference check
  IF con_exit_custfunct IS INITIAL. ENDIF.

*>>> START OF IMPLEMENTATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*

* Sample implementation
  CASE i_function.
    WHEN 'CF1'.
      CALL FUNCTION 'ZDEMAT_CUST_VAT'
        EXPORTING
          i_function        = i_function
*         I_DETAIL_VIEW     =
        TABLES
          c_tab_item        = c_tab_item
          c_tab_account     = c_tab_account
          c_tab_tax         = c_tab_tax
*         C_TAB_ACCT_ASSIGN =
          e_tab_messages    = e_tab_messages
*         I_TAB_SEL_HEADERS =
        CHANGING
          c_str_header      = c_str_header.

    WHEN 'CF2'.
    WHEN 'CF3'.
    WHEN 'CF4'.
    WHEN 'CF5'.
    WHEN 'CF6'.
*   Customer functions of WORK CYCLE
    WHEN 'CF_WC1'.
      CALL FUNCTION '/COCKPIT/BSP_CUST_FUNC_GR_SES'
        EXPORTING
          i_function        = i_function
          i_detail_view     = i_detail_view
        TABLES
          c_tab_item        = c_tab_item
          c_tab_account     = c_tab_account
          c_tab_tax         = c_tab_tax
          c_tab_acct_assign = c_tab_acct_assign
          e_tab_messages    = e_tab_messages
          i_tab_sel_headers = i_tab_sel_headers
        CHANGING
          c_str_header      = c_str_header.
    WHEN 'CF_WC2'.
    WHEN 'CF_WC3'.
    WHEN 'CF_WC4'.
    WHEN 'CF_WC5'.
    WHEN 'CF_WC6'.
etc.


0
Prost1988

Member
Registered:
Posts: 15
Reply with quote  #13 
Hello Nicolas

Thank you for your answer !
0
Psyrus

New Member
Registered:
Posts: 3
Reply with quote  #14 
Hello,

Thank you for your answer, it's really helpful.

A little correction, it's not /COCKPIT/WI4 but /COCKPIT/WI14, then you click on modify and new entries and you get to customer spec. function.

Best regards.
Marc

0
Psyrus

New Member
Registered:
Posts: 3
Reply with quote  #15 
Hello,

I have successfully add the new button to execute the form change_fi_mm.
But i have this error message:
Capture.PNG

Is it possible to pass through this message for a specific workflow ?

Best regards.

Marc

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.



Follow @readsoftuser