Update zlspr and zlsch in ABAP program

Hi to all,
I need a way to update the fields zlspr and zlsch (table bseg) without using bdc and transaction FB09 because I want a possibility to roll back work.  Does anybody know about a FM who supports this functionality or any other way how to solve my problem?
thx and best regards
Johannes

Hi,
thx for your answers - but they didn't really help me. To explain my problem in detail:
We have a foreign SAP system, from which the removement of the payment lock should be triggered. Therefor I need to implement a FM (remote) which can be called from the foreign system and removes the payment lock and changes the payment method. I of course don't want to write to the database directly and don't want to use CALL TRANSACTION because I want the possibility to roll back work if anaything goes wrong. That's the reason why I'm searching for a FM to change these two fields on document position!
best regards
Johannes

Similar Messages

  • Update database outside SAP using Abap program

    Hi guys, I have the following scenario:
    Today, I have an abap program that calls a RFC to update a database outside SAP using Business Connector.
    The problem is that I won't be allowed to use Business Conncetor (and can't use XI too) to access the outside database (SQL Server 05).
    Is possible to update the SQL Server 05 from an Abap program without a Java based connector? Because my main problem is that I can't use Java...
    Thank you
    Robert

    hi,
    you can use the database connection
    >exec
    > native sql statment
    >endexec
    check theese links for generating source code in ABAP
    [How to use INSERT in EXEC SQL ...... ENDEXEC ?;  insert data to external database
    [exec sql help;  read data from external database
    check theese links for configurating of DBCO (DataBase COnnection)
    [/thread/108422 [original link is broken];
    [http://help.sap.com/saphelp_nw04/helpdata/en/df/455ec9747111d6b25100508b6b8a93/frameset.htm]
    hope that is useful.
    Regards
    Marco

  • File to File and then Call ABAP Program and pass file name and location

    Hi
    I am new to PI and am working on the following requirement and some guidance would help:
    A file is picked up from a third party server using FTP and is put in an SAP server in a specific location. After I have put in the file successfully, I need to call an ABAP program and provide the name and location of the file for further processing by the ABAP program.
    Although I am familiar with File to File, how can I add in the ABAP call with the filename and location? I do not want to pass any other information to the ABAP program.
    Thanks for your help.
    Manoj

    I think I get what you're saying. This additional file would have the file and the path in it's content. I would then use this as a source (FCC?) for Mapping with the RFC. Right?
    Exactly and yes, FCC would be helpful
    Would you have a sample OS script to do the above?
    Actually it depends on the operating system on which your PI system is standing. For instance for Windows, you might try with the following as a start point (but I was not able to test it, so I can't guarantee it will do the job):
    cmd.exe /C "%f %F > C:\target_directory\%DATE%_%TIME%.txt"
    In case you needed more, try googling on "windows batch script" or similar.
    Hope this helps,
    Greg

  • Update Trainin and event via ABAP.

    I need to update training and event with external data. Once a month I receive the data in a file. But how can I do this using ABAP? Any good FM’s you can recommend?
    The objects I need to update/create is: Business Event Group, Business Event Type, Course and Person.

    BDC is the answer

  • Differences between ABAP Programming and Dialog Programming

    Can any one explain me the Differences between ABAP Programming and Dialog Programming

    Hi,
    ABAP PROGRAMING:
    An ABAP program consists of individual ABAP statements. Each statement begins with a keyword and ends with a period.
    PROGRAM FIRST_PROGRAM.
    WRITE 'My First Program'.
    This example contains two statements, one on each line. The keywords are PROGRAM and WRITE. The program displays a list on the screen. In this case, the list consists of the line "My First Program".
    The keyword determines the category of the statement. For an overview of the different categories, refer to ABAP Statements.
    You can execute different parts of programs conditionally or in loops using the standard keywords IF, CASE, DO, and WHILE.
    When controlling the flow of an ABAP program, remember that the structure of the program is made up of processing blocks that cannot be nested. This section describes how to control the flow of a program within a processing block. The keywords covered here do not allow you to branch outside the processing block in which you use them. You can regard this as internal control of an ABAP program, as opposed to the external control provided by events in the ABAP runtime environment.
    To control the internal flow of a processing block, you can use control structures to divide it up into smaller statement blocks according to the principles of structured programming.
    DIALOG PROGRAMING:
    This is a classical programming method that is based on dynpros and dialog transactions.
    Classic Application Programming
    Separating the application layer from the presentation layer means that when you run an ABAP application program requiring user interaction, control of the program is continually passed backwards and forwards between these layers. While a screen is ready for input, the corresponding SAP GUI of the presentation layer is active. During this time, the application layer is not active for the application program. Therefore, the ABAP application servers are free for other tasks. Once the user has entered data on the screen, program control passes back to the application layer. Now, the presentation layer is inactive. The SAP GUI is still visible to the user during this time, and it is still displaying the screen, but it cannot accept user input. The SAP GUI does not become active again until the application program has called a new screen and sent it to the presentation server.
    Consequently, if you use this method, you need to divide dialog programs into single dialog steps, with each of these steps comprising the programming logic between two successive screens.
    REGARDS,
    VASAVI.
    KINDLY REWARD IF HELPFUL.

  • Saveing ABAP Program taking too long time

    Hi All,
    I am facing an issue related to saving, activating and deleting any ABAP program, dictionary, screen etc.. When I am creating, saving, activating and deleting any Z dictionary object, any program,  system goes in infinite action and program is unable to save/delete/activate etc.
    Support Pack  for basis and ABAP is 5.
    please help,
    Regards
    Rajesh.

    Hi,
    I would say this is not abap related... try talking to the system admin/basis. Could be database related issue, I'm guessing.
    Bruno

  • Trigger process chain in ABAP program

    Hi Experts,
    We have a requirement to trigger the process chain from an ABAP program. I used the function module RSPC_API_CHAIN_START to trigger the process by passing the process chain name in 'I_CHAIN' and it worked. However, the client wants to trigger this using batch user name as few planners do not have authorization when they executed the custom transaction.
    Based on the return code of the function module I am capturing the status for tracking.
    Please suggest if there is any alternate solution to pass the user name while triggering a process chain in an abap program.
    Thanks and Regards,
    Pavithra

    hi Chintai,
    in bw side, you create a abap program to trigger an event in r/3,
    and include this abap program in your process chain, the abap program like
    CALL FUNCTION 'BP_EVENT_RAISE'
    EXPORTING
    eventid = 'ZRUNJOB_DEL'
    and in r/3 schedule the program to delete previous data with 'after event',
    the event name is same as raise by bw process chain, in this sample ZRUNJOB_DEL.
    hope this helps.

  • Urgent: Calling ABAP Program using JMS

    Hi,
    I have a scenario where legacy system pass some messages to ABAP Program and this program can handle one message at a time (written in that way).
    Now the receiver communication channel is configured to access J2SE adapter. This J2SE adapter stores the message on R/3 system and triggers the ABAP program located in R/3 system.
    Now when multiple messages are coming at a time in SAP-XI and processed successfully and handover to J2SE adapter. But J2SE adapter triggers the ABAP program for all messages. And here is the problem. ABAP program is not supporting multi - threading.
    my idea is to use JMS adapter...can you guys suggest me how to achieve result and how to configure JMS or any other adapter to call ABAP Program so that only one message will pass to ABAP program at a time.
    Regards,
    Gourav Khare

    Hi,
    First find out where your ABAP program the data written.You need to write it into and spool then only you can see it.
    Transaction SP01, you can use the FM 'GET_PRINT_PARAMETERS' in your abap program to write to spool.
    Thanks,
    Ravi

  • ABAP Programming error UNCAUGHT_EXCEPTION

    HI All,
    I am trying to install BI content  infocube with grouping before and after
    Category               ABAP Programming Error
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_RSD_INFOPROV_NOT_FOUND
    ABAP Program           CL_RSO_EXCEL_WORKBOOK_PROXY===CP
    Application Component  BW-WHM-MTD
    Date and Time          02.01.2007 04:42:08
    SAP Release..... 740
    SAP Basis level 0005
    Regards
    Kuzhanthaivel

    Hi,
    you can install one by one.
    if your facing any problem use the do only necessary objects
    please find the below doc it will give an idea.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?overridelayout=true
    Thanks,
    Phani,

  • How to include an ABAP program in process Chain

    Hello Gurus,
    I have a situation where I have to go to SE38 and run an ABAP program which fills the active table of ODS2 by taking data from another ODS1.The data from ODS2 is again fed to another ODS3. So my question now is how do I create a process chain which takes care of this scenario.Especially include ABAP program in the process chain.Looking forward to your replies.
    Regards,
    Kalyan

    hi,
    take a look 'how to' ABAP in process chain
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7

  • Print the result of an ABAP Program (in an infoset) in a ABAP List viewer.

    Hi ,
    Here is my question :
    I have created an user group in SQ03
    I have created an infoset in SQ02 and a query in SQ01.
    In my infoset I have a piece of program which looks like that :
    SELECT  EVVERTRAG EVBSTATUS EVANLAGE EVVKONTO EV~EINZDAT
    EVAUSZDAT EVCOKEY ETABRDATS ETABRVORG ETSPARTE ETTRIGSTAT
    ETABLEINH EUIINSTLNINT_UI EUITRANS~EXT_UI
    INTO (T_OFB-CONTRAT,T_OFB-STATUT_TRAIT,T_OFB-INSTAL,T_OFB-CMPTE_CONTRAT,
    T_OFB-DATE_IN,T_OFB-DATE_OUT,T_OFB-GSR, T_OFB-DATE_CALCUL
    ,T_OFB-OPE_CALCUL,T_OFB-SECTEUR,T_OFB-STATUT_ORDRE,T_OFB-UNITE,
    T_OFB-CLE_PDL,T_OFB-DES_PDL )
    FROM ( ever as ev inner join etrg as et
    ON evanlage = etanlage )
         inner join  euiinstln
         ON euiinstlnanlage = evanlage
         inner join euitrans
         ON euitransint_ui = euiinstlnint_ui
    WHERE ET~TRIGSTAT = '2'
    ORDER BY EV~ANLAGE.
    This program works fine, but when I create my query, I can just see the result in abap list.
    When I choose "abap list viewer" or "Excel format", the result is more like :
    " select * from  all tables "
    Is there a way to show the result in the viewer ?
    I added a "WRITE :/ <column1>, <column2>, but the result is the same.
    I also wonder if we can do a "group by " in ABAP.
    And do you know how to make a condition " where my_date < today -19 days" ?
    Thank you in advance for your answers.
    I've been around the others posts and you did such a great job.
    Laurent.

    hi Chintai,
    in bw side, you create a abap program to trigger an event in r/3,
    and include this abap program in your process chain, the abap program like
    CALL FUNCTION 'BP_EVENT_RAISE'
    EXPORTING
    eventid = 'ZRUNJOB_DEL'
    and in r/3 schedule the program to delete previous data with 'after event',
    the event name is same as raise by bw process chain, in this sample ZRUNJOB_DEL.
    hope this helps.

  • Trigger a waiting ABAP program from a User Exit of CO01

    Hi all,
       We would like to launch a ABAP program from a User Exit (EXIT_SAPLCOZV_001) of CO01, this ABAP program has a special characteristic: using Function Module RFC_PING_AND_WAIT, so this program will be existing until terminating event coming.
        Our purpose is terminate CO01 normally before finishing of ABAP program. We don't know if it's possible?
        Actually:
           1. when we use SUBMIT ..., the process will stop CO01 (stop not normally) and then launch ABAP program. => This is not suitable for our purpose.
           2. when we use SUBMIT ... and RETURN, CO01 will wait for finishing of ABAP program => This is not suitable for our purpose too, because we wish CO01 terminated normally when ABAP program is still existing and waiting for its terminating event.
    Do you have a solution that is suitable for our purpose, could you please help us?
    (The context is below:
    Time:  Begin-->CO finished> ABAP finished-->    
       Launch CO01 --> Call User Exit --> Call ABAP program for waiting --> CO01 saved normally.
    > ABAP program still waiting ---> waiting for terminating event       
    Thanks a lot,
    Vinh Vo

    Hi,
         Try with the function module BP_EVENT_RAISE, it takes eventid, and eventparm as import parameters in the User exit.
    1) With Eventid, you create a background job of the ABAP program and schedule it. Eventparm can be the Production order number.
    2) So when ever the Event is triggered the FM gets triggered and which in turn run the ABAP program, so the foreground the CO01 transaction runs without waiting for the ABAP program to complete.
    Regards
    Bala Krishna

  • How to run ABAP programs in another client?

    Hi:
    If one user wants to run his ABAP program that resides in Client 900 with the data in Client 500, can he do it? both the clients reside in the same SAP system (the same physical SAP server).
    If you've some idea about this, please help.
    Thuan Nguyen

    Hi Christoph:
    Thanks a lot for your help on this.
    If the Client 900 is for ABAP development (the user creates ABAP programs inside this client) and the Client 500 stores the data, can the user log in the client 500 and run his ABAP programs in Client 500?
    Thanks
    Thuan Nguyen

  • RRI calling Web Browser instead ABAP program

    Hi All,
    I have created a RRI to call an ABAP program. However, when I try to call the ABAP program (via GOTO) it opens a web browser.
    If I execute the same query via RSRT, and call the ABAP program it works fine.
    I have also create another RRI to call another query from within BEx and it works fine.
    It only fails when calling ABAP program from BEx.
    I have read on to apply SAP NOTE 972514 - Set the ms/redirect_version parameter to value 1 and restart your ABAP Web Application.
    My ms/redirect is already = 1
    Any ideas?
    Thanks,
    Flavio

    I do have authorization. There is no error. It just open a internet explore (URL) instead of executing the ABAP program.
    Again, if I run the query via RSRT, it works just fine.
    Any ideas?
    cheers,
    Flavio

  • Update rule and comm_strucutre error.

    dear all,
    i want to read field 0material from my update rule and do some abap coding with it but i keep getting this error
    E:Field "COMM_STRUCTURE-COMPUTE_0MATERIAL" is unknown. It is neither in
    one of the specified tables nor defined by a "DATA" statement. "DATA"
    statement. "DATA" statement.
    i'm using a virtual infoprovider with direct access to the datasource via DTP. how can this be solve?

    got it, source_fields-material

Maybe you are looking for

  • Linking Tables to Oracle Views

    I am not able to see the PKs in MS-ACCESS after creating a linked table to a view within Oracle. The views were created using Select * from the base table which is a materialized view. No WHERE clause in the view. Also, why do I get an error when cre

  • Mail 2.1: "Sent" folder lost its content - how to get it back?

    Hello: I've scoured the forum, but couldn't find an answer to my pb. After a series of crashes (that I couldn't explain), my "sent" folder cannot reconnect with its source folder in ~/Library/Mail. This is probably because I trashed the preferences f

  • Officejet 4500 G510g

    New printer has been connected to Window Vista for several months; no changes made to system. Getting msg that Officejet 4500 series disconnected. Ethernet cable is fully connected; have uninstalled and re-installed software. Have run scan doctor whi

  • IDoc filter not working

    Hi, I've created a filter on my reduced message type from MATMAS in BD64. I'm filtering based on Plant (WERKS). But it isn't working... It sends out all plants using my message type. Is there some step that I've missed out??? -Vartika

  • I can't get my 4:3 clip to not be squashed by the 16:9

    I have a screen capture movie from my iPad that I am trying to edit in iMovie, but it insists on importing it as a 16:9 and squashing it.  I've read through all the threads here about going to Adjust -> Crop -> Fit to put black bars around it, but wh