Urgent........... problem in guided procedures
hi
iam creating a workflow in GP using webdynpro for java as a callable object.
Here i am facing the following three problems
1.how to initialize a process( which is not initiated )from a webdynpro application.
2.how to send an action to multiple users at same time.
3.how to send an array of values to the input parameter of the GP.
Please help me it is very urgent.
With Regards
Shanto Aloor
Hi Shanto,
Here is some information for your problem.
2. how to send an action to multiple users at same time.
First create a role for a particular action at design time.
Then assign this role to the required users.(or you can also use parallel dynamic block,but check about that)
3.How to send an array of values to the input parameter of the GP.
If you want to pass parameters from one action to another then you can group them and consolidate the parametrs at block level.If you want to pass parameters from web dynpro application refer to the following link.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0957cb6-5103-2a10-6d9d-a0a4d68c8bf1
Hope this helps you.reward points if you find it helpful.
Thanks and regards,
Sumangala
Similar Messages
-
hi
iam creating a workflow in GP using webdynpro for java as a callable object.
Here i am facing the following three problems
1.how to initialize a process which is not initiated from a webdynpro application.
2.how to send an action to multiple users at same time.
3.how to send an array of values to the input parameter of the GP.
Please help me it is very urgent.
With Regards
Shanto Aloor
Edited by: Armin Reichert on Jun 18, 2008 2:09 PMHi Shanto,
Please go through my article:
[How to Integrate Two Web Dynpro Applications Using CAF GP|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/e0957cb6-5103-2a10-6d9d-a0a4d68c8bf1]
a) You can initialize your process from GP Design Time or by presenting your process to the end user. See the following article:
[How to Play with CAF Guided Procedures: A Complete End to End Example - Part II|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/f0975397-8e0a-2b10-4daa-bafd3a83e2a8]
b) You can send an action to multiple users by assigning that action to a group instead of directly assigning to a user. Now you can assign this group to the set of users of your choice.
c) I am not sure how will you send an array of values, but I am sure this would be possible. You will need to some RnD with the Web Dynpro code.
Bye
Ankur -
Hello,
using the Guided Procedures I have modeled an approval workflow.
After a requester submits a request, the request should be delegated to an approver.
However, when the requester actually submit the request, I get an error message which reads "Activity could not be read" and the workflow does not continue with the approver.
Does anyone has an idea, what could be wrong?
Best regards
AlexanderHi Fazal,
Check the Callable object in GP design time , whether it is giving u the expected output.
The callable objects work just fine and provide the expected outputs.
Nwa--> Problem management --> Logs and Traces --> Log Viewer.
in the log viewer, u will find the root cause for the error message.
Unfortunately, I cannot find (see below) any other root cause. It seems that the problem occurs either when completing the first or starting the second action. However, both callable objects work fine when tested in the design time.
Edit: It seems that the problem occurs when completing the first action. What could be the reason for that?
Activity could not be read
com.sap.caf.eu.gp.base.exception.EngineException: Activity could not be read
at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.createWorkItems(StatusWriter.java:2948)
at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.startAction(StatusWriter.java:2749)
at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.startActivity(StatusWriter.java:1339)
at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.updateProcessStatusSequentialBlock(StatusWriter.java:4368)
at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.updateProcessStatus(StatusWriter.java:3617)
at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusWriter.completeAction(StatusWriter.java:286)
at com.sap.caf.eu.gp.model.pfw.wfc.local.impl.LocalWorkflowConnector.completeAction(LocalWorkflowConnector.java:251)
at com.sap.caf.eu.gp.model.pfw.core.impl.ProcessRuntime.completeAction(ProcessRuntime.java:863)
at com.sap.caf.eu.gp.ui.act.container.VContainer.OnExecutionComplete(VContainer.java:509)
at com.sap.caf.eu.gp.ui.act.container.wdp.InternalVContainer.wdInvokeEventHandler(InternalVContainer.java:162)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:478)
at com.sap.caf.eu.gp.ui.co.wd4vc.exec.wdp.InternalCOExecWD4VCInterface.wdFireEventExecutionComplete(InternalCOExecWD4VCInterface.java:170)
at com.sap.caf.eu.gp.ui.co.wd4vc.exec.COExecWD4VC.onSignalOut(COExecWD4VC.java:365)
at com.sap.caf.eu.gp.ui.co.wd4vc.exec.wdp.InternalCOExecWD4VC.wdInvokeEventHandler(InternalCOExecWD4VC.java:171)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.invokeEventHandler(DelegatingComponent.java:237)
at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:478)
at com.sap.tc.wd4vc.launcher.wdp.InternalLauncherInterface.wdFireEventSignalOutEvent(InternalLauncherInterface.java:168)
at com.sap.tc.wd4vc.launcher.LauncherView.handleRaiseEndPoint(LauncherView.java:301)
at com.sap.tc.wd4vc.launcher.wdp.InternalLauncherView.wdInvokeEventHandler(InternalLauncherView.java:197)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:478)
at com.sap.tc.wd4vc.xglengine.wdp.InternalXGLEngineInterface.wdFireEventRaiseEndPoint(InternalXGLEngineInterface.java:308)
at com.sap.tc.wd4vc.xglengine.XGLEngineInterface.notifyEmbeddersOfEndPoint(XGLEngineInterface.java:231)
at com.sap.tc.wd4vc.xglengine.wdp.InternalXGLEngineInterface.notifyEmbeddersOfEndPoint(InternalXGLEngineInterface.java:152)
at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.notifyEmbeddersOfEndPoint(XGLInterpreter.java:2166)
at com.sap.tc.wd4vc.core.std.relays.java.impl.XGLEndPointRelay.notifyEmbedders(XGLEndPointRelay.java:82)
at com.sap.tc.wd4vc.core.std.relays.java.impl.XGLSignalOutRelay.execute(XGLSignalOutRelay.java:67)
at com.sap.tc.wd4vc.core.std.relays.java.impl.XGLEndPointRelay.execute(XGLEndPointRelay.java:66)
at com.sap.tc.wd4vc.core.std.relays.GenericRelay.execute(GenericRelay.java:226)
at com.sap.tc.wd4vc.core.std.relays.wdp.InternalGenericRelay.execute(InternalGenericRelay.java:138)
at com.sap.tc.wd4vc.core.std.relays.GenericRelayInterface.execute(GenericRelayInterface.java:123)
at com.sap.tc.wd4vc.core.std.relays.wdp.InternalGenericRelayInterface.wdInvokeMethod(InternalGenericRelayInterface.java:150)
at com.sap.tc.webdynpro.progmodel.generation.ExternalControllerPI$ExternalInterface.invoke(ExternalControllerPI.java:291)
at $Proxy610.execute(Unknown Source)
at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.doEvaluateRelay(XGLInterpreter.java:1798)
at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.doEvalStep(XGLInterpreter.java:1777)
at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.doEvalStep(XGL2_2Interpreter.java:698)
at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.processStep(XGLInterpreter.java:981)
at com.sap.tc.wd4vc.xglengine.java.XGLInterpreter.processPlan(XGLInterpreter.java:941)
at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.processAtomicActionCall(XGL2_2Interpreter.java:356)
at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.processActionCall(XGL2_2Interpreter.java:311)
at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.processActionCall(XGL2_2Interpreter.java:319)
at com.sap.tc.wd4vc.core.xgl2_2.xglengine.java.XGL2_2Interpreter.processAction(XGL2_2Interpreter.java:290)
at com.sap.tc.wd4vc.xglengine.XGLEngine.processAction(XGLEngine.java:447)
at com.sap.tc.wd4vc.xglengine.wdp.InternalXGLEngine.wdInvokeEventHandler(InternalXGLEngine.java:184)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.invokeEventHandler(DelegatingComponent.java:237)
at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:478)
at com.sap.tc.wd4vc.core.std.toolbar.wdp.InternalXGLToolbarInterface.wdFireEventGenericEvent(InternalXGLToolbarInterface.java:273)
at com.sap.tc.wd4vc.core.std.toolbar.Generic.onActionGenericAction(Generic.java:271)
at com.sap.tc.wd4vc.core.std.toolbar.Generic.onActionValidatingAction(Generic.java:295)
at com.sap.tc.wd4vc.core.std.toolbar.wdp.InternalGeneric.wdInvokeEventHandler(InternalGeneric.java:161)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:72)
Edited by: Alexander Königs on Mar 4, 2009 10:50 AM -
Problem to implement Guided Procedure Workflow for particular senario.
Hi,
I have problems with guided procedure workflow.
There are two users i.e. A and B. User A enters the information and as soon as he submits the information, that information should go to user B for review and user A should continue with his other task , irrespective of review from user B
Currently A can't continue with other task untill B reviews the information. Please see below.
I tried by using parallel block but that is not useful as parallel block cannot be completed unless all the action inside it are done.
A
|
Enter Information
|______________________ User B Reviews Information
|
Other Task
Full Points will be rewarded. Please Reply ASAP.Hi Patrik,
Try this:
Process
-- Parallel Block
------ Block Input and Review
----------- Action 1 (input)
----------- Action 2 (review)
------ Block Other Task
----------- Action Other Task
In my scenario, I've assigned default roles as follows:
Administrator, Overseer, Owner to Administrator user
Action 1 (input) to userA
Action 2 (review) to userB
Action Other Task to userA
User roles:
userA - GP User + GP Runtime WC
userB - GP User + GP Runtime WC
Follow the links to print screen files (imageshack):
http://img91.imageshack.us/my.php?image=000cd6.jpg
http://img61.imageshack.us/my.php?image=001lj7.jpg
http://img77.imageshack.us/my.php?image=002rs0.jpg
http://img301.imageshack.us/my.php?image=003we1.jpg
http://img77.imageshack.us/my.php?image=004ue1.jpg
http://img224.imageshack.us/my.php?image=005sj2.jpg
http://img61.imageshack.us/my.php?image=006md4.jpg
http://img525.imageshack.us/my.php?image=007xh2.jpg
Reward points if it's helpful. -
Problem in mapping -Guided procedures
Hi All,
I have a interactive form parameter called Price of type decimal in Guided procedure, and i have a BAPI parameter StdPrice of type decimal. when i tried to group these two parameters the "Group" button gets disabled. When i tried by checking Ignore types i was able to group the parameters but once i save the action and look back its ungrouped again.
Is there any difference between the BAPI decimal parameter and Adobe interactive form decimal parameter?
Note : EP Version 7.0 and SP13, Adobe Live Cycle Designer 7.1
With Regards,
Gopal.The problem turned out to be in the php code.
Here's how I changed it
<?php
require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
$server = new Zend_Amf_Server();
// the following methods provide the lazy loading of services and value objects
$server->addDirectory( realpath(dirname(__FILE__) . "/../services/") );
$server->addDirectory( realpath(dirname(__FILE__) . "/../vos/") );
echo($server->handle());
?>
Earlier I wasn't taking into account the change of directories for service and value object files.
Thanks and Regards
ShiVik -
Data passing problem with Adobe Form & Guided Procedure
Hello all,
I am trying to create a Guided Procedure to implement an offline Adobe Interactive form. This form is based on the standard Requisition Request form used in MSS for e-Recruiting.
I've copied the standard form and updated the layout to ZCI using the appropriate transaction (not manually). After that, I've changed the Interface and layout. But to get the Form in the portal you need to have a .xpd file. Therefore, I've tested the form in preview mode, saved a copy as a PDF file and opened this copy in the standalone Adobe Lifecycler Designer. In the standalone version you are able to save the form as a PDF (not possible using transaction SFP).
My question 1 is if this is a wrong approach and there is a better way to retrieve the xpd file.
Next to that, I wrote a RFC function to retrieve data in the backend. This function is working and now I try to pass the data to the Form in the GP (using prefilling). The data is never passed, any points that I need to check there. The data used to export is a structure that contains a number of table types, because Adobe has issues with importing tables it seems. The form is working correctly in the backend.
Points will be rewarded for helpfull awnsers!
Kind regards & thanks in advance...Hi Eduard Vilar,
Go to sfp transaction, open the respective form, enter the transaction 'fb_xdp_down' to import the xdp layout and 'fb_xdp_up' to upload.
Hope this will hwlp. (i beleive you meant xdp rather than xpd )
- anto. -
Urgent: Need clarification on Guided Procedure (GP)
Dear Guru,
I am researching on concept of Guided Procedure and Process Integration provided by SAP Netweaver. Can anyone clarify me the concept of Guided Procedure(GP) and the differences with Process Integration (PI)? Any useful resources on GP and PI I can learn from? Thank you very much.
Point will be given
Best Regard,
Mr.NopHi,
please check the SAP NetWeaver Developer's Guide on SDN:
https://www.sdn.sap.com/irj/sdn/developersguide
http://help.sap.com/saphelp_nw70/helpdata/en/8b/0b674240449c60e10000000a1550b0/frameset.htm
The following links might be of special interest for you:
Guided Procedures:
http://help.sap.com/saphelp_nw70/helpdata/en/b1/019742ad14c46ae10000000a155106/frameset.htm
Guided Procedures in general:
http://help.sap.com/saphelp_nw70/helpdata/en/39/198141f906040de10000000a1550b0/frameset.htm
Enabling Application to Application Processes
http://help.sap.com/saphelp_nw70/helpdata/en/cf/128a42f802a01ae10000000a155106/frameset.htm
Enabling Business-to-Business Processes
http://help.sap.com/saphelp_nw70/helpdata/en/80/c76642804a173be10000000a155106/frameset.htm
SAP NetWeaver Process Integration (PI) in general:
http://help.sap.com/saphelp_nw70/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
best regards
Carsten -
Urgent: Guided Procedure VS Process Integration
Dear Guru,
I am researching on concept of Guided Procedure and Process Integration. However, I have few questions about those. What is Guided Procedures? What is/are the differences with Process Integration (PI)? In which scenario, PI and GP can be applied for? Thank you very much. Reward point will be given.
Best Regards,
Mr.NOPhi
For guided procedures,
Please refer these links :-
http://help.sap.com/saphelp_nw04s/helpdata/en/33/198141f906040de10000000a1550b0/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/49a605f0-0a01-0010-68aa-ebb5dfdce852?prtmode=navigate
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/49a605f0-0a01-0010-68aa-ebb5dfdce852?prtmode=navigate
Regards
Navneet -
Guided Procedures Problems with Deleted Instances
Hi everyone, good morning, In Guided Procedures Administration I cannot delete Instances, when I trying to delete an instance through "Procees Instance Manager" I had the following message "Cannot stop instance <Instance name> <null>", this Instance I finished it and then I try to deleted, its status is Terminated, I want to clean my Completed Processes, Terminated Processes but I can't, what should I do? Thanks
Atte IsraelHi
Try following:
Maintain Processes -> All Processes
- check terminated checkbox checked.
- select dates
- put the name of prococess contributor
- check the relevent checkbox of process contributor roles
Then try to delete the instance. Instance takes time to delete. Behind the scene all instance are working as threads. -
Problems with importing Guided Procedure
Hello experts,
I have developed a Guided Procedure with the Composition Environment Trial Version SP1. Now I want to transport the existing GP to a productive System. I create a transport-order. If I try to import this transport-order following message appears:
No endpoint is choosen. Choos a endpoint for the import of a SAP system.
Any ideas what went wrong???
Thanks!
Regards
MarcoHi,
I think [this help doc|http://help.sap.com/saphelp_nwce10/helpdata/en/44/a42721ceb16a5de10000000a114a6b/content.htm] is usefull for you.
Regards,
Sampath -
Guided Procedures - Urgent help please
Hello,
Can anybody please help me with the information I am looking for?
Our issues with EP Guided Procedures (GP) are in two spots:
1) Parameter Passing - Use of out and in parameters from the process context to return / send values from Web Dynpro is not possible using out-of-box functionality.
2) Eventing / Wait states/ "eventing" - In GP, when multiple parallel processes come to the final decision point, the automated decision point is processed based on the first process that arrives to the decision point. It is not possible to Hold a process until the other parallel processes are complete.
Which of the following statements is true with respect to the issues we are having?
a) the product has these capabilities, and we've just not properly taken advantage of them;
b) the functionality doesn't currently exist - but is planned for near releases;
c) the functionality doesn't exist - nor is it planned to be delivered by SAP.
Thank you very much.
Regards,
JagadishHi David,
Assuming that they are actually blocks in a process (I do not see other possibility of actually handling two different processes instead of two blocks in a process, but I will confirm with the person who brought the issues to my notice), is it possible to specify exit condition for one block that also depends on the exit condition of second block? That means even if the exit condition of one block is met, can it wait for the second block's exit condition?
In BPM we have Fork step where I can specify parallel branches and design the process such that it runs through certain number of branches. Is anything available like this in GP? Can you please provide any documentation which explains the parallel block handling in GP? As I mentioned in my other response, I am familiar with BPM, but never used GP.
Thank you very much. -
Envio e Recebimento de Notificação de WorkFlow Guided Procedure no Portal
Bom Dia
Alguem poderia m ajudar a solucionar um problema
Tenho um cenário de WorkFlow de Guided Procedure no portal
Erro: O user escolhido não consegue receber o e-mail (notificação)
Segue abaixo a descrição do Cenário:
Clicar em: Gestão de Inovação
Clicar em : Ideas and Buckets
Show = Buckets
Selecionar um Bucket e clicar nele, ao abrir uma nova janela com os detalhes do bucket:
Clicar em: Evaluations
clicar em: Criar
Evaluation Name = teste
Start Date = data do dia
End Date = data futura qualquer
Clicar em: Select Itens
Escolher uma opção de ideas
clicar em: Select Criteria
Selecione algumas perguntas a serem feitas ao usuário
Clicar em: Weigh Criteria
Colocar o percentual de cada pergunta (peso)
Clicar em: Select Participants
Em Find Participants, escolher algum participante(de preferencia com um e-mail que possa ser conferido o recebimento)
Clicar em: Finish
Clicar em: Start(momento que deve disparar o workflow e o participante acima escolhido deve receber um e-mail)
Alguem poderia me ajudar , por favor
Grato.Bom dia Sergio,
Já está configurado o envio do e-mail pelo Portal?
Se o protocolo usado é SMTP, já existe uma regra que permita o envio do email pelo portal?
Boa sorte
Grilo -
Urgent: Problems in Generic Extraction by Function Module
Hi BW Gurus,
I am new to SDN and also new to generic extraction using function module. My requirement is to extract long text(142 char) from CRM to BW as the text is not stored in database table I used function module read_text with in another ZXXX function module copy of (RSAX_BIW_GET_DATA_SIMPLE). In my extract structure I used GUID(char,32), Langu, long text(142 char) and 2 placeholders. Text can be extracted by passing STXH table fields(Tdname, Tdid, Tdobject, Tdspars) to read_text as parameters and i also need to use CRMD_ORDERADM_H field GUID(32 char) to compare 1st 32 chars of tdname(70 char) with Guid to select Guids and loop thru this Guids and for each Guid i need to append lines of text to e_t_data but as i donot know ABAP i unable to write the code for this. Through my friends help i wrote code when i check in RSA3 it is displaying the text but when i replicate into BW and load into data target in monitor the status is red with records initially but afterwards it will be red status again with 0 from 0 records for initial load again.when i check on job logs the errors i have are:
The background job has created a job log file of 2Gb size and it is currently on a infinite loop writing entries into the SAP System Log that it cannot write to the Job log file due to Error 22 for write/read access to a file this is because of the datasource i have created. Please find my Function module and if anyone would please correct FM and send me that will be really great.I appreciate it in advance.
MY Function Module is:
FUNCTION Z_CRMORDERH_STR_TXT.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" VALUE(I_REMOTE_CALL) TYPE SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE YCRM_TEXT_STR OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
***" EXCEPTIONS NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
Tables: CRMD_ORDERADM_H, STXH.
Auxiliary Selection criteria structure
data: l_s_select type srsc_s_select.
Maximum number of lines for DB table
Statics: s_s_if type srsc_s_if_simple,
counter
s_counter_datapakid like sy-tabix,
Cursor
s_cursor type cursor.
data: i_crmtext type standard table of TLINE .
types: begin of xsreph ,
GUID type CRMD_ORDERADM_H-guid,
end of xsreph.
data: i_guid type standard table of xsreph.
data: I_TEXT type STXH-TDNAME.
data: xempl like YCRM_TEXT_STR occurs 0 with header line.
data: t_tab like dd03l-tabname.
Select ranges
ranges: l_r_guid for CRMD_ORDERADM_H-guid.
l_r_connid for sflight-connid.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
if i_initflag = sbiwa_c_flag_on.
Initialization: check input parameters
buffer input parameters
prepare data selection
Check DataSource validity
case i_dsource.
when 'yCRM_TEXT'. " for S_SREPH1
when others.
if 1 = 2. message e009(r3). endif.
this is a typical log call. Please write every error message like this
log_write 'E' "message type
'R3' "message class
'009' "message number
i_dsource "message variable 1
' '. "message variable 2
raise error_passed_to_mess_handler.
endcase.
append lines of i_t_select to s_s_if-t_select.
Fill parameter buffer for data extraction calls
s_s_if-requnr = i_requnr.
s_s_if-dsource = i_dsource.
s_s_if-maxsize = i_maxsize.
Fill field list table for an optimized select statement
(in case that there is no 1:1 relation between InfoSource fields
and database table fields this may be far from beeing trivial)
append lines of i_t_fields to s_s_if-t_fields.
we will do our selection based on what is in the p table for the
infoobject
else. "Initialization mode or data extraction ?
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
if s_counter_datapakid = 0.
Fill range tables BW will only pass down simple selection criteria
of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'GUID'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_GUID.
APPEND L_R_GUID.
ENDLOOP.
case i_dsource.
when 'YCRM_TEXT'. " for S_SREPH1
t_tab = 'CRMD_ORDERADM_H'.
endcase.
select GUID
from (t_tab)
into table i_guid where PROCESS_TYPE = 'ZACI' and ( OBJECT_ID < '0000000042').
select tdname from stxh into i_text where tdobject = 'TEXT'.
if sy-subrc ne 0.
message e009(r3).
this is a typical log call. Please write every error message like this
log_write 'E' "message type
'R3' "message class
'009' "message number
i_dsource "message variable 1
'No master data found'. "message variable 2
raise error_passed_to_mess_handler.
endif.
Determine number of database records to be read per FETCH statement
from input parameter I_MAXSIZE. If there is a one to one relation
between DataSource table lines and database entries, this is trivial.
In other cases, it may be impossible and some estimated value has to
be determined.
open cursor with hold s_cursor for
select (s_s_if-t_fields) from CRMD_ORDERADM_H
where GUID in L_R_GUID .
ENDIF.
Fetch records into interface table.
named E_T_'Name of extract structure'.
fetch next cursor s_cursor
appending corresponding fields
of table e_t_data
package size s_s_if-maxsize.
IF SY-SUBRC <> 0.
CLOSE CURSOR S_CURSOR.
RAISE NO_MORE_DATA.
ENDIF.
as we are doing this only once can use the select statement.
***data: crmtext like tline occurs 0 with header line.
**data: i_crmtext type standard table of TLINE.
**data: i_guid type standard table of xsreph.
data: l_guid type THEAD-TDNAME.
data: st_guid type xsreph.
data: st_crmtext type TLINE.
data: lan type THEAD-TDSPRAS.
lan = 'E'.
loop at i_guid into st_guid.
l_guid = st_guid-guid.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'A002'
LANGUAGE = lan
NAME = l_guid
OBJECT = 'CRM_ORDERH'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = i_crmtext.
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
e_t_data-guid = l_guid.
loop at i_crmtext into st_crmtext.
move lan to e_t_data-langu.
move st_crmtext-tdline to e_t_data-description.
append e_t_data.
endif.
endloop.
clear: st_guid,l_guid.
refresh: i_crmtext.
endloop.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
endif.
ENDFUNCTION.
please Gurus as I donot know ABAP i appreciate if anyone would write a FM based on requirement and send me that will be really great this is my request. I gurantee of award points for good answers.
Regards
KishoreHi,
The statement <b>RAISE NO_MORE_DATA</b> should be active (uncommented) in your code. Otherwise, the infinte loop occurs.
See also, the Siggi's blog:
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
BTW, was it your thread here:
Re: Urgent: problems in extracting Long Text
Best regards,
Eugene -
Hello All,
I am currently working on the Customer Master Prototype and am concerned with developing Guided Procedure and Dynpro Components for the same.
Since last week I have been facing an issue with Enterprise Portal. Earlier when i would log on to portal and then click on Design Time it would throw a dump "java.lang.NosuchMethodError" com.sap.caf.gp.eu.ui.<Method Name>.
To resolve this error i went through the stack trace and noted down the Active DC's that are causing problems. I then logged on to NWDS and in the Active DC's tab, scrolled down to the corresponding DC's and did a sync archive. After which i deployed the DC's and it stopped throwing the dump.I went on with the development of the GP till the block level. At the block level when i try to group the
parameters, it throws a dump again.I tried the same way to find the Active DC's and re-sync them but this time the approach did not work and it still throws an error when i try to group the parameters.This also causes the SDM to restart or stop randomly,The error that i am getting is.
java.lang.NoSuchMethodError: com.sap.caf.eu.gp.model.pfw.cons.IParamStructure.canCreateGroup(Lcom/sap/caf/eu/gp/model/pfw/cons/IParameter;)Z
Pls suggest any help will be highly appretiated.
Thanks in advance.
Regards.
Vinit SoniHello Bemdt,
Thanks for ur reply,I was also impression that some thing is wrong with my SCA's and u r hitting the bull's eye
Bendt Mt NW Release is 7.00 Sp14
i have logged in to System Information page and searched for SAPEU14 as u have suggested,So i found this entry theare.
Vendore sap.com
Name: SAP-EU
Version: 7.00 SP14 (1000.7.00.14.0.20071117060736)
Provider: SAP AG
location: MAIN_APL70VAL_C
Applied: 20080213042227
Kindly suggest me whow to proceed i m stuck in it badly:-(
i appretiate ur help.
Thanks and regards
Vinit Soni
Edited by: Vinit Soni on Nov 14, 2008 7:10 AM
Edited by: Vinit Soni on Nov 14, 2008 7:12 AM -
How to use WebDynpro Applications in Guided Procedure?
Hello,
i want to use a WebDynpro application as a part of a guided procedure. Therefor i developed a simple WebDynpro application as described in the NetWeaver Developer Studio Help. The Application consists of only two views. The first view is to enter data, the second displays them. So far so good....
In the next step i wanted to integrate this application as a CallableObject for execution in my guided procedures process. The wizard asks in step 2 for the "Development component" and WebDynpro Application. But where do it get this information? Indifferently what path i enter, it only returns an error the the object is not available on the server.
EDIT: The path to the webdynpro application is something like this: http://host:port/webdynpro/dispatcher/local/WebDynproUITest/UITest
kind regards,
MatthiasHello Dipankar,
thx for the blog! This really helped a lot!
The problem is, that you cant test the WebDynpro as a stand-alone application. What would be the best way to develop a WebDynpro Application for GP?
Is there a way to start with a 'normal' WebDynpro Application and convert this when finished in a "guided procedure ready WebDynpro for CE Application"?
I think i will contact you next week with more questions, for now on its weekend
regards,
Matthias
Maybe you are looking for
-
Debugger not working for BSP application
Hi All, I have 4.6C sap installation and the debugger is not working for BSP Application even when i hard code the break points. Can anyone help me on this issue. Thanks and Regards Shilpa
-
Hello SAP Gurus I want to configure PMW for UK. I have used GB_BACS. But this is not in specified foemat ,,,06,,<bulk list name>,,,,,,,<sortcode><account number>,,,,,,<payment date>,,,,,,,,,,,,,,,,,,<bulk list reference>,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
-
Dear Experts. In this moment I have the following issue in the MSS=>Requisition Monitor. The system display the following message of error: There is no iview is available for system 'SAP_ERP_TalentManagement' I found in the forum http://forums.sdn.sa
-
How might i go about making these "simple" adjustments?
Hi Folks I am a bit of a photoshop novice, but have been sent a document with details of requested changes. I realise to many the changes may seem somewhat basic and straightforward but i was just wondering if you could perhaps point me (amateur) in
-
please can anyone help me to restore my outlook e mails and contacts which are backed up on my time capsule?