FORM USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ fails in Background

Hi all,
In Include RV60AFZZ , I have added my code in
FORM USEREXIT_PRICING_PREPARE_TKOMP to Deactivate Condition types for FPD process . I activated the code. Now when I create a delivery doc (via Vf01), it gets created and saved if I do it in the fore ground, but it fails if I schedule it as Back ground job. Is this because the Include doesnt have the SAVE_DOC User exit.Please elaborate if you have any suggetsions as to why it is failing in the Background and what will be the other options to make it work in the Back ground.
Thanks,
Raj

The parent prog of RV60AFZZ. is SAPLV60A.(Pl do check it)
in the sample given we are basically accesing a variable from another program in memory and getting its value via our local field symbol <fs>
if we take program SAPLV60A. then it will be:
field-symbol <fs> type any.
data myfield_name(40) type c value '(SAPLV60A)VBRPVB'.
assign (myfield_name) to <fs>.
now move like this:
MOVE <fs>-ZZKVGR6 TO TKOMK-ZZKVGR6.
this way <fs>-ZZKVGR6 will have the value which is in VBRPVB-ZZKVGR6 .
hope you understood.
but as happens with field symbols this can onl be checked at run time only.
regards.

Similar Messages

  • BAPI_DOCUMENT_CREATE2 fails in Background

    Hi everyone,
    I wrote an ABAP-report calling BAPI 'BAPI_DOCUMENT_CREATE2'.
    This ABAP has to create a document and upload files per FTP into DMS (Checkin)
    Works Online fine (cause the BAPI avoids FTP as a GUI is online available)  but miserably fails in background:
    Message: RFC callback calls are not allowed in the ABAP...
    This message comes from a failed call of the FM 'SYSTEM_START_REG_SERVER'
    in the FM  'CV120_FTP_START_REG_SERVER' as described in an old thread (Error in Check in of Originals by BAPI In background)
    Sample of the BAPI-call:
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata         = documentdata
          pf_ftp_dest          = 'SAPFTPA'
        IMPORTING
          documenttype         = documenttype
          documentnumber       = documentnumber
          documentpart         = documentpart
          documentversion      = documentversion
          return               = return
        TABLES
          documentdescriptions = documentdescriptions
          objectlinks          = objectlinks
    *      documentstructure    = documentstructure.
    *      documentfiles        = documentfiles
    *      documentstructure    = documentstructure.
          documentfiles        = documentfiles.
    I tried a lot, even in 2 steps (first create the doc per BAPI, second checkin per call of CVAPI_DOC_CHECKIN)
    but in everycase, i always get the same problem...
    Any help will greatly be appreciated : i daily and manually (ok, even if 1 report launch per day is sufficent) have to upload aprox.
    2000 PDFs ...
    Thanks in advance for answering...
    Edited by: Guillaume Delorme on May 5, 2010 11:08 AM

    Hi everyone,
    Due to holidays, i gotta  post under another account...
    There was a logical mistake in my problem:
    -> i thought i had to do the physical checkin of the files while or after the BAPI_DOCUMENT_CREATE2-call.
    In my case, the content-server is reachable from the app-server as it's been defined in the AL11.
    The content-server is directly defined in table TDWD with complete directorypath as a vault-server (NO DVA-VAULT).
    The SAP-FBs do actually handle two cases for file-checkin that can suit my concern::
    -> DVA-Vault?->FTP-Connect for filetransfer
    -> No DVA-Vault? ->Local GUI-Upload  for filetransfer
    For background-processing fails always the GUI-Upload -> normal
    I don't use any DVA-Vault -> i must do something else.
    Solution: Ridiculously easy...
    *-> FIRST :Physical Checkin over a stupid TRANSFER DATASET for the file.
    *If OK:
    *->SECOND: Call of  BAPI_DOCUMENT_CREATE2 with reference to the transferred File
    *      ->Structure BAPI_DOC_DRAW2:
    *          -> Short Dataname in BAPI_DOC_DRAW2-docfile1
    *          -> Datacarrier in BAPI_DOC_DRAW2-datacarrier1 (actually the key for the VAULT-server)
    *          -> App.type in BAPI_DOC_DRAW2-wsapplication1.
    *          -> Description, Documentype, username, laboratory are must-fields with my customizing too.
    *       ->Internal Table BAPI_DOC_FILES2:
    *          -> Short Dataname in BAPI_DOC_FILES2-docfile
    *          -> Datacarrier in  BAPI_DOC_FILES2-storagecategory (actually the key for the VAULT-server)
    *          -> App.type in BAPI_DOC_FILES2-wsapplication.
    *          -> no other fields required for this table
    *       ->(...)
    *endif.
    Now it runs fine every 5 minutes and i handle about 3000 documents a day...
    I give points to Phillip van den Heever who reminded me the AL11-Setting and i mark this topic solved as soon as i can...
    Thanks to everyone and greets,
    Guillaume Delorme

  • Viewing form in Preview Mode Failed. Error: Table not found  [131-183]

    Hi,
    I have created a user form in screen painter in SBODemo. Created UDT, UDF & Registered UDO through my SDK code.
    Everything works fine.
    But when i run my addon on any other DB, and open my custom form it gives an error : Table Not Found.
    I have checked the UDT's , UDF's & my UDO, all are in place and getting created in the DB.
    I tried checking the Form again in screen painter everything is in line. But when i try preview in screen painter it gives an error
    Viewing form in Preview Mode Failed. Error: Table not found  [131-183].
    I can't figure out the issue, i have checked my codes & forms many times.
    Regards
    John

    hi john smith,
    Check your screen painter, probably some fields are defined without the "@" character in front.
    for fields, check the "U_".
    nd.Q

  • Getting "oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed

    Hi All,
    Please help me in the following Scenario.
    For the Oracle Forms, I am writing java program in JDAPI(Java Development API) to create a DataSourceColumns for the Base Block with out touch the form manually.
    i wrote the following code to create DataSourceColumns for the Block...
    JdapiIterator blkcolmap = block.getQueryDataSourceColumns();
    /* block is an object which points to block of the form */
    while(blkcolmap.hasNext())
    DataSourceColumn colmap1 = (DataSourceColumn)blkcolmap.next();
    try{
         if(!blk1.getQueryDataSourceName().equals(""))
    {                                              DataSourceColumn colmap2 = new DataSourceColumn(blk1,colmap1.getDSCName());
    colmap2.setDscName(colmap1.getDscName());
    colmap2.setDscLength(colmap1.getDscLength());
    colmap2.setDscPrecision(colmap1.getDscPrecision());
    colmap2.setDscScale(colmap1.getDscScale());
    colmap2.setDscType(colmap1.getDscType());
    catch(Exception e)
    System.out.println(e);
    When i run the above code... every time the exception raises and got the following error.
    "oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed"
    How can i solve this problem

    Hi,
    thouh you use Java, I suggest to post this to the Forms forum
    Forms
    Frank

  • Bug in Tabular form Not Exist Validation, fails when creating multiple rows

    Hi,
    I have a Not Exist validation created for a Tabular form:
       select 1 from my_table where col1 = :col1 and col2 = :col2Execution State: For created and Modified Rows
    which is working fine when a row already there in DB
    and I am trying to enter a new row with same data.
    but when there's no data and I enter two rows with same data, validation does not fire, first row should allowed to enter
    but for second row it should give error that data already exists, which is not happening.
    for example,
    let's say I have a row in DB with: 1, 2, 3
    when I try to add a new row with same data ie. 1, 2, 3 validation fires and showing error, which is fine.
    but let's say there's no data in DB and I am entering two rows with:
    1, 2, 3
    1, 2, 3
    validation is not working this time, it is allowing to enter both the rows.
    do I need to create a manual validation for this or what?
    Apex 4.1.1.00.23
    Regards,
    Tauceef
    Edited by: Tauceef on Dec 6, 2012 10:09 AM
    Edited by: Tauceef on Dec 6, 2012 11:22 AM
    Edited by: Tauceef on Dec 6, 2012 11:27 AM

    Hello Tauceef,
    >> Now I got it, I was under impression that it will validate one by one row before insertion,
    >> but it's going to check all the rows first, then do the insertion.
    Just to clear things up, the APEX engine works exactly as you describe, but this is your problem.
    The APEX engine do check\validate all the rows first, one row at a time, and only if all the rows pass validation, the DML processes kick in. The DML processes work on the entire Tabular Form record set (per page view, of course).
    In order for your type of validation to work (the one that queries the database), as you want it, the validation and DML actions have to run together, row by row. This is not how things work, because it’s less efficient/optimal, and may lead to a situation where a certain row can fail validation, but other row(s) already been inserted/updated/deleted into/from the database. This could be a very tricky situation.
    Vikram has suggested to rely on a database constraint, and control the APEX error message. This is possible, although I’m not sure that in this case, the Tabular Form will retain all the user changes, in case of validation error. You should check it.
    Another option, which Marc hinted on, is to manipulate the G_Fxx arrays. In your case, you should loop through the new rows, compute their MD5, and make sure that all the rows have different MD5 values. This is on top of the current validation, which makes sure that the new rows do not already exist in the database.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • BAPI_DOCUMENT_CREATE2 failed in background

    Hi experts,
    when i using this BAPI to create document, it works fine if executed on line. but when executed in background, it failed saying that 'Error while checking in and storing: &'.
    the file is already on the application server like:
    Erpr3d11\apps\SAP\PM\IMAGE\abc.jpg
    can anyone help me? thanks a lot in advance!

    Hi Wei,
    as you have marked this question as solved, I would kindly ask you to post if you have found a suitable solution for your requirement and how it was realised. This will help all other forum users to get similar issues solved too.
    Best regards,
    Christoph

  • External commands fail in Background Jobs on Application server

    Hi,
    We are having problems with jobs that include External Commands. The jobs run successfully if on the Central Instance. But if they run on either of the two Application Server's it fails with 'Unable to connect to Target Host' error message.
    I can run the External Commands from SM49 on both AS's. But as soon as its run in background it fails.
    I have read the rfcexec.sec file needs to be in the .\work directory on the application so I have this in place.
    This is what gets written to dev_w0 when the failure occurs :
    M  *****************************************************************************
    M  *
                                                                                    M  *  LOCATION    SAP-Gateway on host <APP_SERVER> / sapgw75
    M  *  ERROR       timeout during allocate
    M  *
                                                                                    M  *  TIME        Fri May 30 11:20:34 2008
    M  *  RELEASE     640
    M  *  COMPONENT   SAP-Gateway
    M  *  VERSION     2
    M  *  RC          242
    M  *  MODULE      gwr3cpic.c
    M  *  LINE        1795
    M  *  DETAIL      no connect of TP sapxpg from host <CENTRAL_INSTANCE.domain>
    M  *              after 22 sec
    M  *  COUNTER     483
    M  *
                                                                                    M  *****************************************************************************
    M
                                                                                    A  RFC 1446  CONVID 48742194
    A   * CMRC=27 DATA=0 STATUS=0 SAPRC=242 ThSAPECMINIT
    A  RFC> ABAP Programm: SAPLCRFC (Transaction: )
    A  RFC> User: <USERNAME> (Client: 300)
    A  RFC> Destination: %_TCPIP_%1 (handle: 2, , )
    A  RFC SERVER> RFC Server Session (handle: 1, 48741194, {C4A35AF0-2F4C-4E36-98C3-9999A6FE99D7})
    A  RFC SERVER> Caller host: iblonc4306_P75_75
    A  RFC SERVER> Caller transaction code:  (Caller Program: RSBTCXPG)
    A  RFC SERVER> Called function module: SXPG_STEP_COMMAND_START                                
    I'd really appreciate any suggestions on how to fix this issue??
    Thanks,
    Kye

    Hi Siddhesh,
    Thank you for your prompt response. I'm confident all of the prerequisites are set correctly.
    I have enabled the trace on SAPXPG but its only writing to the log dev_cp and dev_xpg when the command is executed successfully.
    For example, if I use SM49 to run the External command from one of the Application Servers dev_cp & dev_xpg  are updated and the command completes successfully. However if I run the job (that has the external command as a single step) from SM37 it fails and doesn't log anything to dev_cp or dev_xpg??
    Is this normally how the trace would work?
    Thanks again,
    Kye

  • Forms load balancing and fail-over

    Using cisco context switches instead of metric server/metric client. Having trouble making forms fail-over when a 9ias server fails. Has anybody done this?
    If so, how?

    Using cisco context switches instead of metric server/metric client. Having trouble making forms fail-over when a 9ias server fails. Has anybody done this?
    If so, how?

  • FTP connection failed in background

    Hi Folks,
        I'm connecting from SAP system to a FTP server using the FTP program. When I'm connecting to the FTP server through the RFC destination SAPFTP its working fine i can connect to the server however I have to run the program in the background mode so I cannot use the SAPFTP rfc destination as it can run only on the foreground so in my case I'm using the RFC destination SAPFTPA as this is the RFC destination which can be used in the background mode.
    The problem arises here when I'm using SAPFTPA in place of SAPFTP as I have to run the program in background. When I'm using the RFC dest SAPFTPA I'm getting an error saying "Attemp To Set Up Connection To 179.65.23.203 Failed" however the connection is successful when the RFC dest SAPFTP is used.
    Please provide your valuable inputs.
    Regards,
    Santosh

    You may need to write a small utility and runs in background and check
    report zaRs message-id 04 line-size 132.
    tables: rfcdoc.
    data: rfc_mess(132),
    call function 'RFC_PING' destination 'SAPFTPA'
      exceptions
        system_failure        = 1  message rfc_mess
        communication_failure = 2  message rfc_mess.
    if sy-subrc ne 0.
      write: / 'Errors', rfc_mess.
    endif.

  • Using Document form varable results in failed unmarshalling message java.io.eofexception

    Hi,
      I'm on LiveCycle ES 8.2. For PDF submit forms from workspace, I assigned the servername for submit as URL:
    http://adobe1234:8080/workspace-server/submit.
    We are using Document Form variable for this process. The reason is the forms will be digitally signed at each stage and we dont want to loose their signatures if forms go next stage.
    This works perfect when I submit the form.
    Now, we will be moving all the existing instances to new server and I want this URL to be server independent.
    I take off this URL and kept it blank and try to submit from workspace. Nothing happens if I click submit and the form stays at the same place.
    I see the following error in the log file:
    2012-03-29 15:07:17,541 ERROR [org.jgroups.protocols.UDP] failed unmarshalling message
    java.io.EOFException
              at java.io.DataInputStream.readShort(Unknown Source)
              at org.jgroups.Message.readFrom(Message.java:630)
              at org.jgroups.protocols.TP.bufferToMessage(TP.java:973)
              at org.jgroups.protocols.TP.handleIncomingPacket(TP.java:829)
              at org.jgroups.protocols.TP.access$400(TP.java:45)
              at org.jgroups.protocols.TP$IncomingPacketHandler.run(TP.java:1296)
              at java.lang.Thread.run(Unknown Source)
    I have to avoid using this URL in the form as I will be moving my system to new domain & DNS and for any existing process instances, if they try to submit the form, that will error out as the URL is pointing to another server.
    Your help is highly appreciated.
    Thanks,
    kc

    I don't think I read your first post thoroughly. I see now you are setting the URL to prevent the form from appearing altered. I don't use digital signatures, but can see the potential problem. My first thought was to put JavaScript in the form to set the URL, but that would likely cause the same problem. I probably can't be of much help with no experience using the digital signatures. Our forms are considered 'Signed' if a logged in user clicks approve. Have you deleted the Form Bridge and readded? There may be differences with the one in ES2.
    I think you are also saying you can't set the URL server side before rendering the form because processes will launch under one domain then get changed later.
    If you were able to use JavaScript to determine which URL to submit to, you could put that code in the Form Bridge code and I would think that would submit. The form is not being altered by the code. This is assuming the code snippet I copied out of the form bridge is really what is called.
    /** Invoke the standard Submit action */
    function submitAction(doc, url, type) {
        if ( BRIDGE_SUBMIT_URL  != null ) url  = BRIDGE_SUBMIT_URL;
        if ( BRIDGE_SUBMIT_TYPE != null ) type = BRIDGE_SUBMIT_TYPE;
        if ( type == null ) type = "PDF";
        if (url != null) {
            setFocus(null);  // force current field focus out in 8.1 + readers (null op in previous versions)
    //      doc.submitForm({cURL: url, bEmpty: true, cSubmitAs: type, cCharset: "utf-8"});   
            doc.submitForm({cURL: url, cSubmitAs: type});   

  • How do I return to the top of a form when input validation fails?

    I have a form that I am using spry input validation that I
    would like the user to be returned to the top of the page when
    validation fails. If that can't be done somewhat easily, can I have
    a message appear next to the submit button that says "Errors found.
    The field(s) marked in red need to be corrected" when there are any
    errors that prevent the form from submitting.

    The break statement in Java is similar to last in Perl.
    The continue statement in Java is similar to next in Perl.

  • Read-only forms work great - page fails to load on interactive form.

    we have a weird issue.
    we moved all our Adobe development (which was all new) to our QA environment.
    Our 1 interactive form fails to even display, while all the other read only forms work fine.
    I changed my interactive form to ENABLED off (unchecked) and moved it to QA - and it displays fine. I changed ENABLED = checked, and it's not working.
    any ideas?

    chintan,
    we figured this out late yesterday - I was selecting all the business partners for a drop-down list in the form . It turns out another developer loaded 30k business partners in RPM. So, this was causing the form to blow up.

  • Adobe form printing on letter head as background

    Hi,
    I have developed BANK letter in HR  using adobe forms.
    Now user want to get PDF  on letter head .
    How to get background as letter head. I want to select differnt letter head PDF depends on company code (BUKRS).
    Where to write condition checking fo rcpmpany cod waise letter head .
    Please do reply.
    Its urgent.....

    Hi mrudul,
    as usual in programming, you got different ways to solve the problem. So if you work through the content here on SCN you will find a lot of examples how to decide between different letter heads. The easiest solution (and might be the best) is to pass the necessary data via the interface and do not add any condition in the form itself.
    How to create a dynamic field and all the stuff is very basic knowledge, so I think you do not need any explaination how to do that. If so I refer you to the official documentation provided by SAP.
    If you have some minutes please work through this blog Before You Ask - Just another guide and phrases like "urgent" or "do reply" are just not necessary to get an answer
    ~Florian

  • Firefox won't print 'highlights' made by a marking tool on a form. I have enabled 'Print backgrounds' options and the yellow image overlays print fine in other browsers. Is this a setting within windows 7?

    I am trying to print a document through Firefox. We have a Form view / marking tool to make these image overlays to make highlighted boxes on the document.
    It prints the yellow 'highlight overlays' fine in all other browsers and in OSX using firefox, but the highlighted boxes won't print in Firefox using Windows 7.
    I have the 'Print backgrounds' option checked in Firefox settings.
    Please advise.

    I am trying to print a document through Firefox. We have a Form view / marking tool to make these image overlays to make highlighted boxes on the document.
    It prints the yellow 'highlight overlays' fine in all other browsers and in OSX using firefox, but the highlighted boxes won't print in Firefox using Windows 7.
    I have the 'Print backgrounds' option checked in Firefox settings.
    Please advise.

  • DI Webservice - Response not well-formed XML & OBServer.dll failed extract

    Hi,
    My company just implement SAP B1 this year.
    So far, we encounter 2 issue :
       1. Every month we encounter "Response is not well-formed XML" using DI Server Webservice.
       2. Failed to extract OBServer.dll from CAB file (encounter also once a month)
    For issue 1, restart DI Server service will not help.
    I need to reboot the Windows OS to make it work again.
    For issue 2, restart DI Server service will help to solve the problem.
    But the question why this happening ?
    Please help.
    Thanks.

    Hi,
    To begin troubleshooting, you may check any monthly applications' running like update or anti-virus.
    Thanks,
    Gordon

Maybe you are looking for

  • Issues adding a second 4402 wireless controller

    I currently have 1 4402 wirless controller that is controlling the 17 APs I have in our corporate office and 18 APs we have in a warehouse 10 miles away. The warehouse has all of the APs set to H-REAP so that they can connect across the WAN to reach

  • Reset e3000 now can't connect to internet

    i was having issues with one of my devices after a power outage.  all my other devices worked (laptops, xbox, iphones, etc) i thought doing a reset on the router would get the odd device working again but all it did was mess up my internet.  i don't

  • Itunes wont stop backing up, need to update, where's my music?

    This is the first time i have used itunes on the computer.  The only reason i did is because my Iphone 4 needs the last 2 updates.  Some of my apps stopped working because of it.  So i downloaded Itunes & loaded my music on to the computer, which for

  • Change text size and colour of report values ?

    Hi, I have a formula as part of a BEx query in version 3.5 and I'd like to make the values of this formula stand out more by either changing the text size of this one row and/or changing the colour. I've already selected the "highlighting" option but

  • Moving already backed-up data to different drive

    Hi all - I have about 700gb of videos that I want to move off my iMac's internal hard drive onto an external drive. The videos have already been backed up with Time Machine. After I move the videos to the external drive, I want to continue backups on