Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to de.alt.comp.sap-r3,microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Two VBA/SAP R/3 Questions

Hello,

I would like to do two things:

1. Update forecasts in the R/3 system via Excel VBA. There are two
ways I could do this and I would appreciate help on either one:
a. Through transaction MC94 and a VBA transaction call
b. Directly updating the R/3 table itself.

2. Call report transactions in R/3 through VBA and return the output
to Excel.

Any help would be VERY appreciated.

Thanks in advance!
Mark
  #2   Report Post  
Posted to de.alt.comp.sap-r3,microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Two VBA/SAP R/3 Questions

Hi Mark
IMHO the way to go is to use SAP function modules (BAPI calls). Don'
update the tables directly (you may get problems when updating SAP)

SAP delivers example codes for calling function modules from VB, JAVA,
C++, etc. this should be adaptable to VBA (though i have never done
this).

--
Regards
Frank Kabel
Frankfurt, Germany

Mark Bigelow wrote:
Hello,

I would like to do two things:

1. Update forecasts in the R/3 system via Excel VBA. There are two
ways I could do this and I would appreciate help on either one:
a. Through transaction MC94 and a VBA transaction call
b. Directly updating the R/3 table itself.

2. Call report transactions in R/3 through VBA and return the output
to Excel.

Any help would be VERY appreciated.

Thanks in advance!
Mark


  #3   Report Post  
Posted to de.alt.comp.sap-r3,microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Two VBA/SAP R/3 Questions

Mark,

Frank is correct regarding updating SAP, use the supplied API. Even if you
could work out how to update directly, you are creating a maintenance
headache when SAP moves on . The API will be protected, the fundamentals
less likely to be.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi Mark
IMHO the way to go is to use SAP function modules (BAPI calls). Don'
update the tables directly (you may get problems when updating SAP)

SAP delivers example codes for calling function modules from VB, JAVA,
C++, etc. this should be adaptable to VBA (though i have never done
this).

--
Regards
Frank Kabel
Frankfurt, Germany

Mark Bigelow wrote:
Hello,

I would like to do two things:

1. Update forecasts in the R/3 system via Excel VBA. There are two
ways I could do this and I would appreciate help on either one:
a. Through transaction MC94 and a VBA transaction call
b. Directly updating the R/3 table itself.

2. Call report transactions in R/3 through VBA and return the output
to Excel.

Any help would be VERY appreciated.

Thanks in advance!
Mark




  #4   Report Post  
Posted to de.alt.comp.sap-r3,microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Two VBA/SAP R/3 Questions

And another addition:
Most clients I know have prohibited direct access to the physical
database. The easiest way to do this - you won't get a database user
:-) Only the SAP application has a DB user assigned to.

If you like, mail me directly and I can provide you some sample
code/definition to access SAP queries / output from SAP's ALV Grid.
You may also check if a real-time update is really requiered. For most
applications a batch oriented procedure works well enough. Just export
your query results by a report to a defined network path/drive (e.g. as
CSV file) and import/process this file (I know this sound like
Mainframe but still it works well)


--
Regards
Frank Kabel
Frankfurt, Germany

Bob Phillips wrote:
Mark,

Frank is correct regarding updating SAP, use the supplied API. Even
if you could work out how to update directly, you are creating a
maintenance headache when SAP moves on . The API will be protected,
the fundamentals less likely to be.


"Frank Kabel" wrote in message
...
Hi Mark
IMHO the way to go is to use SAP function modules (BAPI calls). Don'
update the tables directly (you may get problems when updating SAP)

SAP delivers example codes for calling function modules from VB,
JAVA, C++, etc. this should be adaptable to VBA (though i have never
done this).

--
Regards
Frank Kabel
Frankfurt, Germany

Mark Bigelow wrote:
Hello,

I would like to do two things:

1. Update forecasts in the R/3 system via Excel VBA. There are

two
ways I could do this and I would appreciate help on either one:
a. Through transaction MC94 and a VBA transaction call
b. Directly updating the R/3 table itself.

2. Call report transactions in R/3 through VBA and return the
output to Excel.

Any help would be VERY appreciated.

Thanks in advance!
Mark


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
2 questions assaf1978 Charts and Charting in Excel 4 February 16th 09 10:26 AM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
3 Questions Django Cat[_2_] Excel Discussion (Misc queries) 16 November 12th 07 10:30 PM
2 questions about IF yairl Excel Worksheet Functions 2 May 30th 06 09:58 PM


All times are GMT +1. The time now is 03:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"