Call VB From SAP
Hi Friends,
Is it possible to call VB database from SAP.....?
if yes than how to do that..........?
Hi Ralf,
try substituting following code:
' the following values are just examples
myStructure("ARCHIV_ID") = "01"
myStructure("ARC_DOC_ID") = "1234567890123457890"
myStructure("AR_OBJECT") = "TIF"
myStructure("DOC_TYPE") = "FIIINVOICE"
myStructure("BARCODE") = "1"
myFunction.Exports("DOCUMENT_ENTRY") = myStructure
with that one:
Set myStructure = myFunction.Exports("DOCUMENT_ENTRY")
' the following values are just examples
myStructure.Fields("ARCHIV_ID") = "01"
myStructure.Fields("ARC_DOC_ID") = "1234567890123457890"
myStructure.Fields("AR_OBJECT") = "TIF"
myStructure.Fields("DOC_TYPE") = "FIIINVOICE"
myStructure.Fields("BARCODE") = "1"
Let me know!
Enjoy!!
Similar Messages
-
Call widgets from SAP EP(WebDynpro)
hi,
Can anyone please tell me how to call widgets from SAP EP (WebDynpro).
Eg. i have created a webdynpro project and i have a button called "SEE WEATHER FORECAST". When i click on it, i should get the widget opened.what does this have to do with XI?
Regards,
Robin -
Can we call bapi from SAP or ABAP How? Pls Step by step
Can we call bapi from SAP How? Pls Step by step
thank you,
Regards,
Jagrut BharatKumar ShuklaHi,
Do you mean you want to access BAPI in ABAP report?
If yes, then YES we can call,
1.Create a report -> In pattern write your BAPI name.
2. It is like your FM , Read correspoding BAPI documentation
3. Fill required parametes.
4. Test run and if successful , final run it.
And from Outside,
You have to establish a connection and create a wrapper and access using avaialble APIs.
Reward if useful! -
Send data to ECC table through RFC Call function from SAP B1 via b1if
Hi,
I have created scenario in B1if which triggers from SAP B1, now I have to send this data in to ECC table, so I have created scenario for that with inbound SAP B1, outbound void and in process RFC Call atom is there but I am not getting data in receiver and also how to write xml to send data in RFC function. Function for RFC has configured from ECC end and have access of that function.
So please help me to send data to ECC table through RFC Call function from SAP B1 (9.0) via b1if
ThanksSolved by my own.
-
Web services call directly from SAP ?
Hi ESA Experts,
Is it possible to make a web service call directly from a SRM or SAP R3 system without using SAP XI ?. If so, have you some code samples ?
Thanks a lot for your response.
Best regards
EtienneHi, Etienne.
There are two things to do.
1. Prepare Service Provider
For providing services, there are many tools to publish as web services
from BAPI, RFC and Enterprise Services.
Please look at here.
help.sap.com - Web Service Toolset
http://help.sap.com/saphelp_nw04s/helpdata/en/db/99c04ba22fe64f96a8651df68eab92/frameset.htm
i recommend Web Service Creation Wizard as first step.
2. Prepare Service Consumer
Also has many tools. What i like is WS Navigator for basic test of web services.
help.sap.com - Web Service Homepage
http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/frameset.htm
Best Regards. -
Calling Webservice from SAP ME
Hi
I have searched the forum unfortunately I am not able to find an answer to my question.
Basically, I would like to call an external System from SAP ME via web service. I am thinking to use Collaboration Link for this purpose. For example COLLABORATION_SHOPORDER_RELEASE, I would like to trigger the Web service.
What should I do? Where Can I get the documentation about this (edit: I have found it in SDK) ? Do I need SDK for it (writting own code)?
This is not SAPMEINT or any ERP integration, it is just custom systtem integration. I appreciate any recomendation.
Thanks
Edited by: Seng Kiang Hoe on Jul 21, 2011 11:19 AM
what I have done are
1. Created a collaborative directive maintenance with just simple HTTP transport (synchronized set to true)
2. In the HTTP transport parameter I inserted the
url=http://xxx:50000/XMII/Runner?Transaction=EquipmentIntegration/trx_CreateOrder
3. In Collaboration Link, I linked COLLABORATION_SHOPORDER_RELEASE to the Directive maintenance I have created.
4. When I releases shop order Internal error occur
Any idea? The url above works. I just want to trigger the MII transaction without input.
Edited by: Seng Kiang Hoe on Jul 21, 2011 2:01 PMHi Ivan
Thank you for answering, but I think you misunderstood what I am looking for.
The plug-ins are already there in ME. For example Transport, I am using Simple HTTP Transport to call an Outbound HTTP. In this case this HTTP is an MII's transaction.
I want to call this WebService each time when I release shop therefore in COllaboration Link Maintenace I have the Trigger Action Collaboration_Shop_Order_Create link to the Collaboration I have created.
I do not want to call MII's transaction with SoapUI but with SAP ME.
Any Idea how I could do it? If you still do not understand what I mean, please let me know. I will try my best to explain it again.
The error that i got from trace
javax.ejb.EJBException: (Failed in component: sap.com/meear) Exception raised from invocation of public void com.sap.me.collaboration.CollaborationDirectiveMsgBean.onMessage(javax.jms.Message) method on bean instance com.sap.me.collaboration.CollaborationDirectiveMsgBean@17d8a085 for bean sap.com/meearxml|me.integration.collaboration.ejb-5.2.4.8-Base.jarxml|CollaborationDirectiveMsgBean in application sap.com/meear.; nested exception is: javax.ejb.TransactionRolledbackLocalException: (Failed in component: sap.com/meear) Exception raised from invocation of public com.sap.me.frame.Data com.sap.me.collaboration.CollaborationHandlerSOBean.processMessage(com.sap.me.collaboration.CollaborationMessage) throws com.sap.me.collaboration.CollaborationException method on bean instance com.sap.me.collaboration.CollaborationHandlerSOBean@4d4b93a7 for bean sap.com/meearxml|me.integration.collaboration.ejb-5.2.4.8-Base.jarxml|CollaborationHandlerSO in application sap.com/meear.; nested exception is: com.sap.me.collaboration.CollaborationConfigurationException: Invalid collaboration configuration: Invalid collaboration configuration: Plug-in not defined. When processing CollaborationMessage: site = 101841, action = COLLABORATION_SHOPORDER_MODIFIED messageID: ID:0067D2B600000072-00000000000185c268202:1314ed962dc:-7fee directive = TRANSPORT_ACTIVITY_BO[java.lang.String]=ActivityBO:SIMPLE HTTP TRANSP
ENABLE_SYNCH_PROCESSING[java.lang.String]=false
MODIFIED_DATE_TIME[com.visiprise.globalization.impl.IcuDateTime]=2011-07-22T11:46:33.000Z
HANDLE[java.lang.String]=CollaborationDirectiveBO:101841,TEST_SHOP_ORDER_RELEASE
TRANSPORT_PARAMETERS[java.lang.String]=url=http://server:50000/XMII/Runner?Transaction=EquipmentIntegration/Auftrag_Process/trx_CreateOrder&IllumLoginName=test&IllumLoginPassword=test&session=false
T_PLUG_INFO[com.sap.me.frame.Data]= ENABLED[java.lang.String]=true
ACTIVITY[java.lang.String]=SIMPLE HTTP TRANSP
CLASS_OR_PROGRAM[java.lang.String]=com.sap.me.collaboration.SimpleHTTPTransport
Edited by: Seng Kiang Hoe on Jul 22, 2011 1:53 PM
Edited by: Seng Kiang Hoe on Jul 22, 2011 1:56 PM -
Does anyone know how I would call Winfax or any other Fax software from SAP ?
Have a look at
FM
call function 'SO_DOCUMENT_SEND_API1'
Regards,
Nikhil -
Hi,
There are a way to call a crystal report (it is not based on a bw querie) from a sap transaction ?
thanks.Classic Crystal Reports and Classic SAP connectivity questions
Classic Crystal Reports and Classic SAP connectivity questions -
Calling subroutine from SAP script
I am using the below code within my SAP script form that prints GR/GI Slips but its not working. And the only way I can issue the output is from MB02 whcih doesn't seem to allow to call the debuger, so I'm at a lost as to what to do.
Code in SAP script
/: PERFORM GET_BINS IN PROGRAM ZMM_SAPSCRIPT_FORMS
USING &MSEG-MATNR&
/: USING &MSEG-LGNUM&
/: CHANGING &MABDR-LGPBE&
/: ENDPERFORM
CODE from my subroutine program:
FORM get_bins TABLES input_table STRUCTURE itcsy
output_table STRUCTURE itcsy.
DATA: lc_matnr TYPE matnr,
lc_lgnum TYPE lgnum,
lc_lgpla TYPE lgpla,
lc_index TYPE sy-tabix.
* Material no
READ TABLE input_table WITH KEY name = 'MSEG-MATNR'.
MOVE input_table-value TO lc_matnr.
* Warehouse number
READ TABLE input_table WITH KEY name = 'MSEG-LGNUM'.
MOVE input_table-value TO lc_lgnum.
* Get BIN
SELECT SINGLE lgpla INTO lc_lgpla
FROM mlgt
WHERE matnr = lc_matnr
AND lgnum = 'CPT' "lc_lgnum
AND lgtyp = '001'.
IF sy-subrc = 0.
READ TABLE output_table WITH KEY name = 'MABDR-LGPBE'.
lc_index = sy-tabix.
MOVE lc_lgpla TO output_table-value.
MODIFY output_table INDEX lc_index.
ENDIF./: PERFORM GET_BINS IN PROGRAM ZMM_SAPSCRIPT_FORMS
/: USING &MSEG-MATNR&
/: USING &MSEG-LGNUM&
/: CHANGING &MABDR-LGPBE&
/: ENDPERFORM
FORM get_bins TABLES input_table STRUCTURE itcsy
output_table STRUCTURE itcsy.
DATA: lc_matnr TYPE matnr,
lc_lgnum TYPE lgnum,
lc_lgpla TYPE lgpla,
lc_index TYPE sy-tabix.
Material no
READ TABLE input_table WITH KEY name = 'MSEG-MATNR'.
MOVE input_table-value TO lc_matnr.
Warehouse number
READ TABLE input_table WITH KEY name = 'MSEG-LGNUM'.
MOVE input_table-value TO lc_lgnum.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = lc_matnr
IMPORTING
OUTPUT = lc_matnr .
Get BIN
SELECT SINGLE lgpla INTO lc_lgpla
FROM mlgt
WHERE matnr = lc_matnr
AND lgnum = 'CPT' "lc_lgnum
AND lgtyp = '001'.
IF sy-subrc = 0.
READ TABLE output_table WITH KEY name = 'MABDR-LGPBE'.
lc_index = sy-tabix.
MOVE lc_lgpla TO output_table-value.
MODIFY output_table TRANSPORTING VALUE WHERE NAME = 'MABDR-LGPBE'.
ENDIF. -
Calling Crystal from SAP ABAP / BSP
Can anybody tell me how to call a Crystal Report (RPT on the BO XI Server) from a BSP?
How do you access the RPT on the BOBJ XI Server?
THANKS!Hi,
when you navigate to help.sap.com you can find the product documentation per product and release. Navigate to BusinessObjects enterprise as product and select the version - there you will find information to what is called "OpenDocument" which is a generic application that you can call with URL parameters.
Ingo -
How to call Report from SAP Script
Hi,
I want to know how can we call a report from a SAPscript .
Regards,
Ramanjithe best u can do is
write a perform
perform sub_XXX in program ZXXX.
endperform.
se38...
report zXXX.
form sub_XXX.
submit ZXXX1.
endform.
santhosh -
Calling RFC from JSP : development component
Hi everyone,
I created JSP that call RFC from SAP/R3.
I have problem with the DestinationService.
Without DCs, it worked very good.
But since I created a DC for my JSP project, I have exception at run time regarding
the java.lang.NoClassDefFoundError: com/sap/security/core/server/destinations/api/DestinationService.
Eventhough I add the specific jar, I get an excpetion.
Thanks for the help.
DavidGo to the application-j2ee-engine.xml file and add following reference:
<reference
reference-type="weak">
<reference-target
provider-name="sap.com"
target-type="interface">tcsecdestinations~interface</reference-target>
</reference> -
How can i debug a rfc being called from sap
hello Gurus,
We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
the message "Name or password is incorrect (repeat logon)u201D.
How can i find out where the data has stuck.
Please help.
BR
HoneyHI,
please have a look at the link below..
this may help u !!!
[Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
Best of Luck !!1
Regards
Ravi -
How to CATCH error from call to standard SAP Function Module
Please, is it possible to catch the following error with the TRY CATCH ENDTRY construct?
From a custom program, am calling CS_BOM_EXPL_MAT_V2.
Several nested calls in, Form STL_DATEN_HOLEN (LCSS4F1I) calls FM CS_ALT_SELECT_MAT.
However, that call is missing the CALL_INVALID Exception.
CS_ALT_SELECT_MAT is raising CALL_INVALID, but since it was not included in the FM call, the RAISE_EXCEPTION runtime error is issued.
I added a TRY CATCH ENDTRY construct around the call in the custom program using CATCH cx_root, but the program is still short dumping.
All the research I have done has been misleading...some articles indicate all errors should be caught, some indicate only catchable runtime errors can be caught, others are not quite clear.
So, I would like to find out if, in this scenario, it is even possible to catch this error and avoid the short dump.
I will open a message to see about having the SAP code fixed as soon as I get authorization to do so, (as well as fix the data causing the issue in the first place), but in the meantime, I would like to handle it in my code if possible.
ECC 6.0
Thanks for any information!
Kind Regards,
Deb
Edited by: Debra Garner on Jan 26, 2012 5:19 PMHi Debra,
You cannot catch non class based exceptions using the TRY/ENDTRY. You might also find no luck with help from SAP since the FM in question 'CS_BOM_EXPL_MAT_V2' is not released for customer use. The best bet is to examine why the error is occurring and figure out what needs to be done to fix it and/or avoid it in the future.
Regards,
Ryan Crosby -
Dear All,
How can we call web service from SAP?
Thanks in Advance,
RamanaHI kcr,
pls see this link
http://****************/Tutorials/Others/ValidateEmailID/Webservice.htm
write this program
REPORT zvalidate_email.PARAMETERS: p_mail(100) LOWER CASE. " E-Mail id to be verifiedDATA: http_client TYPE REF TO if_http_client .DATA: w_string TYPE string ,
w_result TYPE string ,
r_str TYPE string .DATA: result_tab TYPE TABLE OF string.START-OF-SELECTION .
CLEAR w_string .
CONCATENATE
'http://www.webservicex.net/ValidateEmail.asmx/IsValidEmail?Email=' p_mail
INTO
w_string . CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = w_string
IMPORTING
client = http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4. CALL METHOD http_client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2. CALL METHOD http_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
CLEAR w_result .
w_result = http_client->response->get_cdata( ). REFRESH result_tab .
SPLIT w_result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab . READ TABLE result_tab INTO r_str INDEX 2.
IF r_str+44(1) = 't'.
WRITE:/ 'Valid email address'.
ELSE.
WRITE:/ 'Invalid email address'.
ENDIF.Output:
thanks
karthik
Maybe you are looking for
-
Duh - I can't see the output because it's in another process??
I've been banging my head, trying to learn how to make Unix scripts and Java work together. At my job there's a lot of that, and I'm an intern and wanting to learn more so I've been playing at home. I have a Linux (RedHat7.2) partition at home, so I
-
I am in the process of re-installing ADOBE CREATIVE SUITE 5 DESIGN PREMIUM because I had to change my hard drive. I haven't done this for years. There is a disk that came with the Suite called "CONTENT." It contains FONTS. I followed the instructions
-
Macbook sound to airport express
Hi, I have a airport extreme/airport express network setup here where I can listen to itunes through my home stereo. Works great- works so well I want to be able to listen to non itunes sound through the stereo (streaming media, DVD's, etc.) Is this
-
Date and time of appointment to light. How can I make them darker?
I find the date and time of the appointments show in a light grey color which I find hard to see. How can I make the date show in a darker color?
-
Strange wine behavior, home directory permission change!!
hi all, archers. i'm an arch user since early 2007 and this is my first post. Since now i've always found every information needed and enjoyed this great distribution. btw, now i have a strange behavior with last version of wine in extra repository (