Help: How to send response to user witch executed the workitem

Hi friends,
I want to execute MIGO transaction by workflow. I developed it by BAPI but, I'm using the PR_NAME parameter (on BAPI_GOODSMVT_CREATE HEADER) so it will be stored as the user witch executed MIGO.
I'm trying to send the follow variable: &_WORKITEM.EXECUTEDBYUSER.NAMEWITHLEADINGUS&, but it doesn't work. With variable can I use to do it ?
Glauco
Message was edited by: Glauco Kubrusly

Hi,
1-Check UNAME element in the WF container has both the import & export attributes checked.
->YES.
2-Check in the WF log if the UNAME element in the WF container is getting popualted with the approver's id.
->YES. NOW IT'S BACKING WITH THE CORRECT USER.
3-And lastly Check the BAPI independently and verify it is actually using the user id supplied or defaulting to the executing user's id.
->NOT FOR TASK MIGO IN BACKGROUND.
->NOT FOR BAPI INDENPENDENTLY RUN TOO. I run the funcion in foreground and put the user directly in the var uname. But the R/3 system stored as my user whose I logged in SAP. I know that it's wrong coz I put another user instead mine, and the MIGO document is with my sap user. I think parameter pr_name didn't work fine.
I discovered that the pr_name (BAPI_GOODSMVT_CREATE parameter) didn't work fine. Coz even foreground it's storing my actual logged user as document creator on MIGO, I know that coz I put another user in the test, but the function simply ignored this parameter. So always in background it will always store as wf-batch.
Message was edited by: Glauco Kubrusly

