Call transaction BDC with different user id

Hello,
We have a BDC program for creating Invoice using "CALL TRANSACTION VF01" method. But there are are few user IDs accessing this program who do not have authorisation to VF01. So requirement is to create Invoice with a common user id.
Please help if it is possible to call transaction with different user id. Please also provide you inputs if you can suggest some other way to fulfill this requirement.
Thanks & Regards,
Rohit

Hi Rohit,
if users are not authorized to post invoice, why is it required to surpass the checks?
A Question the business should answer.
It should not be the consultants obligation to find doubtable ways.
Regards
Clemens

Similar Messages

  • Call a BAPI with different user ID

    Hi All,
    Here is my scenario:
                                                      CALL  BAPI
    System 1 -
    >   System 2
                   <----
                                                TRANSFER DATA
    What I want to do is when I call the BAPI in System 2 with a different user ID than is actually logged into System 1
    executing the BAPI.
    Is this possible?
    thanks.
    JB

    Hello,
    I suppose you use a Trusted RFC connection in your BAPI call and not an RFC destination with a dedicated user in it.
    What you can do in the source system is calling your BAPI from a background process (job).
    You can change the user ID in the step of the job.
    In this case trusted RFC will make sure that the BAPI is called in the target system with the user specified in the step.
    If trusted RFC is not an option you can use an RFC destination with a dedicated user ID in it.
    I hope this helps.
    Wim

  • Plz tell me BDC  CALL TRANSACTION steps with simple example

    hi,
    plz tell me the steps
    BDC  CALL TRANSACTION steps with simple example

    Hi,
    BATCH DATA COMMUNICATION
    About Data Transfer In R/3 System
    When a company decides to implement the SAP R/3 to manage business-critical data, it usually does not start from a no-data situation. Normally, a SAP R/3 project comes into replace or complement existing application.
    In the process of replacing current applications and transferring application data, two situations might occur:
    ? The first is when application data to be replaced is transferred at once, and only once.
    ? The second situation is to transfer data periodically from external systems to SAP and vice versa.
    ? There is a period of time when information has to be transferred from existing application, to SAP R/3, and often this process will be repetitive.
    The SAP system offers two primary methods for transferring data into SAP systems. From non-SAP systems or legacy system. These two methods are collectively called ?batch input? or ?batch data communication?.
    1. SESSION METHOD
    2. CALL TRANSACTION
    3. DIRECT INPUT
    Advantages offered by BATCH INPUT method:
    1. Can process large data volumes in batch.
    2. Can be planned and submitted in the background.
    3. No manual interaction is required when data is transferred.
    4. Data integrity is maintained as whatever data is transferred to the table is through transaction. Hence batch input data is submitted to all the checks and validations.
    To implement one of the supported data transfers, you must often write the program that exports the data from your non-SAP system. This program, known as a ?data transfer? program must map the data from the external system into the data structure required by the SAP batch input program.
    The batch input program must build all of the input to execute the SAP transaction.
    Two main steps are required:
    ? To build an internal table containing every screen and every field to be filled in during the execution of an SAP transaction.
    ? To pass the table to SAP for processing.
    Prerequisite for Data Transfer Program
    Writing a Data Transfer Program involves following prerequisites:
    Analyzing data from local file
    Analyzing transaction
    Analyzing transaction involves following steps:
    ? The transaction code, if you do not already know it.
    ? Which fields require input i.e., mandatory.
    ? Which fields can you allow to default to standard values.
    ? The names, types, and lengths of the fields that are used by a transaction.
    ? Screen number and Name of module pool program behind a particular transaction.
    To analyze a transaction::
    ? Start the transaction by menu or by entering the transaction code in the command box.
    (You can determine the transaction name by choosing System ? Status.)
    ? Step through the transaction, entering the data will be required for processing your batch input data.
    ? On each screen, note the program name and screen (dynpro) number.
    (dynpro = dyn + pro. Dyn = screen, pro = number)
    ? Display these by choosing System ? Status. The relevant fields are Program (dynpro) and Dynpro number. If pop-up windows occur during execution, you can get the program name and screen number by pressing F1 on any field or button on the screen.
    The technical info pop-up shows not only the field information but also the program and screen.
    ? For each field, check box, and radio button on each screen, press F1 (help) and then choose Technical Info.
    Note the following information:
    - The field name for batch input, which you?ll find in its own box.
    - The length and data type of the field. You can display this information by double clicking on the Data Element field.
    ? Find out the identification code for each function (button or menu) that you must execute to process the batch-input data (or to go to new screen).
    Place the cursor on the button or menu entry while holding down the left mouse button. Then press F1.
    In the pop-up window that follows, choose Technical info and note the code that is shown in the Function field.
    You can also run any function that is assigned to a function key by way of the function key number. To display the list of available function keys, click on the right mouse button. Note the key number that is assigned to the functions you want to run.
    Once you have program name, screen number, field name (screen field name), you can start writing.
    DATA TRANSFER program.
    Declaring internal table
    First Integral Table similar to structure like local file.
    Declaring internal table like BDCDATA
    The data from internal table is not transferred directly to database table, it has to go through transaction. You need to pass data to particular screen and to particular screen-field. Data is passed to transaction in particular format, hence there is a need for batch input structure.
    The batch input structure stores the data that is to be entered into SAP system and the actions that are necessary to process the data. The batch input structure is used by all of the batch input methods. You can use the same structure for all types of batch input, regardless of whether you are creating a session in the batch input queue or using CALL TRANSACTION.
    This structure is BDCDATA, which can contain the batch input data for only a single run of a transaction. The typical processing loop in a program is as follows:
    ? Create a BDCDATA structure
    ? Write the structure out to a session or process it with CALL TRANSACTION USING; and then
    ? Create a BDCDATA structure for the next transaction that is to be processed.
    Within a BDCDATA structure, organize the data of screens in a transaction. Each screen that is processed in the course of a transaction must be identified with a BDCDATA record. This record uses the Program, Dynpro, and Dynbegin fields of the structure.
    The screen identifier record is followed by a separate BDCDATA record for each value, to be entered into a field. These records use the FNAM and FVAL fields of the BDCDATA structure. Values to be entered in a field can be any of the following:
    ? Data that is entered into screen fields.
    ? Function codes that are entered into the command field. Such function codes execute functions in a transaction, such as Save or Enter.
    The BDCDATA structure contains the following fields:
    ? PROGRAM: Name of module pool program associated with the screen. Set this field only for the first record for the screen.
    ? DYNPRO: Screen Number. Set this field only in the first record for the screen.
    ? DYNBEGIN: Indicates the first record for the screen. Set this field to X, only for the first record for the screen. (Reset to ? ? (blank) for all other records.)
    ? FNAM: Field Name. The FNAM field is not case-sensitive.
    ? FVAL: Value for the field named in FNAM. The FVAL field is case-sensitive. Values assigned to this field are always padded on the right, if they are less than 132 characters. Values must be in character format.
    Transferring data from local file to internal table
    Data is uploaded to internal table by UPLOAD of WS_UPLOAD function.
    Population of BDCDATA
    For each record of internal table, you need to populate Internal table, which is similar to BDCDATA structure.
    All these five initial steps are necessary for any type of BDC interface.
    DATA TRANSFER program can call SESSION METHOD or CALL TRANSACTION. The initial steps for both the methods are same.
    First step for both the methods is to upload the data to internal table. From Internal Table, the data is transferred to database table by two ways i.e., Session method and Call transaction.
    SESSION METHOD
    About Session method
    In this method you transfer data from internal table to database table through sessions.
    In this method, an ABAP/4 program reads the external data that is to be entered in the SAP System and stores the data in session. A session stores the actions that are required to enter your data using normal SAP transaction i.e., Data is transferred to session which in turn transfers data to database table.
    Session is intermediate step between internal table and database table. Data along with its action is stored in session i.e., data for screen fields, to which screen it is passed, the program name behind it, and how the next screen is processed.
    When the program has finished generating the session, you can run the session to execute the SAP transactions in it. You can either explicitly start and monitor a session or have the session run in the background processing system.
    Unless session is processed, the data is not transferred to database table.
    BDC_OPEN_GROUP
    You create the session through program by BDC_OPEN_GROUP function.
    Parameters to this function are:
    ? User Name: User name
    ? Group: Name of the session
    ? Lock Date: The date on which you want to process the session.
    ? Keep: This parameter is passed as ?X? when you want to retain session after
    processing it or ? ? to delete it after processing.
    BDC_INSERT
    This function creates the session & data is transferred to Session.
    Parameters to this function are:
    ? Tcode: Transaction Name
    ? Dynprotab: BDC Data
    BDC_CLOSE_GROUP
    This function closes the BDC Group. No Parameters.
    Some additional information for session processing
    When the session is generated using the KEEP option within the BDC_OPEN_GROUP, the system always keeps the sessions in the queue, whether it has been processed successfully or not.
    However, if the session is processed, you have to delete it manually. When session processing is completed successfully while KEEP option was not set, it will be removed automatically from the session queue. Log is not removed for that session.
    If the batch-input session is terminated with errors, then it appears in the list of INCORRECT session and it can be processed again. To correct incorrect session, you can analyze the session. The Analysis function allows to determine which screen and value has produced the error. If you find small errors in data, you can correct them interactively, otherwise you need to modify batch input program, which has generated the session or many times even the data file.
    CALL TRANSACTION
    About CALL TRANSACTION
    A technique similar to SESSION method, while batch input is a two-step procedure, Call Transaction does both steps online, one after the other. In this method, you call a transaction from your program by
    Call transaction <tcode> using <BDCTAB>
    Mode <A/N/E>
    Update <S/A>
    Messages into <MSGTAB>.
    Parameter ? 1 is transaction code.
    Parameter ? 2 is name of BDCTAB table.
    Parameter ? 3 here you are specifying mode in which you execute transaction
    A is all screen mode. All the screen of transaction are displayed.
    N is no screen mode. No screen is displayed when you execute the transaction.
    E is error screen. Only those screens are displayed wherein you have error record.
    Parameter ? 4 here you are specifying update type by which database table is updated.
    S is for Synchronous update in which if you change data of one table then all the related Tables gets updated. And sy-subrc is returned i.e., sy-subrc is returned for once and all.
    A is for Asynchronous update. When you change data of one table, the sy-subrc is returned. And then updating of other affected tables takes place. So if system fails to update other tables, still sy-subrc returned is 0 (i.e., when first table gets updated).
    Parameter ? 5 when you update database table, operation is either successful or unsuccessful or operation is successful with some warning. These messages are stored in internal table, which you specify along with MESSAGE statement. This internal table should be declared like BDCMSGCOLL, a structure available in ABAP/4. It contains the following fields:
    1. Tcode: Transaction code
    2. Dyname: Batch point module name
    3. Dynumb: Batch input Dyn number
    4. Msgtyp: Batch input message type (A/E/W/I/S)
    5. Msgspra: Batch input Lang, id of message
    6. Msgid: Message id
    7. MsgvN: Message variables (N = 1 - 4)
    For each entry, which is updated in database, table message is available in BDCMSGCOLL. As BDCMSGCOLL is structure, you need to declare a internal table which can contain multiple records (unlike structure).
    Steps for CALL TRANSACTION method
    1. Internal table for the data (structure similar to your local file)
    2. BDCTAB like BDCDATA
    3. UPLOAD or WS_UPLOAD function to upload the data from local file to itab. (Considering file is local file)
    4. Loop at itab.
    Populate BDCTAB table.
    Call transaction <tcode> using <BDCTAB>
    Mode <A/N/E>
    Update <S/A>.
    Refresh BDCTAB.
    Endloop.
    (To populate BDCTAB, You need to transfer each and every field)
    The major differences between Session method and Call transaction are as follows:
    SESSION METHOD CALL TRANSACTION
    1. Data is not updated in database table unless Session is processed. Immediate updation in database table.
    2. No sy-subrc is returned. Sy-subrc is returned.
    3. Error log is created for error records. Errors need to be handled explicitly
    4. Updation in database table is always synchronous Updation in database table can be synchronous Or Asynchronous.
    Error Handling in CALL TRANSACTION
    When Session Method updates the records in database table, error records are stored in the log file. In Call transaction there is no such log file available and error record is lost unless handled. Usually you need to give report of all the error records i.e., records which are not inserted or updated in the database table. This can be done by the following method:
    Steps for the error handling in CALL TRANSACTION
    1. Internal table for the data (structure similar to your local file)
    2. BDCTAB like BDCDATA
    3. Internal table BDCMSG like BDCMSGCOLL
    4. Internal table similar to Ist internal table
    (Third and fourth steps are for error handling)
    5. UPLOAD or WS_UPLOAD function to upload the data from the local file to itab. (Considering file is local file)
    6. Loop at itab.
    Populate BDCTAB table.
    Call transaction <tr.code> using <Bdctab>
    Mode <A/N/E>
    Update <S/A>
    Messages <BDCMSG>.
    Perform check.
    Refresh BDCTAB.
    Endloop.
    7 Form check.
    IF sy-subrc <> 0. (Call transaction returns the sy-subrc if updating is not successful).
    Call function Format_message.
    (This function is called to store the message given by system and to display it along with record)
    Append itab2.
    Display the record and message.
    DIRECT INPUT
    Thanks &regards,
    Sravani

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • Is it possible to share an aperture library with different users using osx server.

    is it possible to share an aperture library with different users using osx server.

    Not really.  You should not be sharing an Aperture library over a network.  It's not designed for that and you'll likely corrupt your library at some point.

  • Sharing itunes with different user accounts

    I just got Windows Vista. I have the latest version of Itunes. I'm trying to set it up so that my wife and I can share songs with different user accounts in Windows. I followed all the instructions. I moved the iTunes music folder to a public folder. But everytime I log off my account and return, itunes can't find the song files. Any suggestions?

    They can be transferred to another iTunes library but not another iTunes account.
    Just copy them.

  • How can i share documents with different users on the same mac?

    How can i share documents with different users on the same mac?

    Shared how? The other users can read the documents or you all can read and write the documents?
    The first is easy just place the documents in /Users/Shared anyone can access the files there and the other users will be able to read them.
    The second is a bit trickier.

  • Can I sync two iPads with different users and email addresses on the same computer

    Can I sync two IPads with different users and email addresses on the same computer.

    yes, just make sure you turn off auto-sync to keep everything organized before you try syncing
    on a pc
    edit > preferences > devices - 'prevent ipads, iphones, and ipods from syncing automatically' needs to be checked

  • ORA-04062 error when running forms with different users

    ORA-04062 error when running forms with different users
    I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
    I wrote a stored procedure to get the data from other user's tables.
    When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
    I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
    My Forms version is 6i with Patch 15.
    Database version is 9.
    Here is my stored procedure:
    TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
    TYPE Open_Curs IS REF CURSOR;
    PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
    Curs Open_Curs;
    i NUMBER;
    BEGIN
    OPEN Curs FOR
    'SELECT Seq_No FROM '|| User_Name ||'.scenario';
    i := 1;
    LOOP
    FETCH Curs INTO Scen_Table(i);
    EXIT WHEN Curs%NOTFOUND;
    i := i + 1;
    END LOOP;
    END Get_Senarios;
    I would be happy to solve this problem. It's really important.
    Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

  • How to login with different User in Portal

    Hi Experts,
    My requirment is quite different here, I want to login with different user in single login.
    My senario is like this for your understading...
    First I have loged in with one user and go to the one customized screens where I have list of all the portal users in a drop down.
    Here I am selecting one User from the list and Click on Submit button...then new window should open with this(selected) user login...
    Can anybody suggest me that what I suppose to do this to achieve this.
    what are parameters new user expects for login?
    what 'll be my approach for this?
    Thanks in Advance,
    Vikas

    Hi Prem,
    Thanks for your answer...
    The URL..
    http://server:50000/irj/portal?j_user=QAEmEsLAComR&j_password=Pa$$word
    it works only when, do this on fresh browser .. if someone has already Logged in and then try to open with different user name then it won't work.
    if I'll change URL with other user in the same browser like this..
    http://server:50000/irj/portal?j_user=demouser&j_password=Pa$$word
    then shows only previous page.
    But my requirement is to open different user page from the already logon user.
    Thanks, Vikas

  • Install CRS and RAC with different users

    I' m tring to install CRS and RAC with different users.
    It is supported but I don't find documentation.
    Have someone experience with this configuration ?
    My question are related to permission/own of voting and ocr file.
    in this configuration is CRS owner or DB owner that run srvctl commands ?
    Thanks !

    Yes it is ... check out the RAC FAQ on metalink, and just as Chris metioned the users will need to have the oinstall group as their primary..
    "Is it supported to install CRS and RAC as different users.
    Yes, CRS and RAC can be installed as different users. The CRS user and the RAC user must both have "oinstall" as their primary group, and the RAC user should be a member of the OSDBA group.
    Modified: 09-SEP-04 Ref #: ID-5769 "

  • Open a new peoplesoft session with different user id and password.

    I am already logged in a peoplesoft session. From here i want to open another peoplesoft session (in different window) with different user and password.
    Can anybody help...?

    The problem you're going to have with this is that in PeopleSoft there are some memory-resident cookies in your browser session that identify your session (jsessionid) to the web server and your identity (PSTOKEN) to the PeopleSoft servlets. With tabbed browsers (Firefox, IE7+) you have to do some "special" things to get them to create multiple browser sessions with distinct cookies.
    For Firefox, you have to create a distinct profile. Do this by closing down firefox and running "firefox -ProfileManager" from the command line. Then you can create a second firefox profile (note: it won't inherit any of your bookmarks or add-ins from the existing profile). Then after starting firefox with your default profile, you can start a second instance of firefox with the command line "firefox -p <mynewprofile> -no-remote. This will start a second instance of firefox with it's own cookies that can independently log in to a second PeopleSoft system
    For IE7 or IE8, it's a little easier. Start your first browser session as normal, and then to start the second session, use the commandline "C:\Program Files\Internet Explorer\iexplore.exe" -new. This will start your second browser instance with a new set of cookies.
    Hope it helps.

  • Execute crs_stat –t with different user

    Hi Xperts
    I am trying to do a monitoring script and I want to execute crs_stat –t with different user than Oracle (DB and Grid owner), I receive:
        CRS-0245:  User doesn't have enough privilege to perform the operation
        CRS-0202: No resources are registered.
    I already register User2 to Oinstall group and I am able to connect to sqlplus with User2.
    This monitoring scripts is going to be part of one monitoring tool, I already integrate other DB monitoring scripts.
    DB: Oracle RAC 11gR2(11.2.0.3) with OEL 5.9
    Thank you for your time
    Regards

    can you try to execute crsctl stat res -t -init using user2 .
    crs_stat command  is deprecated  in 11gR2.
    Thanks,
    http://gssdba.wordpress.com

  • Posting Idocs with different users

    Hi folks,
    I have a simple scenario, File -> PI (7.0) -> ECC (Idoc)
    I would like to know if there is a way to post the Idocs with different users, for example, in the source file a field contains the user that has to post the Idoc, so I'd like to map that user as the one that posted the Idoc.
    Is it possible?
    Thanks in advance!
    Juan

    Thanx Ivan, but you mean Outbound Idocs, or Inbound Idocs?
    Prateek, the issue here is that this is a part of a whole process where are involved many handhelds.
    With this handhelds, first there is an authentication of the users (via RFC) to see if that user has permission or not, and after that, if successful, when PI posts the data fetched from the handheld, they want to know the user that posted that info in ECC (IDOCS); supposing that it was the same user that did the validation before.
    regards,
                 Juan

  • Netweaver SSO with different user id's

    Hi All,
    In our case the Network/portal user id is different from HR system user id and these 2 user id's are different from the FI system user id.
    Current the FI system is outside SSO as we can only have 2 user id's in the logon ticket.
    Can NW SSO 2.0 help in this case(3 different SAP ID's), to enable SSO between the 3 different systems.
    I can see a line in the SSO 2.0 master guide saying "Can be used for SSO even with different user id's", but can't see how. Can you please help me understand if SSO 2.0 would help in my case.
    Thanks,
    Anand

    Hi Samuli,
    Since the 3 systems Portal, HR and FI have different user id. When the user authenticates against the identity provider which of these id's will be store in the X.509 certificate.
    If all 3 id's are stored in the certificate, how can the systems(portal, hr and fi) identify which user id to use to display the user content in the systems.
    Thanks,
    Anand

Maybe you are looking for

  • Table for asset management

    Hi Can anybody please tell me the table for assest like we have table BSID for customers and table BSIK for vendors. Regards Ankit

  • Sqldeveloper and jdeveloper cannot connect to xe service

    I just installed xe on my pc.  I can get into sqlplus create users, tables data etc.  Everything seems to work.  I can also run lsnrctl and everything seems to be ok.  I can also do a tnsping and get a positive response.  sqldeveloper and jdeveloper

  • Java Websphere please help!!

    Hi All, My name is Neil Goff and I work for GCS as a Java Websphere Consultant. I have a number of contract roles across the UK, and a m looking for very strong Java developers, with WPS, WID, XML. If you can help please send me an e-mail: [email pro

  • I am a beginner and i am lost. i don't know how to begin. what should i do?

    i am a beginner and i am lost. i don't know how to begin. what should i do?

  • 10664: Unable to open iPhoto

    I bought the iLife 11 upgrade. iMovie and Garageband works fine, but I get the error message in the subject line above when i try to open iPhoto. I tried to remove all the programs and reinstall (several times) but I always get the same result. Best