Synchronous data exchange over JCaps without TCP/IP or WebService...

Hi all,
the subject may sound like a little crazy request, but that is what we actually need.
Just to explain: we have a SAP R/3 system running (v. 4.72) which is not able to call Web Services and is also not able to open a TCP/IP-connection to a foreign host to exchange data.
But what we need is a synchronous data exchange as, after pressing a button in SAP, we should query some database tables of another sub-system with JCaps and send back the received information to SAP.
Do you have any ideas out there how this synchronous request from SAP to JCaps can be fullfilled with JCaps (our version is 5.1.3)?!
We thought about using a HTTP server on the JCaps side, where SAP just sends a HTTP-request on the specified address and then we could use the data received from this call, to get data from the sub-system and then send it back to SAP over an RFC or something similar - that is the easier part (sending data back to SAP). The harder part, in my opinion, is to create a possibility for SAP to call JCaps immediately - so not asynchron, which we already implemented over a file export...
So, is it possible to use HTTP-server from JCaps for our needs?! Or is there another, easier possibility?!
Any help highly appreciated...
Regards
Bernhard Böhm

Hi Chris,
thanks for the input - we also have a similar thing running, also using our BW-Server (SAP ERP 6.0) as the "web service engine"....
But now, we want a solution without another server (like the BW in the upper case) involved!
So, we thought about using HTTP-server on the JCaps-side which should be invoked by a simple HTTP-request from SAP (also possible in 4.72).
Now I tried to setup a simple HTTP-Server project in JCaps 5.1.3 and it is making me crazy right now...
I just do not get it to work - all I would do is a simple JCD that just print a line in the log-file when started. The JCD has just a "processRequest"-method from HTTPS-Server-eWay. In the connectivity map I did set up the connection to the HTTP-Server with the servlet-url-name - property:
http://localhost:18001/dpListenHTTP_servlet_HttpServerServlet (like described in the userGuide).
But when trying to build the project I get this error:
com.stc.codegen.framework.model.CodeGenException: code generation error at = HTTP_Listen_cmListenHTTP_jcListenHTTP1 - HTTP Server e*Way Code GeneratorProblem creating war: C:\temp\dpListenHTTPprj_WS_serTestHTTP\12217262314811\WEB-INF\classes\..\dpListenHTTP_servlet_http:\localhost:18001\dpListenHTTP_servlet_HttpServerServlet.war (The filename, directory name, or volume label syntax is incorrect) (and the archive is probably corrupt but I could not delete it)
     at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1569)
     at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
     at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
     at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
     at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
     at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
     at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
     at org.openide.util.Task.run(Task.java:136)
     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
Caused by: Problem creating war: C:\temp\dpListenHTTPprj_WS_serTestHTTP\12217262314811\WEB-INF\classes\..\dpListenHTTP_servlet_http:\localhost:18001\dpListenHTTP_servlet_HttpServerServlet.war (The filename, directory name, or volume label syntax is incorrect) (and the archive is probably corrupt but I could not delete it)
     at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:509)
     at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:302)
     at com.stc.codegen.frameworkImpl.model.util.AntTasksWrapperImpl.war(AntTasksWrapperImpl.java:404)
     at com.stc.connector.codegen.httpserveradapter.HSEWCodelet.generateFiles(HSEWCodelet.java:608)
     at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:640)
     at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1546)
     ... 8 more
Caused by: java.io.FileNotFoundException: C:\temp\dpListenHTTPprj_WS_serTestHTTP\12217262314811\WEB-INF\classes\..\dpListenHTTP_servlet_http:\localhost:18001\dpListenHTTP_servlet_HttpServerServlet.war (The filename, directory name, or volume label syntax is incorrect)
     at java.io.FileOutputStream.open(Native Method)
     at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
     at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
     at org.apache.tools.zip.ZipOutputStream.<init>(ZipOutputStream.java:252)
     at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:407)
     ... 13 moreAnyone any idea how to set up a HTTP-server-project?!
Thanks and regards
Bernhard Böhm

