After portal copy "connection refused" for SAP transactions
Hi.
We made a system copy of Portal and executed all follow up tasks.
We already changed systems alias properties and tested connections.
All is working except SAP transactions functionality.
When we try to use, we always get message:
patner '10.0.0.132:sapdp00' not reached.
WSAECONNREFUSED: Connection refused.
Curious thing is: the system we are trying to reach use system number 10 (not 00).
We look for this parameter value in every part, on portal configuration, and all seems to be perfect.
We are without options, and we don't know what is missing/wrong.
May anyone help us to find this solution?
Best regards.
Vreeswijk
Hi,
From portal on which backend system you are running transaction and Is portal able to reach that system ?
Thanks
Sunny
Similar Messages
-
System crash while using Callable objects for SAP transaction !!
Hi all,
i have created a CO to use SAP transaction, i have created a system, its connection test is successfull.when i create the CO and specify the system and Tcode, and Test it, its giving a Short dump saying its crashed, do anyone knows the rerason??please guide me
Thanx in advanceHi Audrey
The Help for SAP Transactional iView can be found here - but although I have followed these steps and an associated blog it still does not work for me. Perhaps you will have more luck. See below for my particular error (if your able to help me ;-).)
SAP Help for SAP Transactional iView
http://help.sap.com/saphelp_nw04/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
SAP Blog for the same
Create SAP Transaction iView using SAPGUI for Windows
NOTE : Sadly I cannot get mine to work !! ****
I'm also trying to create a SAP Transaction iView. Following these steps.
I can preview the iView OK. So it seems that System and Alias are OK.
BUT when I logon as a user on the Portal with that iVew it fails with the same type of error you had.
"Unable to lookup System 'SAPDBEAlias'. Please check the system object and the alias.." -
Creation of "Web Dynpro for Java" for SAP transaction
Hi All,
In EP when we create SAP transaction iView for SAP transaction,
a)ITS server is required if we choose SAP GUI Type as WebGui(Performance wise as well as some other issues)
b)SAP GUI has to be installed if we choose SAP GUI Type as WinGui.(User has to install SAP GUI).
Can we overcome these two issues by creating Web Dynpro application for SAP transaction in quicker way. Any suggestions are appreciated.
Thanks and Regards,
Gangadharayya.Hi,
It is not possible to display a transaction directly in a java web dynpro. If you do not want to use a transaction iview the only other possibility is to create a web dynpro that uses BAPI's as models.
Regards,
Christophe -
No Connection after installing SP 2.3 for SAP Integration Kit
Hello Community!
We just installed Service Pack 2 and Fix Pack 2.3 (in this order) for SAP Integration Kit on one of our client's servers. Before that everything worked fine. After the installation I verify the CE connection in /crystal/rptadmin. The result is:
Unable to log on to Enterprise system. Reason: Unable to log on: Could not connect to server vm103:6400. Please check that the server name is correct, and that the server is running.
I checked the RFC connection in sm59 but that works normally. BW Publisher Service is also running. The servers (BW and BO) are on the same machine: Windows 2008, 64bit, SQL Server, BOE XI 3.1 SP 2.
The BW Publisher Trace log shows the following entry:
[Fri Feb 26 12:45:57 2010] 1480 6084 SAP bwcepub: Tracing is enabled.
[Fri Feb 26 12:46:17 2010] 1480 6084 Entering CPubReqPing::Process(1)
[Fri Feb 26 12:46:17 2010] 1480 6084 Logging on to Crystal Enterprise
[Fri Feb 26 12:46:23 2010] 1480 6084 ERROR: .\system_connectors.cpp [479]: l_pSessionMgr->Logon(l_bstrUserName, l_bstrPassword, l_bstrCMSName, l_bstrAuthMethod, &m_pSession) failed with return code l_hr = -2147219455
[Fri Feb 26 12:46:23 2010] 1480 6084 Leaving CPubReqPing::Process(1)
[Fri Feb 26 12:46:23 2010] 1480 6084 Dispatch returned with code 0 and message [See RFC trace file or SAP system log for more details]
When I try to log into BO Info View or CMC with my SAP credentials CMS crashes without any logs!
This is now the 2nd server with that issue!
Any ideas what this could be?
Thank!
philNo, this happens only by logging in with SAP credentials.
CMS log file shows a huge list of entries like this one:
.\pluginhelper.cpp:276: TraceLog message 1
2010/02/26 11:46:49.316|>>|A| | 936|6040| |||||||||||||||assert failure: (.\pluginhelper.cpp:276). (0 : Error reading pin file E:\Business Objects\BusinessObjects Enterprise 12.0\packages\BusinessObjects_ClientActionSet_CrystalReport_UploadSet_dfo.xmlwarnings:
errors:
fatal errors:
Fatal Error in file: E:\Business Objects\BusinessObjects Enterprise 12.0\packages\BusinessObjects_ClientActionSet_CrystalReport_UploadSet_dfo.xml, line: 1, col: 1, Message: Invalid document structure
But I've got these entries on other systems too... -
Adding Data to the database for SAP Transactions
Hi
I'm new to the whole ABAP. I would like to enquire about adding transaction data in SAP through ABAP but it must be immediate.
I know that one can use a BAPI to add data and can rollback if any problems occur.
But if no BAPI exists how does one write code to add a document to the SAP database but with everything SAP transaction requires like the BAPI. What is the process and how???
So let say I wanted to do FB01 which is SAP FI document and must be immediate. There is a BAPI that exists for it but if there was not one how would I do this???
I know one can also use BDC but that creates a batch and then needs to be executed in SM35, I want a way to add data for two or three SAP transactions, if any problems occur with any of the steps rollback everything else commit everything to the database.
Any simple detail examples (code) that satisfy the above will be greatly appreciated and REWARDED.
Thanks in advanceLuis,
i have a code exactly same BDC for FB01.
refer:
REPORT z_etching_fb01
NO STANDARD PAGE HEADING LINE-SIZE 255.
*etching invoice load
INCLUDE bdcrecx1.
TYPE-POOLS: truxs , slis.
*PARAMETERS: dataset(132) LOWER CASE DEFAULT
* 'c:\temp\etchingload.txt'.
PARAMETER: pfile LIKE rlgrap-filename." OBLIGATORY.
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
PARAMETER: p_kunnr LIKE kna1-kunnr OBLIGATORY, "kna1-kunnr
p_bukrs LIKE bseg-bukrs,
p_mwskz LIKE t007a-mwskz OBLIGATORY,"t007a-mwskz
p_prctr LIKE cepc-prctr OBLIGATORY,"cepc-prctr
* p_newko LIKE ska1-saknr OBLIGATORY DEFAULT 41000000,"
p_budat LIKE bkpf-budat OBLIGATORY ,
p_hkont LIKE bseg-hkont OBLIGATORY DEFAULT 41000000 ,
p_waers TYPE waers OBLIGATORY DEFAULT 'GBP'."tcurr-waers
SELECTION-SCREEN END OF BLOCK a.
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
PARAMETER : report AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK b.
*** DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
* If it is nessesary to change the data section use the rules:
* 1.) Each definition of a field exists of two lines
* 2.) The first line shows exactly the comment
* '* data element: ' followed with the data element
* which describes the field.
* If you don't have a data element use the
* comment without a data element name
* 3.) The second line shows the fieldname of the
* structure, the fieldname must consist of
* a fieldname and optional the character '_' and
* three numbers and the field length in brackets
* 4.) Each field must be type C.
*** Generated data section with specific formatting - DO NOT CHANGE ***
* ALV *
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat LIKE LINE OF it_fieldcat,
it_top_of_page TYPE slis_t_listheader,
ls_layout TYPE slis_layout_alv,
gt_events TYPE slis_t_event.
DATA: it_raw TYPE truxs_t_text_data.
DATA: BEGIN OF record,
* data element: BLDAT
bldat_001(010), "Invoice Date
* data element: BLART
blart_002(002), " Doc Type DR or DG if credit
* data element: BUKRS
bukrs_003(004), " Company Code
* data element: BUDAT
budat_004(010), "Posting Date
* data element: MONAT
monat_005(002), "period"
* data element: WAERS
waers_006(005), "Currency
* data element: XBLNR1
xblnr_007(016), "Invoice Number
* data element: BKTXT
bktxt_008(025), "PO number
* data element: SAEOBJART
docid_009(010),
* data element: NEWBS
newbs_010(002), "posting Key
* data element: NEWKO
newko_011(017), "Customer number or GL account
* data element: WRBTR
wrbtr_012(016), "Amount
* data element: DZTERM
zterm_013(004),
* data element: DZBD1T
zbd1t_014(003),
* data element: DZFBDT
zfbdt_015(010),
* data element: DZUONR
zuonr_016(018), "Invoice Number
* data element: SGTXT
sgtxt_017(050), " PO number
* data element: NEWBS
newbs_018(002),
* data element: NEWKO
newko_019(017), "GL Account
* data element: WRBTR
wrbtr_020(016), "Amount
* data element: MWSKZ
mwskz_021(002), "Tax
* data element: DZUONR
zuonr_022(018), "Invoice Number
* data element: SGTXT
sgtxt_023(050), "PO Number
* data element: PRCTR
prctr_024(010), "Profit Center
* data element: WRBTR
wrbtr_025(016), " Amount
* data element: MWSKZ
mwskz_026(002), "Tax
* data element: DZUONR
zuonr_027(018), "Invoice Number
* data element: SGTXT
sgtxt_028(050), "PO Number
* data element: FMORE
fmore_029(001),
* data element: PRCTR
prctr_030(010), "Pr Center
* data element: FWSTE
fwste_01_031(016),
END OF record.
DATA: BEGIN OF it_excel OCCURS 0,
* data element: XBLNR1
xblnr_007(016), "Invoice Number
* data element: BLDAT
bldat_001(010), "Invoice Date
* data element: WRBTR
wrbtr_012(016), "Amount
* data element: WRBTR
wrbtr_025(016), " Tax Amount
* data element: WRBTR
wrbtr_020(016), "Gross Amount
* data element: BLART
blart_002(002), " No of units
* data element: MONAT
monat_005(002), "No of units second test"
* data element: BKTXT
bktxt_008(025), "PO number
* data element: SGTXT
sgtxt_017(050), " PO number
* data element: BUKRS
bukrs_003(004), " Company Code
* data element: BUDAT
budat_004(010), "Posting Date
* budat_004 TYPE string, "Posting Date
* data element: WAERS
waers_006(005), "Currency*
* data element: NEWKO
newko_011(017), "Customer number or GL account
* data element : kunnr
kunnr_019(010), " customer
mwskz(002),
prctr(010),
date(002),
month(002),
** data element: BKTXT
* bktxt_008(025), "PO number
** data element: SAEOBJART
* docid_009(010),
** data element: NEWBS
* newbs_010(002), "posting Key
** data element: DZTERM
* zterm_013(004),
** data element: DZBD1T
* zbd1t_014(003),
** data element: DZFBDT
* zfbdt_015(010),
** data element: DZUONR
* zuonr_016(018), "Invoice Number
** data element: NEWBS
* newbs_018(002),
** data element: NEWKO
* newko_019(017), "GL Account
** data element: MWSKZ
* mwskz_021(002), "Tax
** data element: DZUONR
* zuonr_022(018), "Invoice Number
** data element: SGTXT
* sgtxt_023(050), "PO Number
** data element: PRCTR
* prctr_024(010), "Profit Center
** data element: MWSKZ
* mwskz_026(002), "Tax
** data element: DZUONR
* zuonr_027(018), "Invoice Number
** data element: SGTXT
* sgtxt_028(050), "PO Number
** data element: FMORE
* fmore_029(001),
** data element: PRCTR
* prctr_030(010), "Pr Center
** data element: FWSTE
* fwste_01_031(016),
END OF it_excel.
DATA : BEGIN OF it_bkpf OCCURS 0,
belnr LIKE bkpf-belnr,
budat LIKE bkpf-budat,
bldat LIKE bkpf-bldat,
xblnr LIKE bkpf-xblnr,
bktxt LIKE bkpf-bktxt,
total LIKE bseg-dmbtr,
numdocs TYPE p DECIMALS 0,
END OF it_bkpf,
BEGIN OF it_bseg OCCURS 0,
belnr LIKE bseg-belnr,
dmbtr LIKE bseg-dmbtr,
mwsts LIKE bseg-mwsts,
pswsl LIKE bseg-pswsl,
END OF it_bseg,
BEGIN OF it_final OCCURS 0,
belnr LIKE bkpf-belnr,
budat LIKE bkpf-budat,
bldat LIKE bkpf-bldat,
xblnr LIKE bkpf-xblnr,
bktxt LIKE bkpf-bktxt,
dmbtr LIKE bseg-dmbtr,
mwsts LIKE bseg-mwsts,
pswsl LIKE bseg-pswsl,
END OF it_final.
***** End generated data section ***
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pfile.
PERFORM sub_browse_file. "Get file name
START-OF-SELECTION.
PERFORM sub_data_load. " Transfer excel into internal table.
PERFORM sub_calc_excel.
IF report = 'X'.
* PERFORM data_selection.
* PERFORM data_move.
*********************************GET ALV DATA
PERFORM alv_get_data.
*********************************ALV GRID DATA
PERFORM alv_grid.
ENDIF.
*if report = ''.
* PERFORM write.
* PERFORM open_dataset USING dataset.
PERFORM open_group.
* DO.
* READ DATASET dataset INTO record.
LOOP AT it_excel.
* IF sy-subrc <> 0. EXIT. ENDIF.
PERFORM bdc_dynpro USING 'SAPMF05A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF05A-NEWKO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BKPF-BLDAT'
it_excel-bldat_001.
PERFORM bdc_field USING 'BKPF-BLART'
'DR'." record-blart_002.
PERFORM bdc_field USING 'BKPF-BUKRS'
it_excel-bukrs_003.
PERFORM bdc_field USING 'BKPF-BUDAT'
it_excel-budat_004.
PERFORM bdc_field USING 'BKPF-MONAT'
'3'. "record-monat_005.
PERFORM bdc_field USING 'BKPF-WAERS'
it_excel-waers_006.
PERFORM bdc_field USING 'BKPF-XBLNR'
it_excel-xblnr_007.
PERFORM bdc_field USING 'BKPF-BKTXT'
it_excel-bktxt_008.
PERFORM bdc_field USING 'FS006-DOCID'
'*' ."record-docid_009.
PERFORM bdc_field USING 'RF05A-NEWBS'
'01'." record-newbs_010.
PERFORM bdc_field USING 'RF05A-NEWKO'
it_excel-kunnr_019 .
PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF05A-NEWKO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BSEG-WRBTR'
it_excel-wrbtr_020." it_excel-wrbtr_012.
PERFORM bdc_field USING 'BSEG-ZTERM'
'NT30' ." record-zterm_013.
PERFORM bdc_field USING 'BSEG-ZBD1T'
'30'."record-zbd1t_014.
PERFORM bdc_field USING 'BSEG-ZFBDT'
it_excel-bldat_001."record-zfbdt_015.
PERFORM bdc_field USING 'BSEG-ZUONR'
it_excel-xblnr_007."record-zuonr_016.
PERFORM bdc_field USING 'BSEG-SGTXT'
it_excel-sgtxt_017.
PERFORM bdc_field USING 'RF05A-NEWBS'
'50'." record-newbs_018.
PERFORM bdc_field USING 'RF05A-NEWKO'
it_excel-newko_011." record-newko_019."Gl account
PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'BSEG-SGTXT'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BSEG-WRBTR'
it_excel-wrbtr_012."changes from 12 to 20
PERFORM bdc_field USING 'BSEG-MWSKZ'
it_excel-mwskz." record-mwskz_021.
PERFORM bdc_field USING 'BSEG-ZUONR'
it_excel-xblnr_007." record-zuonr_022.
PERFORM bdc_field USING 'BSEG-SGTXT'
it_excel-sgtxt_017." record-sgtxt_023.
PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
PERFORM bdc_field USING 'BDC_CURSOR'
'COBL-PRCTR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'COBL-PRCTR'
it_excel-prctr ." record-prctr_024.
PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'BSEG-WRBTR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=STER'.
PERFORM bdc_field USING 'BSEG-WRBTR'
it_excel-wrbtr_012." it_excel-wrbtr_025.
PERFORM bdc_field USING 'BSEG-MWSKZ'
it_excel-mwskz.
PERFORM bdc_field USING 'BSEG-ZUONR'
it_excel-xblnr_007." record-zuonr_027.
PERFORM bdc_field USING 'BSEG-SGTXT'
it_excel-sgtxt_017." record-sgtxt_028.
PERFORM bdc_field USING 'DKACB-FMORE'
'X' ."record-fmore_029.
PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
PERFORM bdc_field USING 'BDC_CURSOR'
'COBL-PARGB'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'COBL-PRCTR'
it_excel-prctr." record-prctr_030.
PERFORM bdc_dynpro USING 'SAPLTAX1' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'BSET-FWSTE(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=GOBU'.
PERFORM bdc_field USING 'BSET-FWSTE(01)'
it_excel-wrbtr_025." record-fwste_01_031.
PERFORM bdc_transaction USING 'FB01'.
REFRESH:bdcdata,messtab.
ENDLOOP.
REFRESH:bdcdata.
** PERFORM bdc_dynpro USING 'SAPMF05A' '0100'.
* PERFORM bdc_field USING 'BDC_CURSOR'
* 'RF05A-NEWKO'.
* PERFORM bdc_field USING 'BDC_OKCODE'
* '/00'.
* PERFORM bdc_field USING 'BKPF-BLDAT'
* record-bldat_001.
* PERFORM bdc_field USING 'BKPF-BLART'
* record-blart_002.
* PERFORM bdc_field USING 'BKPF-BUKRS'
* record-bukrs_003.
* PERFORM bdc_field USING 'BKPF-BUDAT'
* record-budat_004.
* PERFORM bdc_field USING 'BKPF-MONAT'
* record-monat_005.
* PERFORM bdc_field USING 'BKPF-WAERS'
* record-waers_006.
* PERFORM bdc_field USING 'BKPF-XBLNR'
* record-xblnr_007.
* PERFORM bdc_field USING 'BKPF-BKTXT'
* record-bktxt_008.
* PERFORM bdc_field USING 'FS006-DOCID'
* record-docid_009.
* PERFORM bdc_field USING 'RF05A-NEWBS'
* record-newbs_010.
* PERFORM bdc_field USING 'RF05A-NEWKO'
* record-newko_011.
* PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
* PERFORM bdc_field USING 'BDC_CURSOR'
* 'RF05A-NEWKO'.
* PERFORM bdc_field USING 'BDC_OKCODE'
* '/00'.
* PERFORM bdc_field USING 'BSEG-WRBTR'
* record-wrbtr_012.
* PERFORM bdc_field USING 'BSEG-ZTERM'
* record-zterm_013.
* PERFORM bdc_field USING 'BSEG-ZBD1T'
* record-zbd1t_014.
* PERFORM bdc_field USING 'BSEG-ZFBDT'
* record-zfbdt_015.
* PERFORM bdc_field USING 'BSEG-ZUONR'
* record-zuonr_016.
* PERFORM bdc_field USING 'BSEG-SGTXT'
* record-sgtxt_017.
* PERFORM bdc_field USING 'RF05A-NEWBS'
* record-newbs_018.
* PERFORM bdc_field USING 'RF05A-NEWKO'
* record-newko_019.
* PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
* PERFORM bdc_field USING 'BDC_CURSOR'
* 'BSEG-SGTXT'.
* PERFORM bdc_field USING 'BDC_OKCODE'
* '/00'.
* PERFORM bdc_field USING 'BSEG-WRBTR'
* record-wrbtr_020.
* PERFORM bdc_field USING 'BSEG-MWSKZ'
* record-mwskz_021.
* PERFORM bdc_field USING 'BSEG-ZUONR'
* record-zuonr_022.
* PERFORM bdc_field USING 'BSEG-SGTXT'
* record-sgtxt_023.
* PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
* PERFORM bdc_field USING 'BDC_CURSOR'
* 'COBL-PRCTR'.
* PERFORM bdc_field USING 'BDC_OKCODE'
* '=ENTE'.
* PERFORM bdc_field USING 'COBL-PRCTR'
* record-prctr_024.
* PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
* PERFORM bdc_field USING 'BDC_CURSOR'
* 'BSEG-WRBTR'.
* PERFORM bdc_field USING 'BDC_OKCODE'
* '=STER'.
* PERFORM bdc_field USING 'BSEG-WRBTR'
* record-wrbtr_025.
* PERFORM bdc_field USING 'BSEG-MWSKZ'
* record-mwskz_026.
* PERFORM bdc_field USING 'BSEG-ZUONR'
* record-zuonr_027.
* PERFORM bdc_field USING 'BSEG-SGTXT'
* record-sgtxt_028.
* PERFORM bdc_field USING 'DKACB-FMORE'
* record-fmore_029.
* PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
* PERFORM bdc_field USING 'BDC_CURSOR'
* 'COBL-PARGB'.
* PERFORM bdc_field USING 'BDC_OKCODE'
* '=ENTE'.
* PERFORM bdc_field USING 'COBL-PRCTR'
* record-prctr_030.
* PERFORM bdc_dynpro USING 'SAPLTAX1' '0300'.
* PERFORM bdc_field USING 'BDC_CURSOR'
* 'BSET-FWSTE(01)'.
* PERFORM bdc_field USING 'BDC_OKCODE'
* '=GOBU'.
* PERFORM bdc_field USING 'BSET-FWSTE(01)'
* record-fwste_01_031.
* PERFORM bdc_transaction USING 'FB01'.
* ENDDO.
PERFORM close_group.
* PERFORM close_dataset USING dataset.
*endif.
*& Form sub_browse_file
* text
* --> p1 text
* <-- p2 text
FORM sub_browse_file .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
* FIELD_NAME = ' '
IMPORTING
file_name = pfile.
ENDFORM. " sub_browse_file
*& Form sub_data_load
* text
* --> p1 text
* <-- p2 text
FORM sub_data_load .
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw
i_filename = pfile
TABLES
i_tab_converted_data = it_excel[]
* EXCEPTIONS
* CONVERSION_FAILED = 1
* OTHERS = 2
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " sub_data_load
**& Form data_selection
** text
** --> p1 text
** <-- p2 text
*FORM data_selection .
* SELECT * FROM bkpf
* INTO CORRESPONDING FIELDS OF TABLE it_bkpf
* WHERE budat = p_budat AND
* bukrs = p_bukrs.
* IF NOT it_bkpf[] IS INITIAL.
* SELECT belnr dmbtr mwsts pswsl
* FROM bseg INTO TABLE it_bseg
* FOR ALL ENTRIES IN it_bkpf
* WHERE belnr = it_bkpf-belnr AND
* kunnr = p_kunnr AND
* hkont = p_hkont AND
* pswsl = p_waers.
* ENDIF.
*ENDFORM. " data_selection
**& Form data_move
** text
** --> p1 text
** <-- p2 text
*FORM data_move.
* SORT : it_bseg BY belnr,
* it_bkpf BY belnr.
* LOOP AT it_bseg.
* it_final-dmbtr = it_bseg-dmbtr.
* it_final-belnr = it_bseg-belnr.
* it_final-mwsts = it_bseg-mwsts.
* it_final-pswsl = it_bseg-pswsl.
* READ TABLE it_bkpf WITH KEY belnr = it_bseg-belnr BINARY SEARCH.
* IF sy-subrc = 0.
* it_final-budat = it_bkpf-budat.
* it_final-bldat = it_bkpf-bldat.
* it_final-xblnr = it_bkpf-xblnr.
* it_final-bktxt = it_bkpf-bktxt.
* ENDIF.
* APPEND it_final.
* CLEAR it_final.
* ENDLOOP.
*ENDFORM. " data_move
*& Form alv_get_data
* text
* --> p1 text
* <-- p2 text
FORM alv_get_data .
CLEAR it_fieldcat.
***************** Document number
* wa_fieldcat-col_pos = '1'. " ALV O/P COL-1
wa_fieldcat-fieldname = 'XBLNR_007'.
wa_fieldcat-seltext_m = 'Document number'.
wa_fieldcat-just = 'L'.
wa_fieldcat-no_zero(1) = 'X'.
wa_fieldcat-outputlen = 15.
wa_fieldcat-tabname = 'IT_EXCEL'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
***************** Posting Date
* wa_fieldcat-col_pos = '2'. " ALV O/P COL-1
wa_fieldcat-fieldname = 'BUDAT_004'.
wa_fieldcat-seltext_m = 'Posting Date'.
wa_fieldcat-just = 'L'.
wa_fieldcat-no_zero(1) = 'X'.
wa_fieldcat-outputlen = 20.
wa_fieldcat-tabname = 'IT_EXCEL'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
******************** Document Date
* wa_fieldcat-col_pos = '3'. " ALV O/P COL-2
wa_fieldcat-fieldname = 'BLDAT_001'.
wa_fieldcat-seltext_m = 'Document Date'.
wa_fieldcat-just = 'L'.
wa_fieldcat-tabname = 'IT_EXCEL'.
wa_fieldcat-outputlen = 15.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
********************* REFERENCE DOCUMENT
** wa_fieldcat-col_pos = '4'. " ALV O/P COL-2
* wa_fieldcat-fieldname = 'XBLNR'.
* wa_fieldcat-seltext_m = 'REFERENCE DOCUMENT'.
* wa_fieldcat-just = 'L'.
* wa_fieldcat-tabname = 'IT_EXCEL'.
** wa_fieldcat-outputlen = 15.
* APPEND wa_fieldcat TO it_fieldcat.
* CLEAR wa_fieldcat.
***************** DOCUMENT HEADER TEXT
* wa_fieldcat-col_pos = '5'. " ALV O/P COL-3
wa_fieldcat-fieldname = 'SGTXT_017'.
wa_fieldcat-seltext_m = 'DOCUMENT HEADER TEXT'.
wa_fieldcat-just = 'L'.
wa_fieldcat-tabname = 'IT_EXCEL'.
* wa_fieldcat-outputlen = 15.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
*******************Invoice Net amount
* wa_fieldcat-col_pos = '6'. " ALV O/P COL-4
wa_fieldcat-fieldname = 'WRBTR_012'.
wa_fieldcat-seltext_m = 'Invoice Net amount'.
wa_fieldcat-just = 'L'.
wa_fieldcat-tabname = 'IT_EXCEL'.
* wa_fieldcat-outputlen = 15.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
*********** Tax Amount
* wa_fieldcat-col_pos = '7'. " ALV O/P COL-5
wa_fieldcat-fieldname = 'WRBTR_025'.
wa_fieldcat-seltext_m = 'Tax Amount'.
wa_fieldcat-just = 'L'.
* wa_fieldcat-no_zero(1) = 'X'.
wa_fieldcat-tabname = 'IT_EXCEL'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
*********** NEt Amount
* wa_fieldcat-col_pos = '7'. " ALV O/P COL-5
wa_fieldcat-fieldname = 'WRBTR_020'.
wa_fieldcat-seltext_m = 'Net Amount'.
wa_fieldcat-just = 'L'.
* wa_fieldcat-no_zero(1) = 'X'.
wa_fieldcat-tabname = 'IT_EXCEL'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
*********** General ledger currency
* wa_fieldcat-col_pos = '7'. " ALV O/P COL-5
wa_fieldcat-fieldname = 'WAERS_006'.
wa_fieldcat-seltext_l = 'General ledger currency'.
wa_fieldcat-just = 'L'.
* wa_fieldcat-no_zero(1) = 'X'.
wa_fieldcat-outputlen = 25.
wa_fieldcat-tabname = 'IT_EXCEL'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. " alv_get_data
*& Form alv_grid
* text
* --> p1 text
* <-- p2 text
FORM alv_grid .
* PERFORM fill_list_header USING it_top_of_page[].
* PERFORM event-build USING gt_events[].
PERFORM fill_layout USING ls_layout.
MESSAGE 'Please press F3 to generate a session or call transaction method after getting report!' TYPE 'I'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = ls_layout
it_fieldcat = it_fieldcat
it_events = gt_events[]
i_save = 'A'
TABLES
t_outtab = it_excel
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " alv_grid
* FORM FILL_LAYOUT *
FORM fill_layout USING p_ls_layout TYPE slis_layout_alv.
p_ls_layout-zebra = 'X'.
p_ls_layout-cell_merge = 'X'.
ENDFORM. "fill_layout
*& Form sub_calc_excel
* text
* --> p1 text
* <-- p2 text
FORM sub_calc_excel .
data: idate TYPE sy-datum,
tdat8 type string.
LOOP AT it_excel.
CONCATENATE it_excel-blart_002 '/' it_excel-monat_005 '/' it_excel-bktxt_008 INTO
it_excel-sgtxt_017.
it_excel-bukrs_003 = p_bukrs.
* it_excel-budat_004 = p_budat.
it_excel-waers_006 = p_waers.
it_excel-newko_011 = p_hkont.
it_excel-kunnr_019 = p_kunnr.
it_excel-mwskz = p_mwskz.
it_excel-prctr = p_prctr.
idate = p_budat.
CALL FUNCTION 'DATUMSAUFBEREITUNG'
EXPORTING
* FLAGM = ' '
* FLAGW = ' '
IDATE = idate
* IMONT = ' '
* IWEEK = ' '
IMPORTING
* MDAT4 =
* MDAT6 =
* TDAT4 =
* TDAT6 =
TDAT8 = tdat8
* WDAT4 =
* WDAT6 =
* EXCEPTIONS
* DATFM_UNGUELTIG = 1
* DATUM_UNGUELTIG = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
it_excel-budat_004 = tdat8.
* CONCATENATE it_excel-budat_004+4(2) '/' it_excel-budat_004+6(2) '/' it_excel-budat_004+0(4)
* INTO it_excel-budat_004.
* SPLIT it_excel-bldat_001 AT '/' INTO it_excel-month it_excel-date.
* CONCATENATE it_excel-date '.' it_excel-month '.' it_excel-bldat_001+6(4) INTO it_excel-bldat_001.
MODIFY it_excel.
CLEAR it_excel.
ENDLOOP.
ENDFORM. " sub_calc_excel
*& Form write
* text
* --> p1 text
* <-- p2 text
*form write .
*OPEN DATASET dataset FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
*data: wa_excel like line of it_excel.
*loop at it_excel into wa_excel.
*TRANSFER wa_excel to dataset.
*endloop.
*CLOSE DATASETdataset.
*endform. " write -
Appintegrator or URL iView for SAP Transaction launching Problem
I am using the following methods
1). created portal sap transaction iview ,for different transactions, I am not able to pass a parameter with #
a) passed application parameter =1234#56
b) paassed as 1234%2356
in both the cases the value is not passed.
2)Created an iview using appintegrator and even this not passed the above value with #..
3) I used: webgui URL:
/sap/bc/gui/sap/its/webgui?sap-client=<client>&transaction=ME53&EBAN-BANFN=0001277601&okcode=AB
even this is not accepting # in the value for EBAN-BANFN parameter.
could any one help me.Hello Kiran,
Special characters, like "#", should be encoded when in the URL. For # it is %23. This is why the value 1234#56 becomes 1234%2356. If it is not working then it because the receiving program is not decoding the value back to 1234#56. You can find more information on this by searching SAP notes for "URL encode".
As for this issue, what is the error when the value is 1234%2356? Thanks.
Edgar -
Portal theme not picked for SAP Web Dynpro Iview
Hi,
We have used light framework page for our portal and all the iviews display the content within the iviews in the same set of colors (blue for buttons). However, for a WD java content, I have created an SAP Web Dynpro iView and the contents displayed here appear in the SAP colors without picking those set for the portal.
The same application parameters display the portal colors when we use the Web Dynpro Proxy iview.
Any idea how I can make the SAP Web Dynpro iView appear like the other portal iviews?
Note: The stylesheet property for the iview is already entered (ur), and I have also set the 'Supply Portal stylesheet' property to 'Yes'.
Please provide your inputs.
Thanks,
VinayHi ,
In ABAP Webdynpro for similar problem we used WDFORCEEXTERNAL Sheet property of WDA.
The Web Dynpro framework automatically compares the versions of the portal and Web Dynpro
for ABAP style sheets. If the Web Dynpro for ABAP has a newer version, the WDA style sheet is used. This avoids unattractive rendering and JavaScript errors.You can deactivate this behavior again using the WDFORCEEXTERNALSTYLESHEET application parameter of WDA.See also SAP Notes 1033496 .
If you use the stylesheet of the portal to display the application, the rendering may not appear correctly and Javascript errors can occur(If portal style sheet is lower than WD).
Though Iam not familiar with WD java , the property force portal style sheet in WD java application should be enough to make WD accept portal theme.
Regards
Karthiheyan M -
Property "OK Code Field" for SAP Transaction iViews
Hi there,
I created an SAP Transaction iView which is accessing an ECC system using SAP GUI for Html. In the properties of the iView I found the property "OK Code Field" - has anybody a idea how this field is used?
I hope that there is a possibility to hide the command field with this parameter. Haven't found a possibility to hide that field although I saw that obviously I'm not the first to deal with this issue...
Any help is rewarded.
Regards
GesineHi,
To disable OK Code field,
- Go to SICF TCODE
- Expand to /default_host/sap/bc/gui/sap/its/webgui service
- double click to enter properties
- On Service Data TAB, click Settings Button
- You have to siwtch to change mode in order to change
- there add the following parameter
Parameter: ~NOHEADEROKCODE
Value: 1 -
How to find and install the Portal Development Kit (PDK) for SAP Enterprise
Hi ,
I have the following question regarding thePortal Development Kit (PDK) for SAP Enterprise Portal 6.0. We have Enterprise Portal 6.0 up and running.
1> How Do I find whether we already have this inported in the EP environment: I have admin and super admin role and trying to find '*java' in the Role. But didn't find one. Does that mean we don't have this imported already?
2> I have tried to Find out the PDK( which is also a Business Content) in SDN in the Portal Business content link (https://www.sdn.sap.com/sdn/contentportfolio.sdn) , but haven't found. Where from I download this business content?
3> What are the special steps that need to be taken to import this and make it working?
Thanks
ArunabhaHi Arunabha,
1. Note that the search is case sensitive. Therefore you should search for java and Java.
2. Download from: https://www.sdn.sap.com/sdn/downloaditem.sdn?res=/html/PDK60_download.htm
3. Deploy with SDM: http://help.sap.com/saphelp_nw04/helpdata/en/22/a7663bb3808c1fe10000000a114084/content.htm
Hope that helps,
Yoav. -
Remote Connectivity Addon for SAP B1
can anyone send me information for remote connectivity
for 5 user is there any addon availableManish,
A cost effective and most commonly used remote access methos is to use Terminal Services.
Read more about this..http://technet.microsoft.com/en-us/library/cc755399.aspx
Ther terminal services server has to be setup which would connect to the SAP Server. Each user would connect to the terminal services server which will have the SAP Client installed on it. Using this client they would connect to the SAP application.
Advantages:
Even if they lose the connection between their system and the terminal services server the session is still running and there is not loss of data. It is also more secured.
Faster than VPN
Suda -
Connection steps for SAP BW and R/3
Hi Every Body,
Can you please explain me detail about the connectivity between R/3 and BW.
General steps which am aware is as follws;-
SAP R/3 steps to be performed
1. Define Logical system---->(e.g ABC100)
2. Assign client to logical system -->(100)
3. Define RFC Destination.(Here I assume I have to give Destination user name and password should be the user which have SAP_ALL authorization) Am I right.
SAP BW Steps:-
4. Define Logical system---->(e.g ABC100)
5. Assign client to logical system -->(100)
6. Define RFC Destination.(Here I assume I have to give Destination user name and password should be the user which have SAP_ALL authorization) Am I right.
Then in BW Environment in RSA1->Source Systems->right click and choose Create
There are two options available for R/3 system one is Manual and one is Automatic.
For Manual creation we give RFC Destination should be BW system and Logical system should be R/3 and Source system name is xyz.
Is there any other steps am missing.What about the inbound and outbound Idoc Parameters.
I feel this will help while transferring data to BW.am I right.
Please clearly explain the steps for R/3 and BW connectivity.
Regards,
VJHi,
<i>For Manual creation we give RFC Destination should be BW system and Logical system should be R/3 and Source system name is xyz.</i>
RFC Destination should be R/3 system. NOT BW system.
<i>should i make connection with only R/3 200(Data Client) to BW</i>
Yes you have to connect to 200 only. Not to 100.Other wise you will not get data from R/3 to BW.
<i>What is the Use of Transport Button in RSA6.Post Processing data sources.</i>
It will be used to create Trasnport requests on DS .
<i>Suppose if i activate data source from Customizing client(100)and click on Transport button in RSA6 if there is connection with this client to BW. What is the Impact.</i>
It will not give any impact on BW. Actually it ask you to create a Transport requset by Prompting the message box. After click on create button and entering the description, it will create a transport request.
<i>Clearly explain me in detail what happen when i choose Transport Button in RSA6 for BC data sources.</i>
It is must and should process. Because you will not activate(using of RSA5) the DS in quality R/3 system. So to use this DS in QA system, you will import the Transport request creatd in DEV r/3.
In your case, you will use client 100 for activating the DS and creating Transport reuests. And then these DS are automatically available in client 200, because DS are Client independent.
With rgds,
Anil Kumar Sharma .P -
Portal Test Connection Failed for JDBC Connector
Hi,
We are trying to create a JDBC system in EP to connect SQL Server 2005 database. Our aim is to build a model in VC using data services from SQL Server 2005.
We deployed the Driver file sqljdbc.jar and connection was successful when tested by creating a data source in Visual Administrator-> JDBC Connector
We have created a system in EP with user mapping type (admin,user) and user mapping also done for system alias with the SQL Server administrator user id and password. UME is maintained in ABAP Stack. When we try for test connection with the system created in EP for JDBC connection, the system throws an error message like Connection failed. Make sure user mapping is set correctly and all connection properties are correct
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the back end application using the connector defined in this system object
Results
Retrieval of default alias successful
Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
The following are the URL and driver class name:
URL: jdbc:sqlserver://<host_name>:1433;DatabaseName=db_ name
Driver class name: com.microsoft.sqlserver.jdbc.SQLServerDriver
Is there any other setting to be maintained in the Visual Administrator or in the Portal?
Kindly let us know any clue to overcome this issue.
Quick response highly appreciated.
Regards
Saravanan.rHi Saravanan and Sathish,
not sure how far you got with this. I had the same problem or at least a very similar one with access to MS SQL Server 2005 and solved it. I followed essentially very similar steps with a couple of minor twists:
1) copied the sqljdbc.jar file to the storyboard server and set the classpath environment variable to point to it.
2) I did not create a data source, just created a new driver "SQLServer".
3) Under Connector Container I cloned SDK_JDBC as "SDK_SSQL".
4) The Visual Composer property vc.bi.sqlEditor Enabled should be set to true for you to be able the SQL Editor in the Data Service in VC.
In the portal I created a system of type BI_JDBC from a template.
The connection url and driver class were as in the thread:
URL: jdbc:sqlserver:ipaddress:1433;DatabaseName=name
Driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
ConnectionFActoryClass as above under 3.
User rights: admin,user
The user mapping to the system alias should be as described.
This should allow you to use the data service in VC to access SQL Server tables. If access to stored procedures (sometimes quite useful) is required, this would need to utilise the p9sqlserver.jar file already on the server.
Best Regards
Felix Logemann -
What is the next step after ABAP ? Need resources for SAP structure
Hello,
I have learned ABAP and now it is time to use it to write SAP programs. But what is the next step?
From where can I get information about SAP tables to proceed?
I have 2 ABAP books but they only provide the syntax for ABAP. After learning that, I am finding trouble in knowing on which objects/tables to apply it on.
For example, I want to know that when I use the CV01n to create a file, what happens in terms of internal SAP tables?
If I select multiple files in the search result "CV04N" which table should I access to get these selected files?
Basically does anyone know where I can find such resources in order to understand how to proceed in developing SAP application ?
Regards.Hi HASSAN,
For Learning the Business part of ABAP, (That is what is missing for you i.e the tables and their relations), i would suggest you to take one module at a time.
Like MM(Material management) or SD(Sales and distribution) etc.
Refer this link to know the business part of the SAP:
MM:
http://help.sap.com/saphelp_47x200/helpdata/en/96/df293581dc1f79e10000009b38f889/frameset.htm
SD:
http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f33e545a11d1a7020000e829fd11/frameset.htm
Regards,
Ravi -
How to create a webservice for sap transaction?
Hello All,
I developed a custom program and created a transaction for that? Is it possible to create a webservice for this custom transaction ? If yes,how should we ? I have seen many documents which all describing to creartion of webservice for an RFC only.
Please help in this regard...
Thanks ,
RaviHello,
You cannot create a Web Service for an ABAP program/transaction directly. You have to move the logic into an RFC. Only RFC, BAPI & Business Object can be converted to Web Service using the Wizard.
Thanks,
Venu -
SAP ROUTER CONNECTION STRING FOR SAP SERVERS
Hi,
I want to create saprouter string for accessing ecc6.0 server, router is given with one public ip and my server is in domain,help me in creating saprouter string.
Thanks & Have a good day
NaveenHi Naveen,
There are some SAP notes that can help you understand how to create such strings.
The main idea is to create a string like this:
/H/<ip address of your saprouter>/S/<service port of your saprouter>/H/
Regards,
Val
Maybe you are looking for
-
The display becomes blocky, and can no longer be read
Websites develop distortion in both text and pictures, thought it is more noticeable in text. Horizontal lines shift from left to right a pixel or two, sometimes more when it's really bad. i've seen some shift entire letters. this makes it very diffi
-
SSO PL/SQL Sample Application Error
Hi, I've tried the PL/SQL SSO demo application located in the PDK October release. Symptom: The sample application shows the success page, even the user is not authenticated by the Login Server. Cause: There's a code line in the SAMPLE_SSO_PAPP packa
-
Xfinity sent me a new wireless modem/router and ever since i have had issues with my airport express. It started with music cutting in and our. After an evening on the computer i fixed that. Now the airport express is always recognized by my iphon
-
Hi All, I Want to add Custom field in MB21/MB22 at item level . I have searched and tried the BADI MB_RES_BAPI_CREATE1 but couldn't able to find in documentation also how to add the field. Can any one suggest me how to include the field in Item detai
-
Open html inside flash it´s posible?
open html inside flash it´s posible?