SWI2_ADM1 : Without agents workflow for custom program
Hi,
I have a requirement for without agent to make automatic Custom program to run background daily-basis
and also execute rules(we have different client in the same server) and display error work items list in the output.
kindly suggest me how to write the custom program.
Thanks & regards,
Bala.
Hi,
I think you have a two requirement.
I have a requirement for without agent to make automatic Custom program to run background daily-basis
and also execute rules(we have different client in the same server) and
For this purpose please follow the below steps.
1. Get all the dialog workitems from table SWWWIHEAD where WI_TYPE = 'W' , WI_STAT = 'READY' and WI_CD = current date.
2. Now this dialog workitems are with agent and without agents. Now you need to filter them.
3. use FM SAP_WAPI_GET_WI_AGENTS/RH_SWWUSERWI_READ_FOR_WI to find the agents of the dialog workitem.
FM SAP_WAPI_GET_WI_AGENTS will return workitem list those have agents. FM RH_SWWUSERWI_READ_FOR_WI will return
initial if the workitem does not have any agents. I would recommond you to use SAP_WAPI_GET_WI_AGENTS. So you can filter them
by using the above FM
4. Submit the report RSWIWILS with the workitem ( without agents ) to execute agent rules
display error work items list in the output.
Use FM SAP_WAPI_WORKITEMS_BY_ERROR to get the list of workitem or select workitems from table SWWWIHEAD where, WI_STAT = 'ERROR' and WI_CD = current date.
Hoping that this can help you.
Thanks and regards,
SNJY
Similar Messages
-
GOS(Generic Object Services) for Custom program ?
Hi All,
My requirement is to have GOS option to attach document for Custom program against each record.
Do anybody have faced the same kind of requirement,please let me know how to do.
Bharathi.JHi Bharathi
i to got the same requirement
through manually im attaching the files,notes and URL's
but how to attach through any class
i use CL_GOS_DOCUMENT_SERVICE in that
CREATE_ATTACHMENT method
but it is not attaching the files to my GOS menu
can u help me
Thanks
Surendra -
How to See logs for custom programs from without the logviewer in NWA
Hello Experts,
The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
Thanks
Jibin.Hello Jibin,
Your developers should familiarize themselves with the Logging Framework of the J2EE Engine.
Here is the guide:
http://help.sap.com/saphelp_nw04/helpdata/EN/a2/15ab41d60bcb46e10000000a155106/frameset.htm
If they use the Logging Framework you would be able to access the logs through NWA.
Regards,
Ventsi Tsachev
Technology Development Support (J2EE Engine)
SAP Labs, Palo Alto, Ca (USA) -
See logs for custom programs from without the logviewer in NWA
Hello Experts,
The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
Thanks
Jibin.Hello,
Via NWA I am not sure it is possible without logviewer, but via Portal you can if you are able to create an application with help of NWDS which will read log from OS level (need to provide path for default trace in your application) show on frontend.
Then deploy this on portal.
Regards,
Abhay -
SPAU for Custom program.
Hello,
I am new to Upgrade project.
Is it required to adjust a customer program (z or y programs) using SPAU. If yes, please let us know why we need to adjust a custom program...
Any documentation on SPAU would be appreciated.
Kind Regards,
Abhishek.Question on SPAU and SPDD.
You have to aware of all related program like BDC's , Screens related errors and all dictionary related problems.
Some function modules may become obsolete, and some screens will change
abnd some new fields will be added in the new versions etc.
Also take care of SPAU and SPDD tcodes.
You should be able to know about Unicode concept in sap.
Upgrading within a new version of SAP R/3 :
The upgrade process for the SAP R/3 application does not modify any of the adapter's ABAP development, but it may modify the SAP R/3 application so that some of the adapter's ABAP development does not work properly.
This section describes how to upgrade the adapter's ABAP development in an upgraded SAP R/3 application. Before you can upgrade the adapter, you must have already upgraded your SAP R/3 application.
To upgrade the adapter's ABAP development:
Install the latest ABAP Extension Module transport files for the correct version of the SAP R/3 application.
You must install the correct version-specific transport files. For details on installing these transport files, see Connector transport file installation.
Compile all programs and resolve syntax errors associated with the ABAP development.
The easiest way to find syntax errors is to generate each function group associated with each object and fix the errors one at time. Repeat this process until all function groups compile successfully. Be sure to generate any other programs such as triggering programs that are not associated with a function group. Be aware that minor updates may need to be made to your ABAP triggering programs after applying the required new transports to upgrade the adapter.
If you are upgrading to SAP R/3 version 4.x, note that the 4.x ABAP handlers use the product namespace /CWLD/. For special considerations for upgrading to the connector supporting SAP R/3 version 4.x, see Connector for SAP R/3.
Test the new environment and make modifications as needed.
Only a full system test enables you to work out any problems with the upgrade. Test your event detection mechanisms by running the appropriate transaction or program and sending business objects to the SAP system. Use the connector's log within the SAP system to help identify other issues.
chk this
http://www.thespot4sap.com/upgrade_guide_v2.pdf#search=%22upGRADE%20STEPS%20-%20SAP%22
also chk these 2 notes in service.sap.com
Technical Upgrade is only a version upgrade without any functionality changes.
The objects that are needed to be upgraded are:
Includes
Function Groups / Function Modules
Programs / Reports
OSS Notes
SAP Repository Objects
SAP Data Dictionary Objects
Domains, Data Elements
Tables, Structures and Views
Module Pools, Sub Routine pools
BDC Programs
Print Programs
SAP Scripts, Screens
User Exits
You can refer to the below links for more information on technical upgrade:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/07/upgradeFROMR3TOmySAPERP-PARTII&
https://wiki.sdn.sap.com/wiki/display/profile/UPGRADEFROMR3TOmySAPERP-PARTIII
http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/6d66647d9011d396b60000e82de14a/content.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
Refer to these related threads
Re: Role of ABAP Developer in Upgrade Projects
ABAP developer part in an upgrade project
wht abt the tcodes SPDD & SPAU
please reward if useful
Murali poli -
Custom Workflow for custom HCM form - reg
Hi,
We have a custom form designed and having a workflow for that. We have developed the workflow like any other workflow for appraisals for example or in SD. But here while test run of process we are getting error saying 'Work Item not found' though the work item is present in SWI1.
We have below steps.
Header
Importing form container
User Desicion (Approve/Reject)
If approved update database.
Can any one correct me if am wrong.
RajHi,
For workflows involving HCM forms, there some standard tasks which should be made use of:
Task Group TG17900001: Components for HCM Processes & Forms
Task Group TG17900002: Interactive Components
Standard Task TS17900100: Edit Form
Standard Task TS17900101: Approve Form
Standard Task TS17900102: Form Is Edited Again by Author
Standard Task TS04000018: Process PD Form
Standard Task TS04000019: Approve PD Form
Standard Task TS04000020: PD Form Is Edited Again by Author
Workflow Template WS17900260: Save Form with Error Handling
Workflow Template WS17900404: Draft for Process Start
Workflow Template WS17900418: Forward: Process Start with Errors
Task Group TG17900003: Background Components
Standard Task TS17900106: Check Existence of PA Infotype
Standard Task TS17900107: Check Form Data
Standard Task TS17900108: Save Form Data
Standard Task TS17900110: Import Field Value to WF Cont. Element
You can use TS17900110, TS17900101/TS04000019 and TS17900107. Please make sure you read some documentation before you use these tasks.
Let me know, whether this is helpful.
Thanks,
Sukumar. -
Hi,
I have an custom program which i need to secure by auth group so i went to RSCSAUTH then i kept some auth grp...eg;- say "FI" under auth grp column....before this i did not create any auth grp named: FI any where in the system......
so my question is by doing this is considered as creation and assignment of auth grp to this custom program ???
and if i do this in dev then how come this piece carried to production.
Thanks,
Lisa PlThe field is however not limited to 4 characters, RSCSAUTH is protected by 7.
As you would hopefully develop and assign Auth Groups to programs in your development system, it does not make sense (to me) that the defined Auth Groups of the concept are necesarily known to the Prod system, as the role(s) for the report / transaction should be created / changed from the same source, ideally. So transporting the Groups themselves is only usefull if you are, for example, protecting programs or queries or report trees in production which are also maintained there. Transporting the program itself with the assigned TRDIR-SECU entry is not hindered (unless there is some feature of the STMS which does this - for example the production system is the domain controller).
You can assign the auth group in Production as well with RSCSAUTH, subject to having the correct authorization for it. But you should restrict that very carefully and take care with your client settings...
Other similar topics are changing menus in production.
Cheers,
Julius
PS: If the reason for your question is because of protecting the prgram to run online, then perhaps a simple SY-BATCH... check in the program is another (additional) option. S_PROGRAM P_ACTION = 'BTCSUMBIT' as well.
Edited by: Julius Bussche on Apr 20, 2008 8:58 PM -
Approval process workflow for Customer XBO
Hi experts,
We have a client requirement which asks for multilevel approval process for Accounts (when a new Account is created/ existing Account is changed). As per my knowledge, there is no standard approval process defined for Customer XBO as of now by SAP.
Also, if the Account creation/modification is 'Rejected' by any manager, then how will the Account be reverted back to its original version? (kind of a rollback)
I had raised an incident for this asking the SAP team whether they will be adding any approval processes for Customer BO in the near future C4C releases. But they do not have any plans of implementing it sooner.
They suggested a workaround as follows:
Add 1 extension field "approval status code" in Account with code values:
1 - To be approved by L1 manager
2 - Approved by L1
3 - Approved by L2......etc for more levels of approval
Reverting 'Rejected' Account to previous state is not possible via PDI. In principle you would have to read the changehistory data and revert to the state before the change was done. But the changehistory BO is/will not be PSM released.
Any workaround or suggestions on how can I go about implementing this requirement? I need to put validations like L2 can approve only after L1 approval.
Please guide and help.
Thanks,
Ambuja Prabhudessai
Persistent Systems Ltd.Hi,
why don't you create a screen from which user will create or modify the accounts. after submitting the custom screen , you should start the approval process, once all the approval is done, create or modify the account in SAP.
Regards.
Sanchari -
Problem in agent determination for custom wf of contracts
Hi
I've copied standard wf for contracts i.e. 20000079. In my custom wf the step for release contract I've maintained the standard rule 20000029. bcos this rule is assigned for standard one with task 20000172. Am I correct in agent assignment??bcos my agent determination fails and wf goes into error. But if I simulate the rule separately it works fine. So there is no prob in rule,also i've properly binded it with task passing purchasingContract and releasecode.
Could u pls help me.
ThanksCheck that the binding between the workflow and rule are OK. Maybe your workflow is not delivering all the needed parameters for the rule (the same parameters that you are using while simulating the rule).
Another thing that you should check is that make sure that this is not an authorisation problem. It is possible that the rule is executed by the dialog user (not WF-BATCH) that doesn't have enough authorisations to do all the necessary rule logic. Just give remporarily SAP_ALL to the user who is executing the test.
Regards,
Karri -
Hi Friends,
I have requirement to create a workflow to fill Customer Company and Sales Data. For this, I found BO KNA1 but it doesn't have any event. It is very strange.
Please suggest me some other options.
Thanks in advance.Hi,
What is your requirement?
Do you want to trigger the workflow when a customer is created?
Use the BO KNA1. Create a subtype & create a custom event.
Then create an entry for this event in SWEC. Use the Change Doc. Object DEBI. THis will work.
Let me know if you have any queries.
Regards,
Raj -
Calcualtion of Material cost for custom program
Hello all
For a particular cost estimate we need to calacualte only the material cost in that particular material
and thi swe required for all the material
i had checked all the costing related table but not able to do tha
kindly help
anilHello
For get the only material cost for a standard cost estimate run material
you hav eto use a standard BAPI and no need to write a full program to calcualte the cost.
BY this badi you will get all the data only you have to get the report in required foramt.
The BAPI is BAPI_COSTESTIMATE_GETEXPLOSION
thanks
alok -
PDF Color Workflow for Customer Review
Let me preface this by saying I'm not a designer, so this question may be something that would normally be obvious to those of you with more experience.
I have to create some projects in InDesign that will ultimately be printed in CMYK. No real problem there. I can provide the printer with PDF output. I also need to have customers review the output before sending to the printer. The printer needs a high-quality, CMYK PDF. The customers need to see PDFs on their screen that give them confidence to know the colors are correct. When I export my docs to PDF, I use the Press Quality setting, with the Color Options set to Convert to Destination (Preserve Numbers), with a Destination of U.S. Sheetfed Coated v2 and Include Destination Profile. That seems to work for the printer, but the colors seem washed out in the PDFs when viewed onscreen (prompting customers to say "could you make this a bit darker?").
Can someone either explain how I can change the output settings in InDesign for PDF to give a good onscreen representation of what will get printed, or point me in the right direction (or, if necessary, correct some incorrect assumptions I'm making)?
Thanks in advance.Unless your clients have color calibrated monitors and set up color
management properly in Acrobat you're wasting your time.
Bob -
Moderator message - please use meaningful subject in future
Hi,
My requirement is :
We get a input file in .XLS format. To load, it has to be converted to .TXT format. But this conversion sometimes creates junk characters in the load file.
so to rectify it we need to build a custom program and then Pass the .XLS file as input file for custom program
then Convert it to .TXT and download it
Then read .XLS cell by cell and compare it with the .txt format which just downloaded.
I am building a custom program but while downloading using gui_download i am getting a dump.
how do i go about it.any pointers will be helpful.The piece of code i am using is:
DATA : it_tab TYPE STANDARD TABLE OF alsmex_tabline.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_dpath
i_begin_col = c_begin_col
i_begin_row = c_begin_row
i_end_col = c_end_col
i_end_row = c_end_row
TABLES
intern = it_tab
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = p_dpath
* FILETYPE = 'ASC'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
* SHOW_TRANSFER_STATUS = ABAP_TRUE
* IMPORTING
* FILELENGTH =
TABLES
data_tab = it_tab
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Please give pointers on this.
Regards,
Rahul
Edited by: Matt on Jan 29, 2009 2:13 PM - added tagsALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw
i_filename = pfile
TABLES
i_tab_converted_data = lt_excel[].
* EXCEPTIONS
* CONVERSION_FAILED = 1
* OTHERS = 2
IF sy-subrc = 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\Documents and Settings\chenna.kesava.reddy\Desktop\Book1.txt'
FILETYPE = 'ASC'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
CONFIRM_OVERWRITE = 'X'
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
* SHOW_TRANSFER_STATUS = ABAP_TRUE
* IMPORTING
* FILELENGTH = '2000'
tables
data_tab = lt_excel.
* FIELDNAMES =
* EXCEPTIONS
* FILE_WRITE_ERROR = 1
* NO_BATCH = 2
* GUI_REFUSE_FILETRANSFER = 3
* INVALID_TYPE = 4
* NO_AUTHORITY = 5
* UNKNOWN_ERROR = 6
* HEADER_NOT_ALLOWED = 7
* SEPARATOR_NOT_ALLOWED = 8
* FILESIZE_NOT_ALLOWED = 9
* HEADER_TOO_LONG = 10
* DP_ERROR_CREATE = 11
* DP_ERROR_SEND = 12
* DP_ERROR_WRITE = 13
* UNKNOWN_DP_ERROR = 14
* ACCESS_DENIED = 15
* DP_OUT_OF_MEMORY = 16
* DISK_FULL = 17
* DP_TIMEOUT = 18
* FILE_NOT_FOUND = 19
* DATAPROVIDER_EXCEPTION = 20
* CONTROL_FLUSH_ERROR = 21
* OTHERS = 22
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Edited by: Matt on Jan 29, 2009 2:14 PM - added tags -
Triggering of Workflow for park documents based on Document type.
Hi,
I have activated workflow for park documents but it is triggering for all document types. Client dont want workflow for Customer park documents.
I assigned SA document only in "release approval path" but it is triggering for all document types.
Please help me.
Thanks.
AzeemHi Azeem,
We have the same requirement. Would you mind sharing how you were able to accomplish this?
Thank you,
Mark. -
hi all we want to set up workflow for customer posting. when we receive customer payment through EDI in lockbox then sometime times customer send us denial for payment through denial codes. In such case we want to drive a work flow to submit invoices again with proper documents. Can some body tell me how do we create this work flow.
nikThe WF starts with the denial of payment, then create a activity step to check the reason for denial, then based on that create a decision step how to proceed further. Regenerate or option B. This WF ends once the customer accepts to pay i.e. upon receipt of payment. To drive this, create a Wait step which will wait for the payment event.
Regards, IA
Maybe you are looking for
-
Windows 8 driver cannot find HP Officejet Pro L7590 ethernet printer on my new router
I'm changing to a new router and had to change the IP address of my ethernet Officejet Pro L7590 from fixed assigned 192.168.1.7 into fixed assigned 192.168.2.168 (my new provider provided router doesn't support the 192.168.1.xx range). At installati
-
I downloaded flashcards + with the top in app purchase of " US english female" for 1.99 and it shows the purchase with the option to download it again for free then it comes back "Failure ?! Receipt verification failed ! I have deleted the app and r
-
Error occurred in the data selection,If i do Repeat, then it is working fin
Hi Freinds, Here is the error message, Error message from the source system Diagnosis An error occurred in the source system. System Response Caller 09 contains an error message. Further analysis: The error occurred in Extractor . Refer to the error
-
iPhone 4 - my phone doesn't "ring". Speaker plays, it works on vibrate, and when you set the ringer, it will play. Just not when an incoming call comes in. Any thoughts?
-
SM:EXEC SERVICES background job Failing
Hi All, I am having a problem with the job SM:EXEC SERVICES in solution manager system, I have done all the steps in sapnote 727998, applied the transport given by sapservx but no luck.I suppose this is a very comon problem and should have solved by