Scheduling transaction VCC1

Hi all,
  I want to schedule transaction VCC1 to run daily in background. The normal flow has the following steps in it.
1. AFter selection screen, the report executes and generates a list of sales documents with pending authorization with checkboxes for each.
2. I need to select all check boxes on screen.
3. Click forward for authorization button on toolbar. This will grey out all documents and checkboxes.
4. Press SAVE button on standard toolbar.
5. Finally report generates an ALV list which i need to send to spool.
   If I automate this process by BDC, the problem is the report selection screen - as I do not have any fixed values that i can record my BDC with, that is, values for variants and variant may keep changing. This can be a problem as user can enter patterns like >=, < or exclude or any combination in selection criteria.
  Secondly - If I schedule this report directly in background the report seems to stop after display a list with checkboxes - so now how do i trigger user events like selecting all checkboxes, pressing save button, etc. I tried in SM36 by defining multiple steps and multiple reports using set user command <funciton code>, but unsuccessful. I think it can be possible to trigger events of one program from other abap program ??
  Kinldy guide me

Hi Srinivas,
  I found a problem. The program RV21A010 is desinged just for authorization of orders. If I want deliveries, I specify a delivery document then it does call delivery function module but considers it to be an order document.
  Also the function it calls is just 1, while VCC1 goes through more systematic process by calling many. Only the last function in both the programs is same.
It is my understanding the RV21A010 – with regards to deliveries, is used to process the order to get the next Authorization for subsequent shipments (but not necessarily the actual delivery documents themselves)-even SAP documentation might be wrong in this case - some translation error.
Again, what we need the VCC1 custom work for is to process Delivery Documents that have insufficient authorization – based on the product that was selected to get shipped for the order and the fact that someone chose to ship more than SAP expected and authorized the CC for.
Any inputs will be appreciated - because If I need to use your suggestion then I need to proove that the results from VCC1 and RV21A0101 for deliveries are same.

