Checkout via BAPI_DOCUMENT_CHECKOUTMODIFY2
Hello,
I'm having some trouble with calling BAPI_DOCUMENT_CHECKOUTMODIFY2 from Excel VBA. When I call the BAPI with the following code, no file is checked out. Anyone knows why?
Dim oBAPICtrl As Object 'BAPI Control
Dim oConnection 'Connection object
Dim Logon 'Logon help variable
'Creating BAPI object
Set oBAPICtrl = CreateObject("SAP.BAPI.1")
'Creating Connection object
Set oConnection = oBAPICtrl.Connection
oConnection.Client = "XXX"
oConnection.User = "XXXXX"
oConnection.Language = "XX"
oConnection.ApplicationServer = "XXXXX"
oConnection.Password = "XXX"
oConnection.SystemNumber = "XX"
oConnection.System = "XXX"
'Performing a remote logon to the R/3 System
If oConnection.Logon(0, True) <> True Then 'Logon without dialog
Set oConnection = Nothing
Logon = False
MsgBox "No access to R/3 System", vbOKOnly, APPID
Else
Logon = True
End If
'If Logon Then
'MsgBox "Logged on successfullyu2026"
'End If
Dim DocObj As Object
Set DocObj = oBAPICtrl.GetSAPObject("J_8A3_DRAW", "PM2", "A5N00030059989", "D", "000")
Dim DocFile As Object
Dim OutFile As Object
Set DocuFile = oBAPICtrl.DimAs(DocObj, "CheckOutModify2", "DocumentFile")
Set OutFile = oBAPICtrl.DimAs(DocObj, "CheckOutModify2", "CheckedOutFile")
DocuFile.Value("FILE_ID") = "4AA80AA8D94F1B99E10080009EE28028"
OutFile.Value("DOCPATH") = "D:\"
'OutFile.Value("DOCFILE") = "Test.doc"
DocObj.CheckOutModify2 DocumentFile:=DocuFile, CheckedOutFile:=OutFile
On Error Resume Next
MsgBox "File: " & DocuFile("DOCFILE")
MsgBox "Out: " & OutFile("DOCFILE")
Set oConnection = Nothing
Set oBAPICtrl = Nothing
Thanks for your answers,
Thomander
Edited by: Thomander on Sep 14, 2009 8:27 AM
Hello Thomander,
I never did a checkout with this BAPI, but I did it with CheckOutView2 and with VB (see the below). The statement "RfcAllowStartProgram ByVal 0&" is needed to allow your program to start an other program, in this case saphttp.exe.
I was wondering about "J_8A3_DRAW", because I just use "Draw". Why do you use the file_id, usually you don't know the file_id, but you know the DIR-key and the ws-appl of the file you want to checkout.
regards Iring
Private Declare Sub RfcAllowStartProgram Lib "librfc32.dll" (value As Any)
Sub get_file2(ByVal dok_no As String, _
ByVal dok_typ As String, _
ByVal dok_td As String, _
ByVal dok_ver As String, _
ByVal ws_appl As String, _
ByVal get_structure As String, _
ByVal check_out_path As String, _
file_name As String, _
filestring As Variant)
Dim oDocument As Object
Dim oDocumentFiles As Object
Dim oService As Object
Dim oReturn As Object
Dim str1 As String
Dim str2 As String
Dim i As Integer
Dim fso As FileSystemObject
Set fso = CreateObject("Scripting.FileSystemObject")
Dim f As TextStream
RfcAllowStartProgram ByVal 0&
'Creating lokal instance of BO "Draw"
Set oDocument = oBAPICtrl.GetSAPObject("Draw", dok_typ, dok_no, dok_ver, dok_td)
If Err.Number <> 0 Then
MsgBox "No local BO 'Draw' created!"
Exit Sub
End If
Set oDocumentFile = oBAPICtrl.DimAs(oDocument, "CheckOutView2", "DocumentFile")
oDocumentFile("WSAPPLICATION") = ws_appl
oDocument.CheckOutView2 OriginalPath:=check_out_path + "\", _
GetStructure:=get_structure, _
DocumentFile:=oDocumentFile, _
DocumentFiles:=oDocumentFiles, _
DocumentStructure:=oDocumentStructure, Return:=oReturn
Similar Messages
-
Webui checkout of custom document
For document checkout via webui, in the user's guide it says to make versioned and then right click on the file you want to save to your hard drive and do a save as.
This works fine EXCEPT for the files that I have tied to my jsp. (Using webui when a .gif file is clicked on, my jsp runs and a form comes up that allows the user to insert/update custom attribute fields I added.)
When I try the save as for this gif file, all I get is a little box with a red x in it.
Is it because it has custom attributes? I just feel really stupid to have come so far and now not be able to check things out.
Can anyone help?
Thanks.Looked at this further....
From within your custom JSP you can download the target Document by passing control to another JSP that actually downloads the body of the document. For instance...
Here's the JSP
<%@ page import="ifs.pm.common.jsp.JspDownload" %>
<%@ page import="ifs.pm.common.trace.Alert" %>
<%
Alert.setLoggingContext(application);
JspDownload.downloadContent(request,response);
%>
As you can see it simply calls a static method downloadContent. Here's the code for DownloadContent.
package ifs.pm.common.jsp;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import oracle.ifs.beans.Document;
import oracle.ifs.common.IfsException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
public class JspDownload extends Object {
public static void downloadContent(HttpServletRequest request,HttpServletResponse response)
throws IfsException
try {
Document doc = (Document) JspHelper.getObject(request,response);
OutputStream os = response.getOutputStream();
response.setContentType(doc.getFormat().getMimeType());
response.setContentLength((int) doc.getContentSize());
InputStream is = doc.getContentStream();
byte[] bytesRead = new byte[1024];
for (int byteCount = is.read(bytesRead,0,bytesRead.length);
byteCount > 0;
byteCount = is.read(bytesRead,0,bytesRead.length)) {
os.write(bytesRead,0,byteCount);
}catch (Exception e) {
throw new IfsException(9999,e);
This works. The only problem I've not solved at this point is how to set the name of the document that would be created...
This JSP would be called from the custom JSP as follows:
<a href="../common/download.jsp?path=<%=request.getParameter(JspHelper.DOCUMENT_PATH)%>">Download
</a>
getObject() is a convieniance method that gets the iFS object referrenced in the Path paramter when the JSP is invoked.
Hope this helps... -
CVS files checked out have execute bit cleared?
Greetings,
I just checked out my build tree, which includes some scripts.
Those scripts have their execute bit cleared.
If I remove those files and do a cvs update in that dir manually, the scripts are checked out with execute bit set.
Anyone else run into this?
How can this be fixed?checkout via cvs on command line works fine.
Our cvs doesn't recognize the PreservePermissions keyword when put in the config file.
Which version of cvs are you using? 1.11.x or 1.12.x? -
How to build a package from sources
hi all,
Can someone please give some advices regarding making binaries from sources. I have found that a lot of programs on Snow Leopard can be also run in terminal and are in source form and need to be build. I have installed Xcode already and I have some programming skills as well such as using MinGW (GNU GCC) and VS EE on WinXP. I have never done anything in any UNIX-like system and I know sources need to be just compiled.
Please, give me a link if you have any =)
Regards.I think you have done something in a UNIX-like system. MinGW is designed to provide a UNIX-line build system with GCC for Windows. Now, however, you have the real thing.
In most cases, all you need to do is extract the source tarbar into a directory (or checkout via CVS or SVN). Go into that directory with the Terminal and type "configure" and, if that goes well, "make", and if that looks good "sudo make install". -
Hi everyone,
I have the following issue. After changing the context path, via felix console, I can not checkout the content via vlt. Before that, I could checkout without any problems.
I am using CQ5.5, CRX2.3, context path: /Test
That is what I am trying:
vlt -v --credentials admin:admin co http://localhost:23310/Test/server/crx.default
Connecting via JCR remoting to http://localhost:23310/Test/server
[WARN ] Authentication required to access repository descriptors
[ERROR] checkout: com.day.jcr.vault.vlt.VltException: Unable to mount filesystem
caused by: javax.jcr.ItemNotFoundException: Not Found
caused by: org.apache.jackrabbit.webdav.DavException: Not Found
Other versions I tried:
vlt -v --credentials admin:admin co http://localhost:23310/crx
vlt --credentials admin:admin co http://localhost:23310/Test/server
vlt --credentials admin:admin co http://localhost:23310/Test
vlt --credentials admin:admin co http://localhost:23310/Test/crx
To verify if I could connect to the instance properly I started CRXDE
and try to connect to "http://localhost:23310/Test"
After click the ok button I got that error:
No file system is defined for scheme: jcr
Part of the .log file (.crxde):
eclipse.buildId=unknown
java.version=1.6.0_37
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE
Framework arguments: -keyring /Users/peterwimsey/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/peterwimsey/.eclipse_keyr
ing -showlocation
!ENTRY org.eclipse.core.resources 2 10035 2012-11-25 19:01:19.268
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to
recover changes.
!ENTRY org.eclipse.osgi 4 0 2012-11-25 19:04:14.363
!MESSAGE Application error
!STACK 1
java.lang.reflect.InvocationTargetException
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121)
at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau
ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav
a:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50)
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65)
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107)
at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350)
at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100)
at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6)
Any tips or hints are welcome.
In the case you need more information, just leave a note.
Thanks in advance for your help.
Best regards,
PeterThe VLT works fine with the above URL change but How to fix "CRXDE" Initialization error if a context path is defined?
I have a context path defined /Test and when I am trying to login to CRXDE with URL as http://localhost:4502/Test, I am getting below Initialization Error.
Any workaround as Which URL should work while logging to repository (with context path) using CRXDE 1.0.1
eclipse.buildId=unknown java.version=1.6.0_06 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.osgi 4 0 2013-04-25 17:50:23.802 !MESSAGE Application error !STACK 1 java.lang.reflect.InvocationTargetException at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121) at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55) at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50) at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65) at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107) at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350) at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100) at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6) at com.day.cq.ide.init.SetupWorkspaceOperation.execute(SetupWorkspaceOperation.java:119) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118) ... 13 more Root exception:
Thanks. -
Hi, I have just purchased a new Macbook Pro. Whenever I try and buy anything on the internet (via Safari) on any website it will not allow me to add products to checkout. Has anyone else experienced this problem or can suggest a fix? Many thanks!
On all shopping sites, or only some? What happens when you try?
-
ISE Addon for Checkout or Checkins via TFS 2013
Hi
I am coordination the development of some PowerShell scripts to work against our SharePoint Farm. Now as there is more that just me developing these scripts, I think we need to start doing regular checkin and checkouts in our TFS 2013. Anyway,
I naively thought there must be an addon I could add to ISE for this; since it seems such a common requirement. However, there does seem much out there that is actively being used. Are there alternatives that are widely used such a series of PS functions
anyone knows about.
Daniel
Freelance consultantHi Daniel,
If you want to complete checkout in Powershell ISE automatically, please go through this article:
Protect Your PowerShell Scripts with Version Control
In addition, you can also refer to this script
PowerShell ISE-specific profile script, which performs a few simple things:
Checks if you have the TFS client installed (eg Team Explorer).
Registers for ISE events on each open file and any files you open later.
Upon editing of a file, if it is TFS-managed then checks it out.
The end result is the same TFS workflow experience from within the PowerShell ISE as Visual Studio provides.
Refer to:
Automatic TFS Check Out for PowerShell ISE
If there is anything else regarding this issue, please feel free to post back.
If you have any feedback on our support, please click here.
Best Regards,
Anna Wang
TechNet Community Support -
How can i get print invoice via guest checkout with order number?
hi. i ordered an ipad one month ago via guestcheckout. now i need a bill about ipad. but i cant get a print invoice with order number. Site asks me for apple id.but i didnt use the apple id when i ordered this ipad
is there a way to get a print invoice?
i know i can call to apple. but actually i m living in turkey. so calling from turkey to U.S may take lots of money i think.If you click on the column headings in iTunes it will sort the tracks by the column you have selected.
Try clicking on the Album column, this should then put the tracks in the right order. You probably have the Track column selected which will keep the tracks in alphabetical order by Track name.
Ian -
Create new version, checkout, checkin workflow not correct via abap
Hey,
I wrote an abap programm with the following workflow:
- I create a new version of the document CVAPI_DOC_CREATE_NEW_VERSION
- I check out the new version with CVAPI_DOC_CHECKOUTMODIFY
- I check in the file with the new content CVAPI_DOC_CHECKIN
And now there are 2 files in DMS with the same version. But there should be only one document with version 01.
The method CREATE_NEW_VERSION creates an dms document. But also the CVAPI_DOC_CHECKIN method creates an document in dms. But the checkin method should override the new version.
Thanks for your support.
BR,
ChristophHi Christoph,
unfortunately it is very hard to suggest a detailed solution for your individual program. Personally I would recommend you to
use the following sequence:
- I create a new version of the document CVAPI_DOC_CREATE_NEW_VERSION
- BAPI_DOCUMENT_GETDETAIL2 to read out the current document data
- I check out the new version with CVAPI_DOC_CHECKOUTMODIFY
- BAPI_DOCUMENT_GETDETAIL2 to read out the current document data
- I check in the file with the new content API_DOCUMENT_MAINTAIN2 or BAPI_DOCUMENT_CHANGE2.
If you enter the storage category in the table DOCUMENTFILES of the mentioned function modules the file should be
checked in again. For further information on the DMS BAPI behavior please see the attached documentation to SAP note 766277.
Best regards,
Christoph -
I am trying to renew my PC Tools Spyware and Antivirus license but when I go to their site and enter all the relevant information I cannot get past the final "Pay Now" button. The button changes colour to show it has recognised my 'click' but does not take me any further. I have conferred with their Customer Service and they have tried very hard to give alternative routes to this final transaction stage but to no avail. The last suggestion was that there may be a setting I have to change within Firefox. Anybody help please?
I did update to the latest version of Firefox a couple of weeks ago and had no difficulties before then.Hi,
You can try to access the site in a [https://support.mozilla.org/en-US/kb/Managing-profiles?s=profile&r=0&e=sph&as=s new profile]. If the problem persists you can also try to complete the transaction in Internet Explorer.
[https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto] -
Excel VBA - Automatically checkout and checkin documents from SAP R/3
Hello,
I'm trying to implement some sort of automatic solution for checking out and in documents in SAP.
We have EasyDMS as Document Management System and need to reword about 10000 files which have a bug in their macro. For this purpose I created an Addin for Word and Excel that changes the macros automatically when opening a file. Due to security problems we cannot distribute this Addin to all Users (because you must deactivate macro security for enabling this Addin). So we thought about a possibility to automate the process and do the changes over weekend.
My idea was to write a makro in Excel that takes the information about the files (documentnumber, version...) form an Excel table and uses RFC to call a function that can checkout the files. On this machine the Addin would be enabled, of course.
I found the function "BAPI_DOCUMENT_CHECKOUTMODIFY2" and tried to implement the call via RFC, but I get an error.
The error says: Application-defined or object-defined error
I think the Problem is the data structure of the parameters.
Can someone figure out how I have to set up the parameters to get the function to work? I have no idea how this should be done, although I read some tutorials.
Thanks for your help!
regards,
Thomander
Here is my Code so far (I stopped because I get the error at line "objDocumentfile.Value = "Test 2.doc"):
Dim sapConn As Object 'Declare variant
Set sapConn = CreateObject("SAP.Functions") 'Create ActiveX object
If sapConn.Connection.Logon(0, False) <> True Then 'Try Logon
MsgBox "Cannot Log on to SAP"
End If
Dim objFunction As Object
Set objFunction = sapConn.Add("BAPI_DOCUMENT_CHECKOUTMODIFY2")
Dim objDocumenttype As Object
Dim objDocumentnumber As Object
Dim objDocumentpart As Object
Dim objDocumentversion As Object
Dim objDocumentfile As Object
Set objDocumenttype = objFunction.Exports("DOCUMENTTYPE")
objDocumenttype.Value = "PM2"
Set objDocumentnumber = objFunction.Exports("DOCUMENTNUMBER")
objDocumentnumber.Value = "A5N00030059989"
Set objDocumentpart = objFunction.Exports("DOCUMENTPART")
objDocumentpart.Value = "000"
Set objDocumentversion = objFunction.Exports("DOCUMENTVERSION")
objDocumentversion.Value = "D"
Set objDocumentfile = objFunction.Exports("DOCUMENTFILE") = "Test 2.doc"
objDocumentfile.Value = "Test 2.doc"
Dim objCheckedoutfile As Object
Set objCheckedoutfile = objFunction.Exports("CHECKEDOUTFILE")Hello,
I'm trying to implement some sort of automatic solution for checking out and in documents in SAP.
We have EasyDMS as Document Management System and need to reword about 10000 files which have a bug in their macro. For this purpose I created an Addin for Word and Excel that changes the macros automatically when opening a file. Due to security problems we cannot distribute this Addin to all Users (because you must deactivate macro security for enabling this Addin). So we thought about a possibility to automate the process and do the changes over weekend.
My idea was to write a makro in Excel that takes the information about the files (documentnumber, version...) form an Excel table and uses RFC to call a function that can checkout the files. On this machine the Addin would be enabled, of course.
I found the function "BAPI_DOCUMENT_CHECKOUTMODIFY2" and tried to implement the call via RFC, but I get an error.
The error says: Application-defined or object-defined error
I think the Problem is the data structure of the parameters.
Can someone figure out how I have to set up the parameters to get the function to work? I have no idea how this should be done, although I read some tutorials.
Thanks for your help!
regards,
Thomander
Here is my Code so far (I stopped because I get the error at line "objDocumentfile.Value = "Test 2.doc"):
Dim sapConn As Object 'Declare variant
Set sapConn = CreateObject("SAP.Functions") 'Create ActiveX object
If sapConn.Connection.Logon(0, False) <> True Then 'Try Logon
MsgBox "Cannot Log on to SAP"
End If
Dim objFunction As Object
Set objFunction = sapConn.Add("BAPI_DOCUMENT_CHECKOUTMODIFY2")
Dim objDocumenttype As Object
Dim objDocumentnumber As Object
Dim objDocumentpart As Object
Dim objDocumentversion As Object
Dim objDocumentfile As Object
Set objDocumenttype = objFunction.Exports("DOCUMENTTYPE")
objDocumenttype.Value = "PM2"
Set objDocumentnumber = objFunction.Exports("DOCUMENTNUMBER")
objDocumentnumber.Value = "A5N00030059989"
Set objDocumentpart = objFunction.Exports("DOCUMENTPART")
objDocumentpart.Value = "000"
Set objDocumentversion = objFunction.Exports("DOCUMENTVERSION")
objDocumentversion.Value = "D"
Set objDocumentfile = objFunction.Exports("DOCUMENTFILE") = "Test 2.doc"
objDocumentfile.Value = "Test 2.doc"
Dim objCheckedoutfile As Object
Set objCheckedoutfile = objFunction.Exports("CHECKEDOUTFILE") -
Communication error when calling web service for checkin and checkout files
Hello,
I am trying to checkout and also to checkin files within the DMS via web service. The files are stored in the VAULT (=TRESOR) without the data server parth and DVA computer.
For checkout:
Original zum Ändern auschecken
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTMODIFY2'
EXPORTING
documenttype = pi_documenttype
documentnumber = pi_documentnumber
documentpart = pi_documentpart
documentversion = pi_documentversion
documentfile = lf_documentfiles
pf_http_dest = ''
pf_ftp_dest = ''
statusextern = lf_status
IMPORTING
return = lf_return
checkedoutfile = ls_checkedoutfile.
and for checkin:
Dokument einchecken
CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
EXPORTING
documenttype = pi_documenttype
documentnumber = pi_documentnumber
documentpart = pi_documentpart
documentversion = pi_documentversion
hostname = ''
statusintern = ''
statusextern = lf_status
statuslog = ''
IMPORTING
return = lf_return
TABLES
documentfiles = lt_files.
But it is not working cause I always get a 'communication error' from the function CV120_FTP_START_REG_SERVER when calling one of these BAPIs via web service:
IF pf_check_gui = 'X'.
CLEAR: gf_gui_exist,
gf_gui_checked.
CALL FUNCTION 'RFC_PING'
DESTINATION 'SAPGUI'
EXCEPTIONS: communication_failure = 1 MESSAGE lf_msg_text
system_failure = 2 MESSAGE lf_msg_text.
IF sy-subrc = 0.
gf_gui_exist = 'X'.
ELSE.
CLEAR gf_gui_exist.
ENDIF.
gf_gui_checked = 'X'.
ENDIF.
Afterwards the following function is called where I got the error 'Program no longer started via RFC. No return possible.':
-> Vault with DVA -> ** Start FTP on the client
CALL FUNCTION 'SYSTEM_START_REG_SERVER'
EXPORTING: progname = 'sapftp'
startmode = '' " X
exclusiv = 'Y'
waittime = 500
startcomp = 'C' " G=gui, C=RFC
startpara = ' '
IMPORTING: err_code = lf_errno
err_mess = lf_error_msg
destination = pfx_destination.
Regards
JensHi! As mentioned below I had the same problem.
There are two notes concerning security setting of the SAP Gateway:
1069911 - GW: Changes to the ACL list of the gateway (reginfo)
1480644 - gw/acl_mode versus gw/reg_no_conn_info
Your basis team should check if the Gateway settings allow external programs to register on the gateway.
Best regards
Dominik -
Want to use FiOS TV via CableCARD - CSR insists I must lease at least one set-top box
Started looking into subscribing to Verizon using a CableCARD-based tuner, since I don't actually own a TV.
I did some research at verizon.com and ran across this page (important parts in bold):
CableCARDS
A CableCARD is a device that provides access to certain encrypted High Definition (HD) and Standard Definition (SD) digital programs without the need for a Set-Top Box.
CableCARD Features and Services
What digital programs can I watch with my CableCARD?
You can view all FiOS TV Standard Definition and High Definition digital channels to which you subscribe. You can also order certain Pay-Per-View events by calling 1-800-VERIZON (1-800-837-4966). Without a Set-Top Box, you do not have access to On Demand programming, the FiOS TV Interactive Media Guide, or other advanced features of the FiOS TV service.
So far, so good. I logged into my account, selected a package, and started the checkout process - and then encountered an odd question: "How many set-top boxes do you need?", where the options were a drop-down list starting with 1 and scaling up. There's an extra $12/month charge (plus taxes, of course) for just one box, and more for other boxes. No way to skip that step.
So apparently, according to Verizon's service rep... I need to pay $12/mo+tax for a set-top box that I don't need, and that will sit on a shelf while I watch Verizon TV through my fully-supported CableCARD adapter.sangs wrote:
You don't need an STB or DVR, but here's the easiest thing to do - and I just did it, so I know it works.
Get the STB or DVR along with the Cable Cards. Get everything activated and working - including the cable cards - then return your STB or DVR, either to a FiOS store or via UPS. Voila, you're done and using only Cable Cards. I only have two Cable Cards on my account. Good luck.
INTERESTING.
I was considering doing this too. I originally had just a cablecard, then ordered a STB for another room. We don't use it so I wanted to return it. I can't!
Brb going to UPS store. -
How do I add a field to my Online Store Checkout Form
None of the webforms for my site, to include one named Online Shop Purchase Form, actually match my currently live store checkout form. I've found the live content under:
Site Manager->Module Templates->Online Shop Layouts->Registration - Buy
I want to begin capturing additional data about my customers by adding a new dropdown field that asks some basic questions. Can I simply add these fields directly into the HTML? Do I just make up my own "input name" and "id" for these fields? Do I have to change something else so I can see this data in my reporting?Keith,
You need to add the custom field within the form details via site manager -> web form. From here add the additional fields as required.
Then go into your registration - buy layout and remove the current form. Re-insert a fresh copy into the layout to view your latest changes of the form.
Kind regards,
-Sidney -
How can I add a default shipping charge to the checkout?
I am sure this is pretty simple, but one of my clients needs to add a default £1.00 charge to all orders at the checkout page. Is this possible? If so any help would be appreciated?
Thanks,Is this like a handling fee or is it for shipping? If you arent' using shipping fees you could setup a shipping rate of $1.
If you are using shipping rates alreay and want this to be more of a handling fee I think you can just add a handling fee to each product as outlined in this thread: http://forums.adobe.com/message/4878177
You can add a default handling charge in eCommerce > Shipping Options. There's a link to show more options on that screen and that will show you the Handling Charge field but it will automatically add it to all orders' shipping costs.
I also found a thread where Liam suggests creating a product for the flat fee you want to add and hiding it on your checkout page and then adding that product via javascript to the cart: http://forums.adobe.com/thread/1160775
The easiest way would be to add the handling fee in the first link.
Maybe you are looking for
-
On Windows XP. I watch videos on CNBC and on FireFox 3.6 I use to right click and open up videos in new tabs and there was no problem, they also only started when I clicked on the tab to view the video which was good because it meant I did not have t
-
Officejet 7610 wide format: can't scan legal documents to pdf
I am having a problem scanning legal documents from the ADF and/or off the glass. only cropped letter size gets created. I believe I am using newest model with the newest drivers. Just purchased and installed drivers from the internet. I need work
-
What is the best way to create a dynamic photo and caption viewer?
Hello I am fairly new to working with Dreamweaver and Flash. I am trying to create some pages where the user can click on one of many thumbnail images on a page and then see a larger image and some corresponding text on the same page in a viewer. Is
-
SAP BW Query failing with ORA ERROR
Hi There We have SAP BW 3.5 on AIX 5.3 TL10. Oracle is 9i (9.2.0.7). Our users are facing problems with Cost calculation job on cubes. The job got failed with below error Database error 1115 at FET access to table /BI0/03538 > ORA-01115: IO error rea
-
XDK support for UTF-16 Unicode
Hi, Does the Oracle Java XDK, specifically the XSQL servlet and api, support UTF16-Unicode. Presumably, .xsql files have to be stored, read and queries executed in a Unicode compliant format for this to work. Is this possible currently??? Thanks, - M