Similar Messages

  • How I can change default user that executes the process chain in BW 3.1?

    In others versions  is possible the change it in: "Process chain" >>> Attributes >>> Execution User >>> tick "Current User"., but in BW 3.1 donu2019t has this option.  I need to change the user default  (ALEREMOTE)

    M,
    Equally, I canu2019t change the user using SM37 transaction, because when I  schedule a process chain, occurred an error: 
    "Job BI_PROCESS_LOADING could not be scheduled. Termination with returncode 8
    Message no. RSPC065
    Diagnosis
    Program RSPROCESS is to be scheduled as job BI_PROCESS_LOADING under user ALEREMOTE"

  • HELP plz..How to send response from server to client

    Hi..plz help me out of this problem..i am sending request from client side to servlet..lets say i am sendin "Bechkam"..now my servlet fetches this request.n finds out that BECHKAM is a football player..now i dont want to print this on the client side..i simply want to sent this response back to the client..after client receives this response the client should print bechkam is a football player..i have done coding of sending request from client(javascript code)to server but dont kno how to send response to client..do i have to use cookies or sessions..
    Any help will be greatly appreciated
    THANX

    I'm not sure how well versed you're with HTTP and servlets.
    What you term as 'printing on the client side' is in fact the response you're looking for. The response you send from a servlet is 'printed' into the response stream. The client receives this data and interprets is according to some headers. Usually, this data is HTML/ plain text which is interpreted by the browser and rendered as required. It could very well be displayed as is.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • How to send data from internal table to the shared folder in ABAP

    Hi experts,
             My requirement is to transfer data from a file to shared folder. i just did reading data from a file to a internal table. Now i want to send this internal table data into a shared folder which is  "
    xxx\y\z....".
    I do not have any idea on how to send data from internal table to the shared folder path.
    can anybody please help me out how to do this?
    Thanks & Regards
    Sireesha.

    Where that folder is located, its on presentation server i.e. desktop or application server.
    If its on presentation server, use FM GUI_UPLOAD.
    If its on application server, then use DATASET functions. Have a look at below link.
    [File Handling in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm]
    I hope it helps.
    Thanks,
    Vibha
    Please mark all the useful answers

  • How to send a job log/Spool once the job completed?

    Could you please help me how to send a job log/Spool once the job completed.
    There was an option is available System Send mail to send a mail once the job completed . So could you please help me how we can send a job log using this option .
    I have tried the below but i didn't get any mail . Could some one help this please !
    For example :
    Job chain name : Test_spool
                    Step1 : Reportstep
                                    Job definition u2013 XXX_YYY
                    Step2:  Mailstep
                                    Job definition: system_mail_send
    Expression :  Reportstep,job<(what i need to mention here )>:reportstep/log.txt
    Check the ablove mentioned is correct and correct me , still i didnu2019t get the log in the mail please .
    Thanks
    Ramkumar

    Hi Ram,
    I need your help on getting mail alert with  log file.
    here is how i have provide the parameter valure for job definition: system_mail_sent.
    Step1 with one job1 and step2 with one job1
    In step2 , i have included the job definition to send mail. with below parameter.
    Relative Job: Step 1, Job 1
    Job File: step 1, job 1: step 1/log.txt
    Please let me  know if the above method is correct or not.
    NOTE: mail server and from address are configured.
    Thanks,
    Karthik

  • HT1451 Hi All, I have 2 users on my desktop, 1 i-tunes account and log-in but both users have different music contents i.e. one has the full iTunes library and the other only has some songs. How do i get both users to have the same music content?

    I Have 2 users on my computer and both access i-tunes using same password etc. however 1 library has the full content of music but the other one has only partial playlists. How do I get both users to have the same full library?

    The title of my initial post is a bit misleading. I already took a chance deleting one of the iPhones, hoping if I deleted the wrong one, I can still reauthorize it (all with the same Apple ID acct, so not subject to 90-day waiting period, right?) The iTunes database just updated itself, and it says I have 4 "devices" "in the Cloud", but 5 "computers" associated w my account. How can I find out what computers are associated? Isn't there a list I can see? I dont have a clue what computers they might be. If I use the  "Deauthorize All" option, is it a pain to add them all back in. I assume I would have to log in from each computer to reauthorize each one. Would I have to be running the newest OS or version of iTunes to reauthorize? I think I have a PowerBook G4 Titanium with an older OS and iTunes. I'd like to keep that authorized, if possible.

  • Help:  How to add a library item to hide the default Window menu

    Hi,
    In this post: Help: How to add a library item to hide the default Window menu, it described how to create an menu that will hide the default window menu.
    I'd like to know if there a way to put this component into library so that others can directly inherit this menu in other FORMS and how to implement it.
    Jimmy

    Hi,
    I found the solution and the post was not properly phrased. There is no need to add menu into library. All we need is to put the compiled menu into Oracle AS and add the menu name the menu module of the given form.
    Thanks.
    Jimmy

  • How can i obtain a user guide for the ipod nano 16GB 5th gen. with out printing it off the computor

    How can i obtain a user guide for the ipod nano 16GB 5th gen. without printing it off the computor.

    You can't, at least not the one provided by Apple.
    B-rock

  • How do I assign a user ID to the purchasing group so it shows up on table..

    How do I assign a user ID to the purchasing group so it shows up on table T024?  I'm trying to create a STO but am recieving the following error
    Configuration of User ID is not set up in purchasing group T024 table
        Message no. 00398
    Diagnosis
        Placeholder for batch input error text, this message is not output.
        Configuration of User ID is not set up in   purchasing group T024 table
    Thanks in advance

    Table T024 has no field for a user-Id in standard SAP
    you can only tie a user to a purchsing group via authorization with user roles.
    The message 00398 is a generic message that can be used for everything.
    I guess this message is triggered in a userexit. Designed by a collegue of you.

  • [Help]How can I power on or power off the specpum through GPIB by VC6.0 ?

    [Help]How can I power on or power off  the specpum through GPIB by VC6.0 ?
    [帮助]如何在VC6.0环境下通过GPIB卡开关频谱分析仪的电源?
    For this is my first programme, thus ,I have no idea how to write code, and don't know the heaer files and DLL files to  be included or imported.
    因为这是我写的第一个程序,所以,不知道如何写代码,也不知道需要引用或者导入哪些头文件或者库文件。
    Thank you !
    谢谢!

    Your question is very abstract, and difficut to understand what you want to do.  Do you wish to control your spectrum analyzer for TURN-ON and TURN-OFF power?
    Assuming your question is so...
    To turn the instrument power OFF, you should look for the GPIB command that can do this in the instrument's operation manual. 
    To turn the instrument power ON, it is very difficult or almost impossible to do so, because your app program will have no way to communicate with your "unpowered" instrument. 

  • How to find the user who approved the workitem.

    Hi experts,
    I have created a parking/posting workflow.
    When the user Approves, parked document is posted and BKPF table is updated with WF-BATCH as user name.
    Now I need to find the actual user who approved the workitem for posting.
    My plan is:
    1. Find the workitem id using the BOR, company code, document no, year, task no.
    2. Find the user who processed the above obtained worktem id.
    Please let me know the tables for the above points 1 and 2.
    Or let me know if there is any other way to find the actual user.
    Regards,
    Karthik

    Hi,
    To get the workitem ID with respect to a specific business object instance make use of the FM SAP_WAPI_WORKITEMS_TO_OBJECT
    To know who processed the determined workitem either you can make use of the FM SAP_WAPI_GET_WORKITEM_DETAIL or directly read the table SWWWIHEAD and you can find the actual agent WI_AAGENT this is the field which says who has executed the workitem.
    Regards
    Pavan

  • Find the user that executed the SQL procedure

    We are using Oracle 10g R2 on Linux.
    I want to know the OS user that executed the purging procedure (PURGE). For this, i am using the following query which is not returning any row:
    select *
    from DBA_HIST_ACTIVE_SESS_HISTORY ash, DBA_HIST_SQLTEXT s
    where ASH.SQL_ID = s.SQL_ID
    and UPPER(s.SQL_TEXT) like '%PURGE%';Is the above query fine?

    Moazzam wrote:
    We are using Oracle 10g R2 on Linux.
    I want to know the OS user that executed the purging procedure (PURGE). For this, i am using the following query which is not returning any row:Since what you are doing to get the user indirectly is not working would another approach be helpful?
    Since you want to know who is running the procedure would a log table you could insert into at the start or end of the procedure help, to store the information you are interesting in seeing?
    Or, can you get the information you want from other system views? V$SESSION has the OSUSER column as well as SQL_ID and other join columns for other views (like V$SQL).

  • Please help, how to send mails faster / send more mails per hour

    hello,
    in my application i am using mail sender class i have created to send mail to the users to participate in a survey. following is the code for it. i would like to know if there is anything wrong in it coz it takes to much time to send the mails it is taking 2 minustes to send 6 mails i.e 360 mails per hour only.
    following is how i instantiate the mail sender class and then generate a http link string dynamically as it is different for all the user.
    //////////class where mail sender is instantiated////////////////////
    try
    setConnection();
    st=con.createStatement();
    rs=st.executeQuery("select * from "+CNAME+"_campaign");                         
    String SurveyT = new String();
    while(rs.next())
         SurveyT = rs.getString(2);
    rs.close();
    rs=st.executeQuery("select * from "+CNAME+"_user");     
    ss = new MailSender();
    while(rs.next())
         String userid = rs.getString("userid");
         String password = rs.getString("password");
    StringBuffer message = new StringBuffer(BodyText.getText().trim());
    if(SurveyT.equals("invitational") || SurveyT.equals("single"))
                                            message.append( "\n" + "http://"+IPadd.getText().trim()+"/"+CNAME+"/servlet/login?username="+userid+"&passw="+password);
                                            ss.send(FromField.getText().trim(),userid,SmtpServerID.getText().trim(),MailSub.getText().trim(),message.toString());
    else if(SurveyT.equals("general"))
    message.append( "\n" + "http://"+IPadd.getText().trim()+"/"+CNAME+"/Index.html");
    ss.send(FromField.getText().trim(),userid,SmtpServerID.getText().trim(),MailSub.getText().trim(),message.toString());
    st.close();
    this.dispose();
    catch(SQLException sqlex)
    JOptionPane.showMessageDialog(null,sqlex.getMessage());
    //Mail Sender class/////////////////
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import javax.swing.*;
    public class MailSender
         String sentAddr,fromAddr,smtpServer,body,subject;
         public MailSender()
         //function send to send the mail
    public void send(String from,String to,String smtps,String subj,String messagetext)
              fromAddr=new String(from);
              sentAddr=new String(to);
              smtpServer=new String(smtps);
              body=new String(messagetext);
              subject=new String(subj);
              try
                   Properties props = System.getProperties();
                   props.put("mail.smtp.host",smtpServer);
         Session session = Session.getDefaultInstance(props,null);
    Message msg = new MimeMessage(session);
                   msg.setFrom(new InternetAddress(fromAddr));
    msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(sentAddr,false));
         msg.setSubject(subject);
         msg.setText(body);
    msg.setHeader("Survey","MailCheck");
    msg.setSentDate(new Date());
         Transport.send(msg);
         catch(MessagingException mex)
              JOptionPane.showMessageDialog(null,mex.getMessage());
    }

    Lots of variables here....Also my maths says only 180 per hour.... i.e. three a minute.
    1) you are using a database to get info from. What is the average response time of the DB server? Looks like you are doing one SQL then reading the result table but does the initial SQL take a while?
    2) how much data are you passing on to the SMTP server and how fast/slow is the link to that SMTP server? Work out the absolute max amount of data you can transfer over the link then get your average message size and work out a VERY theoretical Max number of messages a minute. Note that real life might approach 80% of this taking TCP/IP and SMTP overheads into account.
    3) What sort of load is the SMTP server under? If it's busy you will be only getting a fraction of whatever bandwidth is available. Depending on its design it may be trying to deliver the first message you sent it while you are still pumping more messages down to it. SMTP servers may limit the number of connections per minute from another machine in order to defeat a denial of service attack. Your code makes a connection per email so this may have relevence here.
    4) Raw horsepower always helps. When I write stuff to do things like this there is no nice GUI screen etc. Just basic Java that if it has to will write a log if something goes wrong. Maybe just maybe a counter on STD out to show it is still actually doing something. Keep the number of classes used down to the bare minimum. In the old days we used to spend days paring code to the bone - a skill somewhat lost these days.
    Hope this gives you some help in finding the bottleneck.
    Cheers,
    SH

  • Notification - How to send to a user

    Can we send Notifications to an user in OAF; the tool used is Oracle 9i JDeveloper. We are not using any workflow, but on submitting a page for approval , we need the approver to be notified.
    Please give me some insight on how to do this
    Thanks,
    PRaji

    Hi Smita
    You can write a repository service that which would listen to the resource creation event and as soon as the event is triggered; get user details and the resource details which was uploaded by the user.
    Once you have these details, you can trigger an email and embed the user and resource details in the email body.
    (You can also trigger the email from your respository service itself.)
    Hope this helps..
    Thanks
    Deepak

  • Help, how to send an e-mail from JSP

    I need to know if there's any method or library that helps me to send a mail from a web page, i need to send data from a query from mysql, does anybody knows how??? PLEASE!!!!

    here are the links that can help you.. you must download the jar files needed in order for you to send mail using java
    http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html
    http://java.sun.com/products/javamail/
    http://java.sun.com/products/javamail/FAQ.html