Similar Messages

  • Custom Attributes for Scheduled Transactions (Background Jobs)

    Hi,
    I am trying to fetch the custom attributes for scheduled background jobs. Since we are not using the XAcute Queries to run the automatic jobs, we can't use the AUTOBIND property for custom attributes and hence can't fetch them in the scheduled transactions. Is there any way to retrieve the attributes while scheduling a transaction ?
    Thanks,
    Amit Rath

    Hi Amit,
    a way that works: inside your transaction you can call a XML query that reads out the property list for a given user. In the URL of the XML query you can add the user by using the IllumLoginName parameter.
    - create a XML query with the following URL:
    http://<server>:<port>/XMII/PropertyAccessServlet?mode=list&Content-Type=text/xml&IllumLoginName=<User>&IllumLoginPassword=<Password>
    - in your transaction, call the query. You can retrieve the value of the attribute with a XPath expression like this:
    XML_propertyAccessServlet_0.Results{/Rowsets/Rowset/Row[Name='MyAttribute']/Value}
    Interestingly, adding a User / Password in the Scheduler Editor of the job does not work (MII 12.0.2). Maybe this would be also an option for you to try.
    Michael
    Edited by: Michael Otto on Nov 9, 2010 8:27 AM

  • Error while posting XML from a scheduled transaction to another transaction

    When I try posting an XML from one transaction to another in a different project by calling it as a webservice, it doen't hit the other transaction.
    I see this in the Netweaver error logs:
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:111)
    at java.util.zip.ZipFile.<init>(ZipFile.java:127)  [see details]
    XML AssignXml Parse Error
    [EXCEPTION]
    org.xml.sax.SAXParseException: Premature end of file.... [see details]
    AND
    [Fatal Error] :-1:-1: Premature end of file.
    More interestingly it happens ONLY when I schedule the parent transaction, when I trigger it manual everything works fine.
    Any help appreciated.

    Hi Srinivas,
    I see that this post was marked as answered. Could you please elaborate on how this problem was fixed?
    I am experiencing a similar issue:
    I am trying to get the Active Portal application running in MII 12.1.7 (also 12.1.8) and all went well up to the point where the ActivePortalMonitor transaction is scheduled. In the logs I also receive the  org.xml.sax.SAXParseException.
    The culprit is the XMLQuery block in that txn. Just like with your situation, when ran from workbench it works; when scheduled it doesn't.
    I tried replacing the XMLQuery with other blocks that get the same result, i.e. XMLLoader or HTTPLoader + StringToXMLParser; and in all cases the XML fetching element bombs out.
    I also built a simple txn that does an XMLQuery on another txn and then dumps the output in a file. Same thing: when run from workbench it runs fine; from scheduler it gives "SAX" error
    I would post the specific error log, but it is always varying, here is one example:
    [ERROR] [Untitled_0]org.xml.sax.SAXParseException: Open quote is expected for attribute "DIR" associated with an element type "HTML".
    Any help/hints are much appreciated
    Kind Regards,
    Fanie

  • Issue in scheduling transaction MEMASSPO.

    My task is to set the delivery complete indicator in the purchase order line items.
    I can save a variant for the transaction, but how to select the fields in the variant.
    Do you have any idea.
    Thanks,
    Seshadri

    Thanks,for the info.
    I have done as you suggested,but when I do the background scheduling,how to pass the field values.
    for example : delivery completed  = X.
    system does not ask me anywhere during creation of the JOB or during saving of the variant.
    During on line execution,where system will ask for the changing of field values.
    Can you please help me in understanding.
    Thanks,
    Seshadri

  • HTML Loader & Scheduled Transactions

    Hi Experts,
    Clearly I'm missing something, but can't figure out what.  Perhaps someone can help me...
    Am using 12.0.7.  To simulate my actual problem, I created a simple stub transaction with 2 action blocks:  an HTML Loader action block that loads a report from the server and outputs resulting HTML file to a data file. 
    If I run this from the inside the Workbench I get an HTML file as expected.
    But, if I create a schedule that executes this same transaction, the HTML file returned is BLANK (as in stringlength(StringContent) = 0).
    Can anybody offer any insights?  Is this a security-related thing?
    Thanks in advance,
    Dave

    Jeremy:  I'm calling the following URL:
    server://logon/logonServlet?redirectURL=/XMII/Illuminator?%3FReportType%3D1%26QueryTemplate..........text%2Fhtml&j_user=<myUsername>&j_password=<myPassword>
    where myUsername and myPassword are hardcoded temporarily.  I've tried adding credentials to the HTML Loader action.  As far as I can tell, I'm performing all of the authentication best that I can.  Does the "server://" switch lose context when run in this manner?  As I mentioned, the TRX works fine when I run it through the Workbench, so the URL syntax is valid at least in that context.
    Obu:  I'm using 12.0, not sure that I can create a credential alias (like 12.1?).  Or if I did then how would i apply it to the schedule or the action block in the TRX.  Can you explain?
    Thanks again!
    Dave

  • ME38 resets Release strategy of Scheduling agreement

    Hello,
    It seems when the users change the delivery date  in the delivery schedule (transaction ME38), the system in some cases resets the release strategy of the scheduling agreement from "Release" to "Not Release".It happened only in some case,release indicator set to "4" in our case.
    I cannot understand why this happens.
    Has anyone encountered such a problem before.
    Thanks
    Sunil

    Below are the (changed) item fields :
    Purchasing Document Item Change Date   AEDAT
    Item Delivery Date   EINDT
    Schedule Line is "Fixed  "FIXKZ
    Below are the (changed) header fields :
    Release Indicator: Purchasing Document  FRGKE
    Release status  FRGZU
    Purchasing document processing state PROCSTAT
    Item and header changes have same "Change document number " and transaction code "ME38" , this happened only in some cases,Rel Strategy is on  document type level ,I am also confused on this .
      Please assist  on this

  • How to Cancel Scheduled Job in DB13

    Dear All,
    I have scheduled transaction log backup in DB13. But its getting fail due to device error.
    Now i want to cancel this.
    I know it can be cancelled through db13 but i m not getting from where i can cancell. Pls guide me step by step.
    rgds
    Awnindra Dutt Tiwary

    Hi,
    Find the running (Active) job in SM37 starting from "DBA:XXXXX"
    Then select it and from Menu Job --> Cancle Active Job..
    That's it...
    Your backup will be cancel...
    Regards..
    Rajesh Narkhede

  • Big transaction log file

    Hi,
    I found a sql server database with a transaction log file of 65 GB.
    The database is configured with the recovery model option = full.
    Also, I noticed than since the database exist, they only took database backup.
    No transaction log backup were executed.
    Now, the "65 GB transaction log file" use more than 70% of the disk space.
    Which scenario do you recommend?
    1- Backup the database, backup the transaction log to a new disk, shrink the transaction log file, schedule transaction log backup each hour.
    2- Backup the database, put the recovery model option= simple, shrink the transaction log file, Backup the database.
    Does the " 65 GB file shrink" operation would have impact on my database users ?
    The sql server version is 2008 sp2 (10.0.4000)
    regards
    D

    I've read the other posts and I'm at the position of: It really doesn't matter.
    You've not needed point in time restore abilities inclusive of this date and time since inception. Since a full database backup contains all of the log needed to bring the database into a consistent state, doing a full backup and then log backup is redundant
    and just taking up space.
    For the fastest option I would personally do the following:
    1. Take a full database backup
    2. Set the database recovery model to Simple
    3. Manually issue two checkpoints for good measure or check to make sure the current VLF(active) is near the beginning of the log file
    4. Shrink the log using the truncate option to lop off the end of the log
    5. Manually re-size the log based on usage needed
    6. Set the recovery model to full
    7. Take a differential database backup to bridge the log gap
    The total time that will take is really just the full database backup and the expanding of the log file. The shrink should be close to instantaneous since you're just truncating the end and the differential backup should be fairly quick as well. If you don't
    need the full recovery model, leave it in simple and reset the log size (through multiple grows if needed) and take a new full backup for safe keeping.
    Sean Gallardy | Blog |
    Twitter

  • Scheduling with Forecast Dates

    Dear Experts,
    I want to know whether following is possible.
    When creating a project initial schedule dates based on Activity Duration and Activity Relationships should reflect as Basic Dates. After project creation, when ever the Project Manager reschedule the project, those reschedule dates should be reflect as Forecasted dates.
    By doing this the Project Manager will be able to identify Initial Plan as Basic Dates, Reschedule Plan as Forecasted Dates and Actual as Actual Dates.
    Very Much Appreciate your Support,
    Dileepa.

    Dear All,
    I did reschedule Forecasting Dates using CN24 (Overall Network Scheduling) transaction. But after doing this, overall Project and WBS Elements dates does not changes based on the reschedule Network Time lines.
    Further I have define "Network determines dates" as the Scheduling method in WBS Schedule Profile.
    Very much appreciate your guidance,
    Dileepa.

  • SQ01 - Query Reporting - Scheduling

    How can SQ01 be scheduled for batch execution?  Is there a batch program which can be executed with the query name and variant?

    Hi,
    On SQ01, enter the query name and press execute. On the program selection screen, go to the menu System-> Status. Copy the program name from the window that comes up and put it on the scheduler (transaction: SM36).
    or
    see the below link.
    http://www.auditware.co.uk/downloads/SAPQuery_step_thru.pdf
    Anil

  • Finds the correct route schedule

    Master data  :     Route scheduling    transaction  VL51  and  VL52
    The customer is linked to 2 route schedules with different goods issue dates :
    Every monday at 10  AM 
    Every thursday at 3 PM
    In the sales order, when you enter a first delivery date, R/3 finds the correct route schedule and calculates precisely the goods issue date according to the customer delivery date.
    If you change the delivery date in the sales order item (option: edit/fast change of /delivery date), R/3 does not determine a new route schedule and stays with the first one.

    In my personal opinion, you can have any certifications you want but if you can't/don't pass the "practical exam" that we've set up as part of a candidate's interview process then you're out.  
    In my present job, I've seen so many candidates applying for jobs with CCNA, CCNP and CCIE "certification".  The very minute we informed them that part of the interview process is a "practical exam" involving configuration of some routers and switches ... these so-called "certified" candidates back out.  

  • MII Scheduler Execution Target

    Hello,
    we have cpu-intensive scheduled transactions that we want to separate from the load of end users on our production cluster: 
    MII Production system PRD
    Server 1 - DB and 2 NW Java server nodes
    Server 2 - 3 NW Java server nodes
    Server 3 - 3 NW Java server nodes
    By using SAP Web Dispatcher, we can direct users to servers 2 and 3, sparing server 1 to DB and background processing.  But on MII scheduler we can't set the execution target to server 1.  On ABAP jobs we have an execution target, where we can define an aplication server or group where it'll run.  How can we accomplish the same on MII Scheduler?  We're using MII 12.2.5 Build(66).
    Thank you,
    Marcos

    Salvatore,
    thank you for your explanation.  I read your document on performance and found that we're trying a 'big data' variation of scenario 5 & 6.  In general terms, the problem that we have is about scaling the background processing while doing online processing concurrently on the same server.  Since we cannot control which transaction will run on each instance, our approach to solve this was to split the productive system in many systems, each one responsible for part of the load:
    System 1: user processing - does not have scheduled transactions
    System 2: batch processing part 1 - scheduled transactions for sites A and B
    System 3: batch processing part 2 - scheduled transactions for site C (part 1)
    System 4: batch processing part 3 - scheduled transactions for site C (part 2)
    System 5: batch processing part 4 - scheduled transactions for site D
    This architecture has many obvious support drawbacks, but it is the only way we found to separate user and batch loads on MII.  On ABAP systems we have job target control.
    I wonder what other users are doing to separate the load, or maybe they don't have that much processing on one server, like in your scenario.  Here at Petrobras we're used to deal with massive amounts of data, say 5K tags por request times the varying granularity.
    Please advice.
    Regards,
    Marcos

  • Mirroring and Transaction dumps

    I am in the process of setting up a mirror (with witness server) in SQL 2008 R2.  I was told I need to have a scheduled transaction log (dump) backup running. 
    How do I setup a scheduled transaction dumps in SQL 2008 R2.
    Any help is appreciated.
    Dave
    Dave Kozlowski

    Hi,
    scheduling transaction log backup in mirroring is same as that in any other SQL server database. Its good practice to backup your logs in mirroring which will check amount of logs going to Mirror server.You can also use SSMS/ maintenance plan to create log
    backup plan and schedule it.
    http://technet.microsoft.com/en-us/sqlserver/dd430301.aspx
    http://sqlserverscribbles.com/2013/06/03/how-to-create-backups-using-database-maintenance-plan/
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

  • Job Scheduled FM

    Hi Friend,
    I want to Scheduled one job through Function Module, so please tell me the FM name. Import parameter like Job Name,
                                              Start time.
    Thanks,
    Amit

    Hi Amit,
    You can use the <b>BP_START_DATE_EDITOR</b> function module to have your users specify when and how a job is to be started. The function module offers the same range of scheduling choices that a user has with the standard scheduling transaction: immediate start, start window, predecessor job, event, and so on.
    Data structure returned by BP_START_DATE_EDITOR
    DATA STARTSPECS LIKE TBTCSTRT.
    DATA START_MODIFY_FLAG LIKE BTCH0000-INT4.
    BP_START_DATE_EDITOR: Present user with pop-up window
    requesting specifications for the job start. The user can
    select from
    - immediate start,
    - start time and date and last time and date,
    - start after event,
    - start after activation of a new operating mode,
    - start after predecessor job
    - start on a certain workday of the month, counted from the
    start or end of the month
    - specify how a job is to be handled if the start date falls
    on a holiday.
    All start date options are selectable by the user. To limit the
    selection available to the user, you should program your own
    input window. Or, you can evaluate TBTCSTRT-STRTDTTYP to see
    if the user chose an appropriate start specification (see
    below).
    BP_START_DATE_EDITOR checks for plausibility and other errors in
    user specifications and issues an error if any problems exist.
    Use only the TBTCSTRT fields shown in the example below. Other
    fields are reserved for internal use only. Do not set TBTCSTRT
    fields directly.
    <b>CALL FUNCTION 'BP_START_DATE_EDITOR'
    EXPORTING
    STDT_DIALOG = BTC_YES " Module in interactive mode
    STDT_OPCODE = BTC_EDIT_STARTDATE " Edit mode
    STDT_INPUT = STARTSPECS " Table for user selections
    STDT_TITLE = 'Title' " Title for pop-up screen
    IMPORTING
    STDT_OUTPUT = STARTSPECS " User selections
    STDT_MODIFY_TYPE = START_MODIFY_FLAG
    " Flag: did user change start
    " specifications? Values:
    " - BTC_STDT_MODIFIED,
    " user did change specs
    " - BTC_STDT_NOT_MODIFIED,
    " user did not change specs
    EXCEPTIONS
    OTHERS = 99.</b>
    Flag for specifying immediate start in JOB_CLOSE: For the
    immediate-start case only, you must set a flag for communicating
    the user selection to JOB_CLOSE. In all other cases, simply
    pass the values returned by BP_START_DATE_EDITOR to JOB_CLOSE.
    Those that were not set by the user have the value SPACE and
    have no effect in JOB_CLOSE.
    Setting all JOB_CLOSE parameters is only permissible when you
    use BP_START_DATE_EDITOR. Otherwise, you should set only the
    required parameters in your call to JOB_CLOSE.
    DATA: STARTIMMEDIATE LIKE BTCH0000-CHAR1.
    CASE STARTSPECS-STARTDTTYP. " Possible types are listed below.
    WHEN BTC_STDT_IMMEDIATE. " User selected immediate start.
    STARTIMMEDIATE = 'X'.
    WHEN BTC_STDT_DATETIME. " User entered start date and time
    WHEN BTC_STDT_EVENT. " User entered event and possibly
    " argument OR user selected start on
    " activation of a particular operation
    " mode (job start event driven in this
    " case as well).
    <Optional error processing, if you wish to prevent user from
    scheduling a job dependent upon an event>
    WHEN BTC_STDT_AFTERJOB. " User entered predecessor job.
    <Optional error processing, if you wish to prevent user from
    scheduling a job dependent upon a predecessor job>
    WHEN BTC_STDT_ONWORKDAY " User selected a job start on a
    " particular workday of the month.
    ENDCASE.
    Use the start specifications provided by the user in JOB_CLOSE.
    <b>CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    JOBNAME = JOBNAME
    JOBCOUNT = JOBNUMBER
    STRTIMMED = STARTIMMEDIATE
    SDLSTRTDT = STARTSPECS-SDLSTRTDT
    SDLSTRTTM = STARTSPECS-SDLSTRTTM
    LASTSTRTDT = STARTSPECS-LASTSTRTDT
    LASTSTRTTM = STARTSPECS-LASTSTRTTM
    PRDDAYS = STARTSPECS-PRDDAYS " Non-zero values in
    PRDHOURS = STARTSPECS-PRDHOURS " any PRD* field mean
    PRDMINS = STARTSPECS-PRDMINS " that a startdate,
    PRDMONTHS = STARTSPECS-PRDMONTHS " starttime job is to
    PRDWEEKS = STARTSPECS-PRDWEEKS " be repeated
    " periodically.
    TARGETSYSTEM = STARTSPECS-INSTNAME
    AT_OPMODE = Omit this parameter if you obtain user
    " specifications. It’s set automatically by
    " BP_START_DATE_EDITOR.
    AT_OPMODE_PERIODIC = STARTSPECS-PERIODIC " Set with generic
    " periodic flag in
    " table TBTCSTRT.
    PRED_JOBNAME = STARTSPECS-PREDJOB
    PRED_JOBCOUNT = STARTSPECS-PREDJOBCNT
    PREDJOB_CHECKSTAT = STARTSPECS-CHECKSTAT
    EVENT_ID = STARTSPECS-EVENTID
    EVENT_PARAM = STARTSPECS-EVENTPARM
    EVENT_PERIODIC = STARTSPECS-PERIODIC " Set with generic
    " periodic flag in
    " table TBTCSTRT.
    CALENDAR_ID = STARTSPECS-CALENDARID
    STARTDATE_RESTRICTION = STARTSPECS-PRDBEHAV
    START_ON_WORKDAY_NOT_BEFORE = STARTSPECS-NOTBEFORE
    START_ON_WORKDAY_NR = STARTSPECS-WDAYNO
    WORKDAY_COUNT_DIRECTION = STARTSPECS-WDAYCDIR
    " START_ON_WORKDAY jobs are scheduled
    " automatically for periodic execution if
    " PRDMONTHS is set.
    IMPORTING
    JOB_WAS_RELEASED = JOB_RELEASED
    EXCEPTIONS
    OTHERS = 99.
    Leaving content frame</b>

  • Credit Card payment does not go on Credit hold..

    Hi,
    As per our normal procedure whenever a customer makes payment through "Credit Card" it goes on Credit Hold and than someone releases it from VKM1.
    Now the problem we are facing is that suppose SO is of $1000 on 22/07/2009 and delivery is for only $600 on this day than as per our normal process the relaeser can only release $600 from VKM1. But this is not happening now, entire amount of $ 1000 is getting released on 22/07/2009 itself.
    Kindly suggest how we can restrict this.
    Thanks,

    Hello Vk@sap,
    In the standard process when you enter payment card details the order should not go on credit hold. VBAP-ABGES will be filled with 1 and the credit check should not be done. When we have an order that will be paid for by credit card all we need to know is if the clearing house (bank/credit card company) will give us the money. The customer's credit limit and history is not important to us if the bank guarantees us they will give us the money.
    Is the authorisation being sought for $1000 or $600 in the sales order? Is it just the first schedule line that is being authorised in the sales order? In the standard system you cannot split an authorisation. So if you receive an authorisation for $1000 and only deliver $600 when you go to bill this the entire authorisation is used up. You will need to re-authorise the sales order (transaction VCC1) for the other $400.
    I hope this helps.
    Best regards,
    Ian Kehoe

Maybe you are looking for

  • Error invoking bpel process using axis client

    When I am trying to invoke bpel process using axis client I'am having following error: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: Bad envelope tag: html fa

  • Error code = 601; message="An Error happened during call of MaxDB Tool sdbi

    I'm trying to install SAPNW7.0ABAPTrialSP12 and I did these steps and was able to reinstall without any problems. 1. Run registry clean tool that came with the packaged software \Additional_Tools\RegCleanTool 2. Then run Uninstall - System/Standalone

  • DMM 5.2.2 7835H2 migration to DMM 5.4 VM

    Hi all, We are currently running DDM 5.2.2 on an MCS 7835H2 server and are using DMP 4400's only.  We are looking to migrate to DMM 5.4 as using our Software Upgrade Contract.  I have been reviewing the migration options/upgrade options and understan

  • Java tutorial - helps, problem  is i don't understand the API

    I don't understand the JAVA Tutorials or the API

  • SO created delivery and billing blocked

    Hi sap sd gurus I have a problem after creating a sale order , the one line item in sale order showing status of delivery blocked and billing blocked , now i am unable to post delivery and billing when i see in schedule line item order qty and confir