Need a BAPI or FM to update the User filed ie., AFVGD-USR00 in Tcode CN22

Hi,
I am updating the User field of Network in Tcode CN22 through BDC . Now, Please give me FM or BAPI to update User field AFVGD-USR00 in Tcode CN22.
Regards,
Deepthi.

Hi,
I have written the code but it is not working . my code is as below:
DATA : i_meth TYPE STANDARD TABLE OF bapi_method_project,
       w_meth TYPE bapi_method_project,
       i_act TYPE STANDARD TABLE OF bapi_network_activity,
       w_act TYPE bapi_network_activity,
       i_actu TYPE STANDARD TABLE OF bapi_network_activity_up,
       w_actu TYPE bapi_network_activity_up,
       i_ret TYPE STANDARD TABLE OF bapireturn1,
       w_ret type bapireturn1.
w_meth-objecttype = 'NETWORK'.
w_meth-method = 'UPDATE'.
Object key in Netwrok Activity is combination of Network and Network Activity
w_meth-objectkey = '0000040070550010'.
w_meth-refnumber = '0000040070550010'.
w_meth-objecttype = space.
w_meth-method = 'SAVE'.
w_meth-objectkey = space.
w_meth-refnumber = space.
APPEND w_meth TO i_meth.
CLEAR w_meth.
w_act-network = '000004007055'.
w_act-activity = '0010'.
w_act-user_field_char20_1 = '000004008252 0010'.
APPEND w_act TO i_act.
CLEAR w_act.
w_actu-network = 'X'. .
w_actu-activity = 'X'.
w_actu-user_field_char20_1 = 'X'.
APPEND w_actu TO i_actu.
CLEAR w_actu.
CALL FUNCTION 'BAPI_NETWORK_MAINTAIN'
IMPORTING
   return                            = w_ret
  TABLES
    i_method_project                  = i_meth
   i_activity                        = i_act
   i_activity_update                 = i_actu.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Regards,
Deepthi.