Maybe you are looking for

  • Avid MC Transport Control Surface now working in CS 5.5

    Not sure if anyone is interested, but because Adobe doesn't have a EUCON integrated support, it greatly limits the control surfaces that can be used with it. I googled a bunch of different things but in the end it seems like the general conclusion wa

  • Thumbnail images in Forms6 client/server

    Hello, Some help would be greatly appreciated on this matter. I would like to be able to display a thumbnail image of a picture on the web in an oracle, NON-WEB enabled form. For example, when I open a form dealing with product details, I would like

  • How to delete the unwanted Remains after interrupt an installation.

    I was trying to install EVE online on my mac book air. But during installation, I decide not to  and then interrupt the process. I was expecting that the disk space it took be freed after cancelling, but it wasn't. And because that program's size is

  • I got stuck on "Getting Started" guide

    I'm obviously new to C++. Sorry, for a question that might seem obvious to you. I can compile the Helloworld project. I cannot get it to run. I can not complete the instructions for the "Visual C++ template." I've copied the file and folders to they'

  • Macbook air 11.6' (late 2010 model) screen dims after few seconds and does not recover.

    Hi, I am running win7 under bootcamp on a macbook air 11.6'' late 2010 model (1.4 dual core, 4Gb memory, 64Gb ssd). A few days ago the screen started to dim a few seconds after bootup. Even if I pres any of the keys it does not light up again. Howeve