Similar Messages

  • Sending binary data over RS232 without conversion to ascii

    I need to send binary data to a PIC without the data being converted to ascii. With the VISA vi's, when I want to send 11111111, it gets converted to a string "255", and is sent as "2","5","5" in ascii.
    How can I send it as one byte?

    r_keller wrote:
    @tbob: I probably shouldnt tell my customer that he's an idiot, and obviously 9 bit addressing/signalling modes seem to be not so uncommon in industry, so ur post does not really contribute to solve the problem.
    Well I wouldn't call my customer an idiot either.  I didn't know he was your customer.  Sorry.  Not every comment posted here is intended to directly solve a problem.  We are a fun loving group, and occasional ribbings take place here.  I still think that trying to use 9 bits over an 8-bit protocol is not a good way to go.  But if it is the only way, then so be it.
    r_keller wrote:
     Does the Mark or Space parity bit add another 10th bit to the command or can i only use either ODD parity/Mark/Space?
    According to the link you attached, the parity bit adds only one more bit.  If the number of bits is set to 8, then the parity is the 9th bit, and you can only use Mark or Space to force that 9th bit to either 1 or 0 respectively.  If you try to use odd or even parity, the protocol will determine the parity and change the bit accordingly, and it may not be the one you intended to send.  The start and stop bits are fixed by the protocol and cannot be used for extra data bits.
    Actually, until I read that article about using Mark and Space, I had no idea at all that sending 9 bits at a time was possible.
    - tbob
    Inventor of the WORM Global

  • How deploy a new MI appl. version without transfer data all over again

    Hello,
    I'm using MI 7.0 SP15 and I have already deployed the enhanced MSR application on all PDA devices.
    Then, I changed MSR (modifying just some JSP file) creating a new version of it, and now I need to deploy it on all devices but I want to avoid to transfer all data again (the database we're using on PDAs is DB2e) because it's too expensive to transfer them.
    I usually assign a new version, through NW administrator, as JSP Application after having deassigned the old one to all users (in NW administrator I deassign the old version to all users, then I undeploy it, then I deploy the new version and then I reassign it to all users) but in this way I see that all local tables (related the the SyncBOs used by MSR) with all their data are deleted and created again.
    Does exist a way to deploy a new application version avoiding to transfer data all over again in the local DB tables?
    Thanks,
    Maria

    Hi Larissa,
    Thanks for your prompt reply.
    I just tried to deploy the new MSR.war file as add-on unsuccessfully.
    My OLD MSR application had the following MCD:
    Vendor:  xxx 
    Application type: APPLICATION   
    Name: MSR 
    Description: Mobile Sales
    Version: 20.03  
    Build Number: 00
    Runtime: JSP   
    Operating System:
    Processor:
    Language:
    Link to SAP MI Homepage: x 
    Then I tried to deploy the NEW MSR version as add-on with the following MCD:
    Vendor:  xxx 
    Application type: ADDON   
    Name: MSR 
    Description: Mobile Sales
    Version: 20.03  
    Build Number: 00
    Runtime:   
    Operating System:  
    Processor: 
    Language: 
    Link to SAP MI Homepage:
    The new MSR.sda has been created successfully and its deployment status is valid but the deployment on server fails with the following error message:
    Reason: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='<Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='A configuration with the path "mobile/ADDON/xxx_MSR_20.03" does not exist.', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key A configuration with the path "mobile/ADDON/xxx_MSR_20.03" does not exist.'
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    What Am I doing wrong?
    Many Thanks,
    Maria

  • Outlook 14.4.8 not synchronizing with Exchange 2007 anymore (shows "downloading" but no new messages shown in inbox"

    Outlook 14.4.8 on iMAC Retina and Yosemite 10.10.2 is not synchronizing with Exchange 2007 anymore (shows "downloading" but no new messages shown in inbox".
    Accessing Mails with Webbrowser and from Windows Outlook is working correctly.
    All Macs (also the ones with OS 10.6.8) do not anymore show any new messages in inbox.
    Restarted Server, tried to disable autodiscover on macs and deleting/adding account and repairing database does not fix the problem. Also restarted server several times.
    We have the same problem on 2 imacs retina with yosemite and on 2 mac pro with 10.6.8 and different office 2011 versions.
    i tried to configure the exchange account in apple mail on yosemite and it also states "connected" and does list some folders but no new mails are getting in.
    Windows clients and outlook on them works and syncs fine, and also when connecting via webbrowser at owa it must be a mac-specific/webdav issue.
    exchange 2007 Sp3 Version 8.3 (bild 83.6) and Update Rollup 15 for sp3 (automatic updates "HIGH" for server and clients)
    there is one update popping up again and again even after everytime successull installation: Windows Mlicious Software Removal Tool x64 - October 2010.
    i tried to configure a new user with empty mailbox and configured it with microsoft mail (mac - yosemite)  as exchange and was able to send a mail from there (even if quite delayed).
    but there are not coming in any mails.
    same exchange accounts triggered by imap do work and also via owa.
    Exchange Accounts in Outlook for MAC and also in Mail (Yosemite) do show the folder structures but there is no mails showing up. I can send mails from the exchange accounts created but they seem to be processed with a delay of like 15minutes and outlook
    is giving error "end of file reached" but messages are send after some time.
    Does seem like EWS is extremely slow, to slow perhaps to sync and therefore ending in timeout.
    Also i cannot reach the server from externally over ssl https 443. if testing port 443 of exchange from outside the port seems closed even firewall settings of sbs 2008 and sonicwall ports are correctly open.
    could it be there is something in regarding webdav which is very slow and leading to timeouts ?
    in application log i do have the following two information events every few minute:
    The Exchange Web Services started successfully. Event ID 1
    and
    Process STORE.EXE (PID=3688). Exchange Active Directory Provider has discovered the following servers with the following characteristics: 
     (Server name | Roles | Enabled | Reachability | Synchronized | GC capable | PDC | SACL right | Critical Data | Netlogon | OS Version) 
    In-site:
    SERVER.org.local CDG 1 7 7 1 0 1 1 7 1
     Out-of-site:
    Errors in Application log:
    The Open Procedure for service "BITS" in DLL "C:\Windows\system32\bitsperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section 
    The entry <C:\WSUS\WSUSCONTENT\CONTENTFOLDERACLSCHECK.TXT> in the hash map cannot be updated.
    An exception Microsoft.Exchange.Data.Storage.ConversionFailedException occurred while converting message Imap4Message 69447
    Also outlook 2011 clients are asked by time to time to reenter pwds and errors like "connection is closed. 13" 
    Faulting application taskeng.exe, version 6.0.6002.18342, time stamp 0x4cd34898, faulting module ntdll.dll, version 6.0.6002.18881, time stamp 0x51da3d16, exception code 0xc000071b, fault offset 0x0000000000082445, process id 0x3288
    Certificate Services Client Provider pautoenr.dll raised an exception. Exception code 3221225477.
    Backup Exec:
    FULL_BACKUP -- The job failed with the following error: A failure occurred querying the Writer status.
    Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy service is not registered.  This might happened if an error occurred during Windows setup or during installation of a Shadow Copy provider.  The
    error returned from CoCreateInstance 
    Exchange VSS Writer (instance 2d932ef8-6319-4ab8-a45f-1242480b44ad:15) failed with error code 1295 when processing the backup completion event. 

    Hi,
    Since Outlook running on Windows works well, it seems an issue on the Mac side. I suggest ask Mac for help so that you can get more professional suggestions.
    More information for your reference:
    Please try to verify whether there is any expired certificate from the computer personal store.
    If it is the case, please remove them.
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Mavis Huang
    TechNet Community Support

  • Is the data exchanged with the Apple Servers during a manual/itunes ios update any different between a PC and Mac?

    When performing an ios update with an ipsw file, data is exchanged with an apple server to complete the update to the newer ios version.  Without an internet connection to the apple server the update does not complete.
    Can and Apple software engineer please answer if there is anything done differently during this data exchange process between a Macintosh vs a PC?  If not here within the forum, can someone provide me a phone number, email or mail address to contact to get this information?  The answer is very important to the organization that I belong to.
    From a privacy standpoint, I assume the device name and perhaps some other data is submitted to verify the identity of the device being updated but is any personal information submitted like email, contacts or any other data potentially typed by the user sent during the connection to the Apple update server?
    My understanding is that user generated data, settings and apps are handled entirely with the backup file if ones is created?
    Dan

    Apple does not participate in these forums, so you will not get a reply from an Apple engineer, nor will there be any way for you to contact anyone in the iTunes or iOS engineering team.
    I do not, however, think that there is any difference between the Mac and Windows versions of iTunes in what information they transmit to Apple's services. In either version no personal information of any sort is sent when only doing an update to iOS, only to the best of my knowledge the device identification so that the correct update file can be delivered. The only time any of your contacts or any other such information would be sent to Apple's servers is if you are synchronizing via iCloud, and emails only if you use iCloud's email service.
    My understanding is that user generated data, settings and apps are handled entirely with the backup file if ones is created?
    Except for synchronizing with iCloud, that would be correct. This may be of interest:
    http://support.apple.com/kb/HT4865
    Regards.

  • Meet a problem of data exchange for sale order from CRM to R3.

    Dear Friends:
          I do the data exchange for sale oder from to R3 today , the problem's detail is as follows:
          When i save a sale order in CRM (Version is 5.0) . it can automatically generate a bdoc which bdoc type is BUS_TRANS_MSG. but the bdoc status alway is "Sent to receivers (not all have confirmed)". and the original order in CRM can not be change .it quote that "Document is being distributed - changes are not possible",  so i check the order status analysis in detail .it presents two error messages ," Event 'BEFORE_CHANGE', attribute '     FINI': Error code for function module 'CRM_STATUS_BEFORE_COMPLETED_EC' , "Item is not yet completed in OLTP system".  so i check  the order in R/3 ,it has already been create and without any error messages.
       Would like to tell me how to solve it . thanks your any idear..

    Hi Benjamin,
    When performing uploads to R/3 from CRM there is a response from the OTLP system that is sent back to the CRM Middleware to confirm that the data records were received and processed correctly. 
    Here is a checklist you can run through to verfiy that the connections, systems and objects that are needed are all in place:
    <b>On R/3 system:</b>
    - Check R/3 outbound queue (transaction SMQ1) for any entries that are not reaching CRM.
    - Check that all RFC destinations on R/3 are defined correctly and are pointing to CRM
    - Check the CRMCONSUM table in R/3 to ensure CRM is registered as a consumer
    - Check the CRMRFCPAR table in R/3 to ensure that order objects are valid for exchange between R/3 and CRM
    - Check for any short dumps in R/3 (ST22/ST21)
    <b>On CRM:</b>
    - Are there entries stuck in the inbound queue (SMQ2) with R3AU* names?
    - What does the CRM Middleware Trace show (SMWT)?  Sometimes this has more detail than the specific BDoc overview (SMW01)
    - Check for short dums in CRM (ST22)
    Let us know what else you uncover and we can work from there.
    Brad

  • Export mailbox to pst from exchange 2010 shell - without calendar

    Is there a way to edit this command:
    New-MailboxExportRequest -Mailbox Kweku -IsArchive -FilePath "\\SERVER01\PSTFileShare\Kweku_Archive.pst"
    that it would export mailbox without calendars?
    with best regards,
    bostjanc

    You can use the -ContentFilter option to filter folders \ date
    Exchange Blog:
    www.ntweekly.com
    MCSA, MCSE, MCITP:SA, MCITP:EA, MCITP:Enterprise Messaging Administrator 2010,MCTS:Virtualization

  • EDI - B2B - BPEL Data exchange

    Hi All,
    I am new to EDI and B2B but knows BPEL very well.
    My doubts are:
    1. How and what format the data exchange happened between BPEL --> B2B and also between B2B ---> EDI ?
    2. Do we need EDI Adapter to support EDI over B2B ?
    Thanks in advance,
    Kamleshwar

    Hi Kamleshwar,
    If you are working with 10g, then below links will explain you everything -
    http://www.oracle.com/technology/products/integration/b2b/pdf/edi_cookbook_oracle_b2b.pdf
    http://www.oracle.com/technology/products/integration/b2b/pdf/B2B_TN_022_Enabling_B2B_BPEL_Interop.pdf
    http://www.oracle.com/technology/products/integration/b2b/pdf/B2B_TU_001_B2B_BPEL.pdf
    Do we need EDI Adapter to support EDI over B2B ?Oracle B2B has in-built EDI adapter and you don't need one explicitly.
    Regards,
    Anuj

  • ICWC: Passing data b/w views without using CuCo!.

    Hi All,
    I am using CRM 4.0, for my custom development i got many custom views, i have a requirement to pass a value from one custom view to another!.
    All my custom views i developed in a custom application, also the workbench is not allowing me to create a new custom controller of my own, in this context is there any alternative for passing data b/w view without using a Custom Controller?.
    or else anyway to create a new CuCo in my custom application!..
    Thanks in Advance,
    sudeep v d..

    Hi all,
    I have an application that runs in the JApplet.I have
    to pass data b/w server and applet.The
    datas are brought from the server using php to the
    browser and passed to applet using param
    tags.
    1.Is it possible to set value for the param tag from
    applet?Why do you ever want to do it? It sounds like setting arguments passed to a program's main method from command line after the main method has been invoked. It is possible though to dynamically set any values for any applet params using php before the applet gets loaded to the browser window as you generate an html file on the server side.
    2.How to retrieve data from the param tag to the
    applet in the form of an array.
    In the getParameter it is required to specify the
    param name.
    Is it possible to retrieve data from param tag similar
    to that of getting data from command
    line arguments array.You can use some naming/numbering convention for your params. For example settings1, settings2 ... Then you can loop in your code retrieving the values like getParameter("settings" + i) checking to see that it is not null or empty.
    However, if you don't want to reload the applet (together with the page) just to get some new data from the server, you can establish a tcp/ip connection as elchaschab recommended.
    Cheers!

  • What does it mean, in iTunes, "your contacts are being synced with Microsoft Exchange over the air"?

    Hello,
    I'm trying to sync the contacts on my iPhone 5 with my contacts on my Mac Book Air (merge them), I'm also using Outlook (Microsoft) to manage my email account and my contacts.  I used to sync my contacts from my previous iPhone (4S) with my contacts on my Mac and also with contacts on Outlook.
    Now that I have iPhone 5 I missed that sync (iPhone-Mac-Outlook), so I figure it out that in iTunes there is this message: "your contacts are being synced with Microsoft Exchange over the air. Your contacts will also sync directly with this computer. This may result in duplicated data showing on your device"
    Every contact created on iPhone doesn't sync with my Mac or Outlook.
    How should I configure my iphone and my mac to sync properly??
    Thanks a lot!
    Kind Regards,
    Silvana
    Mac book Air OS X 10.8.3
    Processor 1.7 GHz Intel Core i5
    iTunes 11.0.4
    iPhone 5 iOS 6.1.4

    Not surprisingly there have been no answers to this question because the only person who knows how to use iTunes/iCloud/iPhone is too busy.

  • Way to see data exchange history?

    Hello,
    We have a Pixi Plus on a prepaid plan that gives it a very limited amount of data per month (10MB).  Today I turned data on, sent two photos via MMS, and turned the data off.  After that activity, which should have burned a handful of KB's, I checked my data activity online, and I had burned through about 20MB - the 10MB the plan gives, plus an extra 10MB I had to pay for.
    Obviously, some other data exchange must have occurred besides *just* the sending of two photos.
    Wifi is on all the time, and the few apps the phone has had installed push notifications and updates, so I can't imagine there were updates in queue that got sent over 3G...
    But obviously, something happened.
    Is there a place to look within the phone itself that would show specifically *what* data was exchanged during that very short - but spendy - data session?  Something that would show which app is responsible, perhaps?
    Post relates to: HP TouchPad (WiFi)

    My guess would be you have the "Backup" app turned on...
    If so, the phone will try to back itself up entirely on a daily basis!
    In direct answer to your question, I do not know of a way to check what was transferred.  
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Store data in R/3 without page refresh

    Dear BSP-Masterminds,
    we need to store data in R/3 without a recurrent page refresh. The problem is that our engineers are using PDA's and the page refresh is taking too much time. The engineers are changing equipment data on the PDA's. Every time they click on  save button, the data get send to the R/3 system and the checking, if the data are correct, takes up to 30 sec. Additional the new page refresh on PDA takes another 20 sec. It would be great to find a solution which stores the data somewhere and by hitting the 'final save-button' the data get checked and saved.
    The worst case scenario would be a table of around 600 equipment data, so it might be a huge table that has to be stored somewhere. I thought of a client side cookie but I have no experience if it is possible to store such a big internal table and by the way I don't know if this would be possible on a PDA.
    Every little hint is welcome!
    Regards
    Nicola
    P.S.: Please excuse any spelling mistakes )

    Hi,
    Javascript as such can't do it without refreshing the page. You need to use the AJAX function. But you don't need to be scared about it. Just look at the web logs I've mentioned and you'll understand it quickly.
    Here's an additional AJAX tutorial
    http://www.w3schools.com/ajax/default.asp
    Eddy
    PS. Reward the useful answers and you will get <a href="http:///people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself">one point</a> yourself!

  • Posting of cancelled Invoice after posting date is over

    Hello Experts,
    I am stuck up with a situation and as such seek your help.
    A invoice was generated and the subsequent accounting document was also cleared. Now after the posting date was over, someone cancelled the invoice by T.code VF11 and as expected it didnt get posted .The document flow showing is as per below :
    Order - open
    Invoice - completed
    Accounting Document - Cleared
    Cancel Invoice - Open
    Now, the business and their audit policies do not allow the client to cancel the invoice in back date ( within the posting period).
    What are the options do we have to tackle the situation.
    Joy

    The issue has been temporarily addressed by changing the posting date.
    However, now the client wants us to make an ABAP development so that no user is able to cancel the invoice after posting date is over. Now for that I have the following issues. Can someone please help me out in this.
    The basic process details I am following is as per below:
    For Transaction Code VF11 (i.e for Cancellation of Invoice) , when the invoice number which is subject to cancellation is provided, the System should search in VBRK table for the following :-
    1)The System will at first search whether the entry exists or not. If the Entry is not valid then it should give an message u201C Document xxxxx does not Existu201D.This is in line to the existing practice.
    2) If the Document number is valid then it will go to the billing date field and  will fetch the value from the VBRK table . Then it will match  whether the value fetched (i.e. this Invoice date)  is in present posting period or not. The system can find the posting period from the table V_T001B.
    a.If  the  Invoice date lies in the present posting period then the system will allow the cancellation document to be saved. This is in line to the existing process.
    b.If the Invoice date lies beyond the present posting period then the system will not allow to save the cancellation of the Invoice with a pop up message of u201C The Document number subject to cancellation do not lie within the present posting periodu201D .
    Now We have looked both the tables, from VBRK we will get Doc# and Billing date(FKDAT) but when we select Posting Date from table T001B( Permitted Posting Periods) there is some issue.
    1.  What will be the condition for selecting records from T001B table.Since there is multiple key fields
        RRCTY (Record Type) ,
        BUKRS (Posting Period Variant) ,
        MKOAR (Account Type or Masking)
        BKONT (To Account). 
    So, to get unique record what will be the value of this key fields. Is there any relationship with VBRK table ? 
    2.  Which field I have to consider as Posting Date or Period. Because there are many fields related to Posting period.

  • Printing ZPL (Zebra) data to printer spooler without character conversion

    Hi all,
    We are printing shipping labels from UPS, with a process where we recive the ZPL label code directly from UPS, and we just need to pass the data to the printer to get the labels. We have already implemented this with Fedex and some custom labels, and it works perfectly. The problem with the UPS label data is that it contains non-printable characters (in the MaxiCode data field). When passed to the SAP printer spooler (see code example below), the data gets corrupted because SAP interprets these non-printable characters as printer control codes.
    I have verified this by saving the ZPL data to a local file, before printing it through the SAP spooler. I then print this raw data and compare the output with the labels printed from the spooler. The MaxiCode (the big 2D barcode) is different in these labels. UPS has also tested the labels, and rejected them because of incorrect data in the barcode.
    For printing, we are using printers defined as type "PLAIN", but I also tried using the "LZEB2" device type with the same result. The error we see in the spooler entry is this:
    Print ctrl S_0D_ is not defined for this printer. Page 1, line 2, col. 2201
    Print output may not be as intended
    The printer ctrl code differs, depending om the label. I have examined the spooler data in "raw" mode, and there is always an ASCII character 28 (hex 1C) in front of the characters that SAP think are control codes, and this is why I think these non-printable characters are the reason for the problems.
    This is the function module I use to print the ZPL data (and as stated above, this works fine for Fedex and custom labels). The ZPL data is converted to binary format before passed to the function module, but I also tried to send the data in text format with another FM, but the result is the same. I have experimented with the "codepage" parameter, and this one gives the least amount of errors, and some labels actually get through without errors. But still at least 50% of the labels gets corrupted, with log entries like above.
    CALL FUNCTION 'RSPO_SR_WRITE_BINARY'
          EXPORTING
            handle           = lv_spool_handle
            data             = lv_label_line_bin
            length           = lv_len
            codepage         = '2010'
          EXCEPTIONS
            handle_not_valid = 1
            operation_failed = 2
            OTHERS           = 3.
    Does anyone know if there is a way to send data to the spooler without character conversion or interpretation of printer control codes? Or is there any other smart way to get around this problem?
    /Leif

    I do a more direct output to the spooler, to avoid any issues with the WRITE statement and SAP's report output processing. At the same time, I insert line breaks so that the output is easy to debug in the spooler if needed. Also included is the code to to detect the escape code (ASCII #28) and to insert a control code ZZUPS in its place (you can skip this for Fedex). Here's a simplified example, but please note this is for a Unicode system, some minor changes is required in a non-Unicode system.
    CONSTANTS: lc_spcode TYPE c LENGTH 5 VALUE 'ZZUPS',
               lc_xlen TYPE i VALUE 5.
       DATA: lv_print_params TYPE pri_params,
             lv_spool_handle TYPE sy-tabix,
             lv_name TYPE tsp01-rq0name,
             lv_spool_id TYPE rspoid,
             lv_crlf(2) TYPE c,
             lv_lf TYPE c,
             lstr_label_data TYPE zship_label_data_s,
             lv_label_line TYPE char512,
             lv_label_line_bin TYPE x LENGTH 1024,
             lv_len TYPE i,
             ltab_label_data_255 TYPE TABLE OF char512,
             ltab_label_data TYPE TABLE OF x,
             lv_c1 TYPE i,
             lv_c2 TYPE i,
             lv_cnt1 TYPE i,
             lv_cnt2 TYPE i,
             lv_x(2) TYPE x.
       FIELD-SYMBOLS: <n> TYPE x.
       lv_crlf = cl_abap_char_utilities=>cr_lf.
       lv_lf = lv_crlf+1(1).
       lv_name = 'ZPLLBL'.
    CALL FUNCTION 'RSPO_SR_OPEN'
         EXPORTING
           dest                   = i_dest
           name                   = lv_name
           prio                   = '5'
           immediate_print        = 'X'
           titleline              = i_title
           receiver               = sy-uname
    *      lifetime               = '0'
           doctype                = ''
         IMPORTING
           handle                 = lv_spool_handle
           spoolid                = lv_spool_id
         EXCEPTIONS
           device_missing         = 1
           name_twice             = 2
           no_such_device         = 3
           operation_failed       = 4
           OTHERS                 = 5.
       IF sy-subrc <> 0.
         RAISE spool_open_failed.
       ENDIF.
    LOOP AT i_label_data INTO lstr_label_data.
         CLEAR ltab_label_data_255.
         SPLIT lstr_label_data-label_data AT lv_lf INTO TABLE ltab_label_data_255.
         LOOP AT ltab_label_data_255 INTO lv_label_line.
           IF lv_label_line NE ''.
             lv_len = STRLEN( lv_label_line ).
    *       Convert character to hex type
             lv_c1 = 0.
             lv_c2 = 0.
             DO lv_len TIMES.
               ASSIGN lv_label_line+lv_c1(1) TO <n> CASTING.
               MOVE <n> TO lv_x.
               IF lv_x = 28.
                 lv_cnt1 = 0.
                 lv_label_line_bin+lv_c2(1) = lv_x.
                 lv_c2 = lv_c2 + 1.
                 DO lc_xlen TIMES.
                   ASSIGN lc_spcode+lv_cnt1(1) TO <n> CASTING.
                   MOVE <n> TO lv_x.
                   lv_cnt2 = lv_c2 + lv_cnt1.
                   lv_label_line_bin+lv_c2(2) = lv_x.
                   lv_c2 = lv_c2 + 2.
                   lv_cnt1 = lv_cnt1 + 1.
                   lv_len = lv_len + 1.
                 ENDDO.
               ELSE.
                 lv_label_line_bin+lv_c2(2) = lv_x.
                 lv_c2 = lv_c2 + 2.
               ENDIF.
               lv_c1 = lv_c1 + 1.
             ENDDO.
    *       Print binary data to spool
             lv_len = lv_len * 2. "Unicode is 2 bytes per character
             CALL FUNCTION 'RSPO_SR_WRITE_BINARY'
               EXPORTING
                 handle                 = lv_spool_handle
                 data                   = lv_label_line_bin
                 LENGTH                 = lv_len
               EXCEPTIONS
                 handle_not_valid       = 1
                 operation_failed       = 2
                 OTHERS                 = 3.
             IF sy-subrc <> 0.
               RAISE spool_write_failed.
             ENDIF.
           ENDIF.
         ENDLOOP.
       ENDLOOP.
       CALL FUNCTION 'RSPO_SR_CLOSE'
         EXPORTING
           handle = lv_spool_handle.
       IF sy-subrc <> 0.
         RAISE spool_close_failed.
       ENDIF.

  • Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    The link is to a discussion started on 12/18 in the FiOS Internet forum.  Here's the link I get now, however it is different than the link I pulled a few hours ago.  If this system changes the link again, it may not work.
    http://forums.verizon.com/t5/FiOS-Internet/Frustration-and-just-confused-with-internet-help-please/t...
    You can also look for the topic, "frustration and just confused" in the FiOS Internet forum.
    Here's a link that is in the thread that gives more detail.
    https://secure.dslreports.com/faq/15984
    Good Luck!
    P.S.  "Copper Contributor" is my "rank."  gs0b is my user name.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

Maybe you are looking for

  • Photoshop/creative cloud issues

    My brother downloaded photoshop as a free trial on this computer a few months ago when he owned the computer. He gave it to me a few weeks ago. I now want to download photoshop so I redownloaded creative cloud and tried to download my own free trial

  • Bulk Insert using Script Task in SSIS

    Hi guys, Please I have about 300Million rows of data I want to load from a remote SQL server into another SQL server. The problem is that the data takes forever to load and I have a time line. I was wondering if there is a way in can do bulk insert f

  • Aggregation of Purchase requisition in Optimizer

    Happy Diwali to all, Can we club the purchase requisitions generated from SNP optimizer to one requisition for month, as SNP optimizer will plan for optimize the solution by generating requisitions with qty 2,3, or 7 and 8 qty, Now i want to club all

  • Can't locate my serial numbers!

    I just had my Macbook Pro repaired by Apple and now that I got it back, I have to input the serial numbers for many of programs again. For some odd reason I cannot locate my FCP 7 (Final Cut Studio) serial numbers! I checked my install discs and othe

  • FM Radio - Can it be disabled?

    Can the FM radio on the 5th gen Nano be disabled?