Similar Messages

  • BAPI or FM to update the commpr01 t-code

    Hi,
    Please let me know the Bapi or FM to update the commpr01 t-code.
    Thanks and Regards,
    Vijay.

    Hi,
    I want to update the transaction through a workflow.
    My scnerio is: i want to trigger a workflow whenever an attribute if the workflow is changed. The change goes through the series of approvals and after every level approves the change only then attributes needs to be changed.
    so i am thinking of updating the commpr01 t-code once all the levels are approved. so i need to use a BAPI or FM to update the t-code commpr01..
    Please suggest me if you have a better solution on this approach.
    Regards,
    Vijay.

  • Updating the User Status in Sales Order Item

    Dear Gurus,
    Iam trying to update the User Status on the SO item using STATUS_CHANGE_EXTERN function module and the status is successfully getting updated.
    But the problem is if Iam updating the status it has to delete the Purchase Requisition assgined to it, which is not happening.. whereas when Iam manually changing the Status, the PR is getting deleted.. Can anyone suggest some other function module or some other way of doing it other than BDC?
    Best Regards,
    Sreenivas.

    Hi ,
    I am also need to update the Item user status. Could you please provide me the logic for the FM 'STATUS_CHANGE_EXTERN'. And also let me know the where we need to write the logic in VA01/VA02.
    It would be helpful me a lot.
    Thanks
    Srihari.

  • Can I update the user ID of a user?

    We've noticed that the OOB login component assumes that you log in using your  user ID and password. This is fine if you never update the user name, but in our organization the requirement is to let users update their username. How would we need to implement this? We see two solutions:
    1) username is in fact user ID. When the user updates the username we need to somehow update that user's ID or delete the existing user ID and create a new one. We do not like this approach as it looks like a lot of reverse replication will need to be done.
    2) username is NOT the user ID. In this case it would mean we need to update the OOB login components as that component takes the user ID as input, not the username. We would need to use javascript to find the userID based on the provided username before starting the authorization process. We will also need to make sure that username remains unique across all users.
    Any opinions on what would be easiest to implement. We don't really like any of the options. Ideally I wish we could just update the userID of a user as that would mean we can use all of the OOB components for login and profile handling. But I've read that this is not possible.

    Hello,
    I would refer you to not play with username (userid/principal name) and because you have this requirement i will suggest to add one more property to user node (/home/users) say user_login_name which will have same value as username (rep:principalName) while first time registration.
    Now you have to do small tweak in your login module, every time when user will login you would expect value for "user_login_name" and once user click on login button before submitting for authorization you have to query to repository system to get actual username (rep:principalName) from repository and then use actual username for login. It means "login_user_name" will be just for display but back side you will be running same logic by small code tweak.
    Now about changes to login_user_name can be easily placed as everytime you will be allowing user to update "login_user_name" not "username" but you must have to take care of one thing that there will be no duplicate "login_user_name" in system. For that you can write a listener which will be fired at the time of form submit or may be you can also do through client side script validation (you have to some research for feasibility at client side - may be "ecma" script can help).
    For even listener plz refer - http://blogs.adobe.com/contentmanagement/2012/08/27/how-to-prevent-users-from-entering-dup licate-vanity-urls/
    http://sling.apache.org/site/eventing-and-jobs.html
    For more information or any issue in listener let me know.
    Thanks,
    Pawan

  • BAPI or RFC that contains the user information

    Hi,
    Please let me know if there is any BAPI or RFC that contains the user information like user IDs, passwords etc. I need that to use in the XI. I am using SAP system as the target system or the source system .
    Thanks
    kanan

    Hello Kanan
    Just call function module BAPI_USER_GET_DETAIL.
    Regards
      Uwe

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

  • Get Error while update the User defined row table through DSK Code

    Hi experts,
    I have got an error while updating the user row defined table.
    Error is - "Invalid row"
    I have created one master table "@CBF_FARM " and Child table "@CBF_FAR1"
    First i inserted 5 record in the child table so in my my child table there are 5 Line id (1,2,3,4,5 one for each row).
    after that i delete 2 rows (3rd & 4th row) from child table now in my child table there are 3 rows( Line id 1, 2, 5). Please See attachment.
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    Following Code used for updating the user defined child table.
      SAPbobsCOM.GeneralService oGeneralService1 = null;
                                    SAPbobsCOM.GeneralData oGeneralData1 = null;
                                    SAPbobsCOM.GeneralDataParams oGeneralParams1 = null;
                                    SAPbobsCOM.CompanyService sCmp1 = null;
                                    SAPbobsCOM.GeneralData oChild1 = null;
                                    SAPbobsCOM.GeneralDataCollection oChildren1 = null;
                                    sCmp1 = clsAddOn.LDNA_Company.GetCompanyService();
                                    oGeneralService1 = sCmp1.GetGeneralService("CBF_FARM");
                                    // Get UDO record
                                    oGeneralParams1 = ((SAPbobsCOM.GeneralDataParams)(oGeneralService1.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
                                    oGeneralParams1.SetProperty("Code", oForm.Items.Item("edtFarmCd").Specific.Value);
                                    oGeneralData1 = oGeneralService1.GetByParams(oGeneralParams1);
                                    // Add lines on UDO Child Table
                                    oChildren1 = oGeneralData1.Child("CBF_FAR1");
                                    // Create data for rows in the child table
                                    SAPbouiCOM.Item oItem = oForm.Items.Item("cmbShed");
                                    oCombo = oItem.Specific;
                                    string ShedCode = oCombo.Selected.Value;
                                    ldna_Rec = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                                    string strQuery1 = "select LineId from [@CBF_FAR1] where U_ShedCd = " + ShedCode;
                                    ldna_Rec.DoQuery(strQuery1);
                                    oChild1 = oChildren1.Item(ldna_Rec.Fields.Item("LineId").Value - 1);
                                    oChild1.SetProperty("U_Status", "Ready For Schedule");
                                    //Update the UDO Record
                                    oGeneralService1.Update(oGeneralData1);
    Please Help me it is an urgent requirement,
    -Regards
    Vikas

    hi.
    Error is - "Invalid row"
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    As per my knowledge
    What i understood is you have 5 lines and you are going to be update 5th line
    am i correct..
    while u are updating the line in child table
    you have to consider like this..
    line number         u have to update like
    1                                        0
    2                                        1
    3                                        2
    4                                        3
    5                                        4
    which means in child table treat
    line 1  as 0
    line 2 as  1
    line 5 as 4
    If you want to update the line 5 u have to mention 4 th line

  • Is there any BAPI or FM to update the scheduled dates of a production order

    Hi Friends,
    I would like to know if there is any BAPI or function module available to update
    the Scheduled finish and Scheduled start dates (GLTRS,GSTRS fields from AFKO table) of
    a production order.
    I have searched the forum, but I could not find anything.
    It would be of great help if anybody let me know about any Function Module / BAPI.
    Regards
    Aditya

    Hi ravi,
    in crm we have a t-code to cancel billing doc just execute and provide billing doc no and test run.
    that automatically cancel the billing doc. CRMD_BILL_REV Cancel Billing Document
    and here is the function module to cancel the billing doc..
    BAPI_BILLINGDOC_CANCEL1  Cancel billing document.
    if you want to more just fallow this links i think this might be help full to you..
    https://help.sap.com/saphelp_sm40/helpdata/en/6f/f26863448111d5992400508b6b8b11/content.htm
    Cancellation of Billing - Billing - SAP Library
    let me know if there is any queries.
    Thanks & Regards,
    Srinivas.

  • Need urgent help on how to compare the user profile and process form attributes

    Hi All,
    We have a requirement  where after editing the  user profile attributes we have to compare the currently modified user  profile attributes and the existing     
    process form attributes and based on the differences we have to update the  process form accordingly.
    We have around 80 attributes so we cannot follow the procedure where
    we update the lookup process_triggers
    and add the "change attribute" task
    and "update attribute" taskin the process definition
    because it creates aroung 160 tasks in process definition. So we are doing it by writing a custom code. Is there any other simple way to do it or any API"s which can help us.
    Need very quick help.Thanks in advance.
    Regards,
    Geetha

    Check MOS: 1595938.1
    -Bikash

  • Need to display last login details to the user after they login into portal

    Hi All,
    As per our requirement ,we need to display to the user,the following things:
    1.Last login date and time will be maintained and displayed to the user after login.
    2.Last unsuccessful login date and time will be maintained and displayed to the user after login.
    3.No. of unsuccessful retrials before locking the user will be maintained and displayed to the user after   login.
    Therefore we are creating a webdynpro application wherein we are making use of the UME API and trying to retireve these information.
    The methods i am using are:
    IUserAccount.getLastFailedLogonDate() // To fetch the Last unsuccessful login date and time
    IUserAccount.getFailedLogonAttempts() // No. of unsuccessful retrials
    IUserAccount.getLastSuccessfulLogonDate() // Last login date and time
    But the problem is IUserAccount.getLastSuccessfulLogonDate() is deprecated and i unable to use it,and also i  am unable to get the value *IUserAccount.getFailedLogonAttempts() * I am only geting zero.Can anybody let me know alternative method to get this details.
    Request you to guide me and help me to resolve this issue.
    Thanks and Regards,
    Nishita Salver

    Hi,
    I hope you are trying to show your login date from SharePoint List.
    My suggestion is 
    1. by using ECMA Script ,retrieve values from that list and show the same in Master Page.
    2. If you are not comfortable with ECMA, develop Visual Webpart and add the Visual Webpart in master page by using SharePoint Designer.
    Please let me know ,if you need further guidance.
    Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • I need to call an external application (on the user's PC) from web forms 6i

    We do imaging here, and all our images are scanned to a novell fileserver that has a drive letter mapped to the user's PC.
    These images are used for Oracle applications and other applications, and we only store the image's location path and file type in oracle.
    e.g. image_path varchar2(100), image_type varchar2(3)
    would be: 'w:\archive\ap\0127\ap12345', 'tif' where 'ap12345' is the image name.
    The file is stored on the novell box without an extension, which has worked fine for us with our forms applications in client server.
    Moving to web forms, I'm trying to reference the images via web using forms 6i triggers and web.show_document('file:///'||image_path) for the URL.
    This finds the image, however, internet explorer doesn't know what to pull it up as without the extension, and if I try to put an extension on the file, the browser isn't able to identify it since it doesn't have an extension on the fileserver, so I'm in a catch 22. I'm unable to put an extension on the original copy of the file on the fileserver due to other applications that also need to reference it.
    Also, I'm unable to go directly to the file on the novell server from my 9iAS webserver.
    My question is:
    Would it be possible to use javascript or some other means from inside the forms 6i trigger, or a database procedure that the forms trigger kicks off inside the Jinitiator JVM to go out to the client PC's file system, grab that file and copy it to a temporary location on the 9iAS webserver -OR- the client PC with the extension, and then reference it from there?
    If so, how could I do that?

    The images are stored on an external novell server that I don't have any access to from my 9iAS server. I can find the novell box from the windows machines, but I have no direct means of "grabbing" that image ...
    or so I thought.
    I'm looking now as the Oracle FileUpload javabean utility that I can put within a form to let the user click on the view-image button, it will then kick off a procedure to grab the file from the user's mapped network drive, copy the file to the server with an extension and into the directory I want it, and let me then link to the copy of it with a web.show_document command ...
    At least that's the theory. So far all I get is an ORA-105100 error and I've doublechecked and triple-checked my path and classpath settings everywhere the documentation and several notes says to check them. I've had oracle looking at it too, but so far, nada - still working on it though.

  • Need to send a mail back to the user in Sender Mail adapter Scenario

    Hi all,
    I have a scenario where the user fills the Price form  or the Article form (which is a Adobe Form).When the user clicks on the "submit" button,the form is converted into xml , gets attached to the mail and sent to PI.
    Now the user sometimes attaches the pdf directly instead of submitting the form. This results in the mail being sent
    with pdf  as attachment.
    Now my requirement  is to send a mail back to the user asking them to send an xml  instead of a pdf.
    How can this be done ?
    Kindly let me know friends.
    Quick Response is appreciated.

    hi Sanjay,
    Have a look on Michal's blog, it's for JMS, but it works for others: [PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean|PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean]
    Mickael

  • WF-Batch id needs to be changed on runtime with the user email id.

    Hi All,
    I have a requirement where i have to send an email through workflow, but in the from i have to pass the employee responsible email id. I got the email id in a container. Now how can i replace WF-Batch ( i.e. by default) with the user email id in the from to send email to approver.
    Anykind of help will be appreciated in this context.
    I try to search on SDN, but didn't get enough information.
    Regards,
    Raman Khurana.

    Hi Pavan,
    I didn't get your point of "BCS communication services", where to do that ? and is it dynamic ?
    Kindly explain it a bit.
    Approach that i am following is "i created a ZFM to send email with parameters (from, to, message, subject), this FM reference can be check on the below mention link. I created a method in BO to call that FM and then call that BO's method in activity step. I think this is the only approach that can be followed. I may be wrong. If anyone knows any other approach then please reply, or i will mark this thread as answered.
    http://wiki.sdn.sap.com/wiki/display/EmTech/PublishWeberviceinABAP,ConsumeWebserviceinABAPandAdobeFlex.
    Regards,
    Raman.

  • Need to find Logon Group in which the user Logged in

    Dear Experts,
    I have a issue to find the logon group while logging into the SAP
    For example
    One server having three LogonGroups
    1) MFSTRESS
    2) TEST
    3) HQSTRESS
    in that I want to find out the logon group in which the user logged in. I am not able to find in the transaction SMLG or AL08
    Is ther any function module is available  or any other way to find the logongroup.
    Please help on that its very urgent . I will reward the points immediately.

    hi,
    TH_USER_INFO – Returns information about user
    TH_USER_LIST – Displays users logged onto server
    Hope this helps, Do reward.

  • I need to make an app that lets the user save a text file to their docs

    i am a 14 year old developer, and i have a problem with interface builder. i would like to add a button, or option in the menu that will allow the user to save a file. it is just a basic text file. can anyone please help? and im a code noob, so make it simple! thanks!

    Seen these?
    Guides:
    http://developer.apple.com/library/mac/search/?q=open+save
    Application File Management:
    http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/AppFileMgm t/
    The Save and Open Panels:
    http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/AppFileMgm t/Concepts/SaveOpenPanels.html
    Managing Accessory Views:
    http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/AppFileMgm t/Articles/ManagingAccessoryViews.html

Maybe you are looking for