Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Would like to know if there is a way for me to have SAP lisntener using Powerbuilder?

Does anyone has a sample code?

Thank you.
Posted

1 solution

The SAP community network may be a better place to do your research for this.

See this[^] for example
 
Share this answer
 
Comments
Member 10556516 7-Apr-15 8:28am    
Hi

Thank you so much for responding. Appreciate it.
I have done a prog using powerbuilder, however i did encounter error..

T:8368 Error in program 'Pb100': ======> CMALLC : rc=2 > Connect from SAP gateway to RFC server failed
Connect_PM DEST=SAR, GWHOST=sap01761.os.fth.sbs.de, GWSERV=sapgw03, TPNAME=I41

LOCATION SAP-Gateway on host sap01761 / sapgw03
ERROR program I41 not registered
TIME Tue Apr 7 14:18:26 2015
RELEASE 721
COMPONENT SAP-Gateway
VERSION 2
RC 679
MODULE gwr3cpic.c
LINE 1972
DETAIL TP I41 not registered
COUNTER 2

T:8368 Error in program 'Pb100': RFC ITS 173 ==> error ItsWrite ITS_ERROR
T:8368 Error in program 'Pb100': ======>

>>> RfcOpenEx ...
Got following connect_param string:
USER=Z003ATZD CLIENT=101 LANG= PASSWD=******* DEST=SAR ICCE=1 TRACE=1 GETSSO2=1 PCS=1
Got following contents from saprfc.ini:
DEST=SAR TYPE=R R3NAME=I41 PROGID=I41 GWHOST=sap01761.os.fth.sbs.de GWSERV=sapgw03 RFC_TRACE=1

When I used the Destination parameter, i hit that error. The purpose i have used the above is to have RFC Server Connection. I am using saprfc.ini

Do you have alternative way for me to set the TPName or ProgramID directly in my script without using saprfc.ini?

Thank you in advance
CHill60 7-Apr-15 9:45am    
Again, with a specialist question like this you might get more joy at the SAP Developer Center[^]
If you do want to post a question here then raise a new post with the "Ask a Question" link and be sure to include the code that caused the exception and all the information above. I must warn you that I don't see a lot of PowerBuilder stuff around here though, so I would try the Developer Center first
Member 10556516 7-Apr-15 21:51pm    
So sorry, ok I will ask there instead.
Thank you so much for the response.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900