Selection criteria on an attribute not present in model
Hello
For my report, I've to give the following in selection criteria
Report Type : Valid values are DIRECT and INDIRECT
This parameter is not present and not related to the model. Hence there is no corresponding infoobject.
How can I include it in the selection criteria?
Regards,
Santosh
Roberto
Direct/Indirect was just an example that I took. I've to build a forecast report for the opportunities. In the report selection criteria, depending on the Direct/Indirect flag that user chooses, other selection criteria apply to Final Customer/ Sold-To parties. So this direct/indirect is purely a reporting requirement and has nothing to do with model. I was wondering if this can be tackled without any change to the model.
Regards,
Santosh
Similar Messages
-
Selection criteria with Nav Attribute
Hello,
I have a scenario where I added a navigational attribute in APO BW. The nav attribute is reflecting correctly in Master Planning Object Structure. But it is not reflecting in the selection criteria in interactive planning.
Please help.
Regards
SteveHello,
That is great point. I tried to edit the planning book and in the characteristics tab (in the edit mode of planning book) the new attribute is not reflecting in the planning area (which is on the characteristics tab on the right hand side) to take me to the left to planning book.
I hope I am clear.
Please help. I need it badly.
Regards
Steve -
Bex Analyzer - Selection criteria missing after SAP Note application
Good evening,
I have this problem with my BeX Analyzer.
I have import a Sap Note number 0001072913 to resolve a problem. To implement this note the SapNoteAssistant downloads these list of notes :
1061607
1066988
1083328
1086902.
I have applicate these list of notes, after the system doesn't make me anymore the popup to insert the selection of criteria filter of query.
My system information:
- OS - Windows XP sp.2
- Excel 2003
- SapGui 710 Final Release - Version 7100.1.5.1033 - Level Patch 5
- Sap System - SAP NetWeaver 2004s with SAPBW 700 Patch Level 7
- Database - Oracle 10.2.0.2.0
When I execute sapbexc710.xla in my local directory C:\Program files\Sap Shared\BW the system give me this result :
BI 7.10
AxInterop.SHDocVw.dll 7100.1.300.1
BExAddin.dll 7100.1.300.949
BExAnalyzer.exe 7100.1.300.949
BExAnalyzer.xla 7100.1.300.21
BExApi.dll 7100.1.300.949
BExCAControls.dll 7100.1.300.132
BExCommon.dll 7100.1.300.132
BExCommunication.dll 7100.1.300.132
BExControls.dll 7100.1.300.132
BExControls2.dll 7100.1.300.132
BExDialogOpenSave.dll 7100.1.300.132
BExDiffViewer.dll 7100.1.300.132
BExFormulaParser.dll 7100.1.300.132
BExGeneratedAll.dll 7100.1.300.132
BExInstaller.exe 7100.1.300.949
BExOpenSaveServices.dll 7100.1.300.110
BExQueryDesigner.dll 7100.1.300.519
BExQueryDesignerFormulaParser.dll 7100.1.300.2
BExQueryDesignerStarter.exe 7100.1.300.519
BExRDRuler.dll 7100.1.300.366
BExReportDesigner.dll 7100.1.300.366
BExReportDesignerStarter.exe 7100.1.300.366
BExSelectorAPI.dll 7100.1.300.230
BExSelectorDialog.dll 7100.1.300.230
BExSharedImageList.dll 7100.1.300.132
BExThemes.dll 7100.1.300.132
BExVariableScreen.dll 7100.1.300.949
BExWebApplicationDesigner.exe 7100.1.300.387
BExXMLControls.dll 7100.1.300.132
BExXMLServices.dll 7100.1.300.132
Interop.MSXML2.dll 3.0.0.0
Interop.SAPLogonCtrl.dll 7100.1.300.1
Interop.SHDocVw.dll 7100.1.300.1
SAP.Connector.dll 2.0.0.23
SAP.Connector.Rfc.dll 2.0.0.23
sapbwwmd.ocx 7100.0.4300.0
SAPWADMXHTML.dll 7100.1.201.2
WADBackendServices.dll 7100.1.300.387
WADBExData.dll 7100.1.300.387
WADBISPParse.dll 7100.1.300.387
WADChartControlHost.dll 7100.1.300.387
WADConst.dll 7100.1.300.387
WADControllib.dll 7100.1.300.387
WADConversion.dll 7100.1.300.387
WADHTMLEditHost.dll 7100.1.300.387
WADHTMLEditing.dll 7100.1.300.387
WADLowLevelServices.dll 7100.1.300.387
WADMain.dll 7100.1.300.387
WADMapControlHost.dll 7100.1.300.387
WADMetadataGeneration.dll 7100.1.300.387
WADMXHTML.dll 7100.1.300.4
WADPageobjects.dll 7100.1.300.387
WADPropertiesctl.dll 7100.1.300.387
WADRDHost.dll 7100.1.300.387
WADRDLoader.dll 7100.1.300.387
WADRTFIntellisense.dll 7100.1.300.387
WADRTFIsRegEx.dll 65176
WADServices.dll 7100.1.300.387
WADSnapShots.dll 7100.1.300.387
WADStyleSheetServices.dll 7100.1.300.387
WADTagLocator.dll 7100.1.300.387
WADTokenSearch.dll 7100.1.300.387
WADWizTemplate.dll 7100.1.300.387
sapbexc710.xla 7100.1.300.004
BW 3.5 Components
sapbex.xla 3500.11.051
sapbex0.xla 7100.0.300.525
wdba.dll 3500.11.0.58
wdbbapp.exe 3500.11.0.53
wdbbctrl.ocx 3500.11.0.139
wdbbwait.ani 6836
wdbcbexc.dll 3500.11.0.106
wdbdadpt.ocx 7005.11.0.202
wdbfodlg.dll 3500.11.0.128
wdbmbm2.ocx 3500.11.0.89
wdboobjb.dll 3500.11.0.39
wdbpwpub.exe 3500.11.0.341
wdbranim.exe 3500.11.0.5
wdbrlog.ocx 3500.11.0.596
wdbrlog.exe 3500.11.0.6
wdbrtre2.ocx 3500.11.0.11
wdbrprn.ocx 3500.11.0.1
wdbspres.dll 3500.11.0.151
wdbtask.exe 3500.11.0.23
wdbvVed.dll 3500.11.0.83
wdbwpub.exe 3500.11.0.131
wdbwwiz.dll 3500.11.0.78
wdbz.ocx 3500.11.0.14
bwcrw32.exe 1.0.0.4
MapObjects
af20.dll 2.0.1.0
aiimage20.dll 2.0.1.0
dforrt.dll 6.0.612.101
efileio.dll 6144
elib.dll 8.3.1.0
ergxlib.dll 9728
ethrlib.dll 8704
iso8211.dll 131072
libtiff.dll 352256
memfile.dll 1.0.0.1
memtable20.dll 2.0.1.0
mo20.ocx 2.0.1.0
mo20.lic 391
mobase.dll 2.0.1.0
mofeat.dll 2.0.1.0
mogridio.dll 2.0.1.0
mtch.dll 8.0.185.0
pe.dll 4.0.0.0
sg.dll 3.0.2.1
shape20.dll 2.0.1.0
OLE for OLAP
mdrmdlg.dll 3.6.0.1
mdrmsap.dll 3.6.0.1
mdxpars.dll 6405.5.23.15
saprfc.ini
scerrlkp.dll 3.6.0.1
SAP GUI core components
chart.ocx 3.80.6.87
icdataflow.ocx 2.0.0.23
icjoin.ocx 1.0.1.35
sapgradp.ocx 7100.1.5.479
sapcalen.ocx 7100.1.5.126
sapchart.ocx 7100.1.5.810
sapbtmp.dll 7100.1.0.1309
librfc32.dll 7100.1.81.5615
wdtlog.ocx 7100.1.5.71
wdttree.ocx 7100.1.5.286
wdtaocx.ocx 7100.1.5.61
sapdatap.ocx 7100.1.5.255
sapfctrl.dll 7100.1.5.320
sapfcust.exe 7100.1.5.410
sapfdraw.dll 7100.1.5.256
sapfewrm.dll 7100.1.5.337
sapfhook.dll 7100.1.5.206
SAPCHARTCONTROLLib.dll 6405.5.28.7809
AxMAPCONTROLLib.dll 1.0.0.0
AxSAPCHARTCONTROLLib.dll 6405.5.28.7809
MAPCONTROLLib.dll 1.0.0.0
Additional components
awkone.ocx 7.0.0.1
formx.ocx 2.0.30.1
sizerone.ocx 7.0.0.16
otxrt.dll 2.0.30.1
vsflex7l.ocx 7.0.0.112
vsocx32.ocx 5.0.4.50
vsocx6.ocx 6.0.0.52
Synfusion components
Syncfusion.Core.dll 4.402.0.51
Syncfusion.Grid.Base.dll 4.402.0.51
Syncfusion.Grid.windows.dll 4.402.0.51
Syncfusion.Shared.Base.dll 4.402.0.51
Syncfusion.Shared.Windows.dll 4.402.0.51
Syncfusion.Tools.Base.dll 4.402.0.51
Syncfusion.Tools.Windows.dll 4.402.0.51
Microsoft core components
dhtmled.ocx 6.1.0.9232
mfc42.dll 6.2.4131.0
msflxgrd.ocx 6.0.84.18
msvcp60.dll 6.2.3104.0
msvcrt.dll 7.0.2600.2180
msvcrt40.dll 5.1.2600.2180
oleaut32.dll 5.1.2600.3139
olepro32.dll 5.1.2600.2180
stdole2.tlb 3.50.5014.0
scrrun.dll 5.6.0.8820
triedit.dll 6.1.0.9227
richtx32.ocx 6.1.97.82
ADODB.dll 7.10.3077.0
dte.olb 7.10.3077.0
EnvDTE.dll 7.0.9466.0
Microsoft.mshtml.dll 7.0.3300.0
Microsoft.StdFormat.dll 7.0.9466.0
Microsoft.VisualBasic.Compatibility.Data.dll 7.10.3077.0
Microsoft.VisualBasic.Compatibility.dll 7.10.3077.0
MSDATASRC.dll 7.0.9466.0
MSO.DLL 10.0.6714.0
msoutl.olb 10.0.2607.0
Office.dll 11.0.5530.0
stdole.dll 7.0.9466.0
VSLangProj.dll 7.0.9466.0
Help me, please.Is it just for one query or for all of them...(for all them)
If allowed in the system create a new one and check...(yes but the query don't work).
If it has effected all of them you can revert back the note changes.. Check again..
(to revert back the note is a disaster. There are more notes one above the other... I should set all the objects modified to original version one to one)
If it works now issue a message to SAP (I think it's a good idea) -
Need to take part of selection criteria out of a custom report (R painter)
Hi Experts..
I have a requirement to hide cost elements/group which appear as part of selection criteria on our custom report (report painter) for projects.
1. Why this appears as part of the selection criteria as i did not find this defined in Edit --> General data selection. (I only found CO area, Valuation, Fiscal year, Period, and Object in there).
2. We have found a system performance issue when a user put in cost elements for selection. So I am required to take this out. I thought i can just take this out from General data selection.. If I can't find it in there, where would i be able to do that??
3. Suppose I would hide this selection by creating a screen variant.. I was looking in SHD0
but its not working with our Z T.Code...it display the error message "Variants are possible only for dialog transactions"... This does not seem to work with a custom t-code. Then how would I do this ????
Please help clarify on this ....
Thanks....
Monica
Edited by: Monica Kong on Aug 24, 2008 6:01 AMHi Monica,
I believe we have an executable report here...
go to se38 -> enter program name -> click on "attributes" button -> display
We can see the type as 'Executable' or 'Modulepool'
generally a selection screen is brought by using keywords 'Parameters' or 'select-options' in Executable programs and with screen in modulepool ..although we can use a combination of both in some cases
So in your program..
check for keywords
'Parameters'/'Select-options'
The best way to proceed is to press F1 on the field that needs to be removed from selection...note the details
"screen number" and "screen field"
(1)By default screen number = 1000 if it is an executable program
Now see the scrren field ..if it is select-options it will something like field-low or field-high
so in the report
search for field for cost center and group with keyword starting as parameters or select-options and comment the same
Remember to comment tte fields throughout the program since this field will be used in multiple locations
(2) if it is modulepool program note the screen number , go the program and screen and remove the field from screen painter and comment the fields where ever used in the program
Also note that using screen variant is a good option but done if user needs specific settings on a report or we need the original report as it is plus additional report with few variations
Hope it helps
Pls check and revert
Regards
Byju -
Hello folks,
I am facing one problem .when I dont give any selection criteria my program searches for blank records in respective table for that criteria and blank records are not there so sy-subrc is not coming as 0, But this should not happen in this way , rather program should display all records because that selection criteria is blank. To overcome this issue each time I am checking whether that selection criteria is blank or not. If that criteria is blank I will simply exclude condition for selection from database table and criteria is there on selection screen I have to select for accordingly. <b>Is there any other way to get all data from database table for particular column if I dont give any value for that column on selection screen</b>?Hi nirad,
1. SELECT-OPTIONS vs parameter
2. This problem happens in parameter.
3. In select-options,
even if we give blank (do not enter anything)
and bcos we use
IN abc
sql,
the system understand and gives
ALL records.
4. So u can use SELECT-OPTIONS (instead of parametes)
and use IN sql
5. Other wise
make your paramters OBLIGATORY.
6. Or else, as u have already used,
use IF conditions for sql.
7. There is no other way !
regards,
amit m.
Message was edited by: Amit Mittal -
Hi,
We are currently running SAP BPC 10.1 NW on Hana
Version:
CPMBPC 810 SP 4
SAP_BW 740 SP 9
HANABPC 810 SP 4
EPM Excel Add-in 10 SP 21 .NET 4 build 9094.
On my embedded model. I have a BEX query on a aggregation level which I access in a report using the EPM Add-in Excel .
When I edit my report in EPM Add-in Excel , and I try to select the dimension members for a selected dimension member, I get the following error.
"The given key was not present in the dictionary"
Any assistance to help resolve the problem will be appreciated.
Regards
GavinHi Shrikant,
I had a look at MBR_SEQ , it is a attribute on the dimension member in BW , this relates to a past version of BPC 7.5. We are currently on BPC 10.1 Embedded model , and the MBR_SEQ does not exist on any of the characteristics I have in my info cube.
When I create a web report I am able to access the dimension members using the select dimensions options, the problem seems to be on the EPM Add-in Excel client only.
Thanks
Gavin -
Navigation attribute as selection criteria for automatic forecast model
Hello Experts,
I have a requirement like this.
In Transaction /SAPAPO/MSDP_FCST2, I enter a planning area and click execute.
Then I create a selection (using selection management button). But here I am not able to see the navigational attributes as a selection field.
Could you please let me know how I could use this as a selection criteria?
Can I use the method SEL_CHANGE of the BADI /SAPAPO/SDP_FCST5 for implementing this?
Please suggest.
Thanks,
SureshHi Manimaran,
Thanks for your reply!
I hope you could have created a selection using the Create Activity and assign activity to a job. And during this part, for assigning the selection to the job, we could use the selection created in Interactive planning - Tcode /SAPAPO/SDP94.
The problem is what if the planners are not given authorization for the creating the job or activity. And what if the planners do the model fitting for a product/location and he wants to exclude it from the selection.
Thanks and Best Regards,
Suresh -
Selection Criteria addition-Not working
Hi!
I have this report wherein I need to add two fields VBAP-Kunnr and knvv-konda in the selection screen so that I can do my drill down or search criteria based upon these two selections also apart from the existing ones, but unfortunately I am unable to get throiugh this and somehow putting this two selections in the selection criteria its not taking any effect or its just actinga dummy selection and I am unale to drill down my report based upon those. Can anyone have a look and let me know what could be the problem please. Help would be highly appreciated.
Thanks
*& Include ZSD_PFGENERATETOP Report ZSD_PFGENERATE
REPORT zsd_pfgenerate LINE-SIZE 170 LINE-COUNT 65.
TABLES: lips, likp, vbap, vbak, vbrp, vbpa, vbrk.
CONSTANTS: cns_vgtyp TYPE vbrp-vgtyp VALUE 'J',
cns_intyp TYPE vbrk-vbtyp VALUE 'M',
cns_vkorg TYPE vbak-vkorg VALUE 'CA01',
cns_vkorg_US type vbak-vkorg value 'US01', "DEVK903521
cns_parsh TYPE vbpa-parvw VALUE 'WE',
cns_parsp TYPE vbpa-parvw VALUE 'AG',
cns_parre type vbpa-parvw value 'RE', "bill-to
cns_auzwp TYPE vbak-auart VALUE 'ZWP',
cns_auzct TYPE vbak-auart VALUE 'ZCT',
cns_auzif TYPE vbak-auart VALUE 'ZIF',
cns_auztm TYPE vbak-auart VALUE 'ZTM',
cns_fkff TYPE vbrk-fkart VALUE 'ZFF5',
cns_fkos TYPE vbrk-fkart VALUE 'ZOF5',
cns_upd(1) TYPE c VALUE 'S',
cns_mode(1) TYPE c VALUE 'N'.
Internal Tables and Work Areas
DATA: BEGIN OF it_vbpos OCCURS 0,
werks TYPE vbap-werks,
audat TYPE vbak-audat,
auart TYPE vbak-auart,
kunag TYPE vbak-kunnr,
name1_ag TYPE kna1-name1,
kunsh TYPE likp-kunnr,
name1_sh TYPE kna1-name1,
vbeln TYPE vbak-vbeln,
posnr TYPE vbap-posnr,
vbdel TYPE likp-vbeln,
psdel TYPE lips-posnr,
kunre type kunre, "Bill-to Party
name1_re type kna1-name1, "Bill-to Party Name
END OF it_vbpos,
BEGIN OF it_vbpos_temp OCCURS 0,
vgbel TYPE lips-vgbel,
vgpos TYPE lips-vgpos,
vbeln TYPE vbak-vbeln,
posnr TYPE vbap-posnr,
END OF it_vbpos_temp,
BEGIN OF it_report OCCURS 0,
werks TYPE vbap-werks,
vbeln TYPE vbak-vbeln,
vbdel TYPE likp-vbeln,
audat TYPE vbak-audat,
auart TYPE vbak-auart,
name1_ag TYPE kna1-name1,
name1_sh TYPE kna1-name1,
name1_re type kna1-name1, "Bill-to Party Name
mark(1) TYPE c,
END OF it_report,
BEGIN OF it_vbeln OCCURS 0,
vbeln TYPE vbak-vbeln,
END OF it_vbeln,
wa_vbeln LIKE LINE OF it_vbeln,
wa_vbpos LIKE LINE OF it_vbpos,
wa_report LIKE LINE OF it_report,
wa_sel LIKE LINE OF it_report.
DATA: it_vbrp type table of vbrp,
it_vbrk type table of vbrk.
BDC Variables
DATA: BEGIN OF bdc_tab OCCURS 0.
INCLUDE STRUCTURE bdcdata.
DATA: END OF bdc_tab.
DATA: wa_bdc LIKE LINE OF bdc_tab,
it_bdcmess TYPE TABLE OF bdcmsgcoll.
*& Selection-Screen definition
SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-002.
PARAMETERS: p_rdff TYPE c RADIOBUTTON GROUP rad1 DEFAULT 'X',
p_rdos TYPE c RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK block2.
SELECTION-SCREEN BEGIN OF BLOCK block0 WITH FRAME TITLE text-000.
SELECT-OPTIONS: s_werks FOR vbap-werks OBLIGATORY NO INTERVALS,
s_auart FOR vbak-auart,
s_kunag FOR vbak-kunnr, "Sold-to Party
s_kunnr FOR likp-kunnr, "Ship-to Party
s_kunre for vbak-kunnr, "Bill to Party
s_vdatu FOR vbak-vdatu OBLIGATORY.
SELECTION-SCREEN END OF BLOCK block0.
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
PARAMETERS: p_vgbel TYPE vbak-vgbel.
SELECTION-SCREEN END OF BLOCK block1.
selection-screen begin of block block3 with frame title text-003.
parameters: p_billed RADIOBUTTON GROUP r1,
p_delvd RADIOBUTTON GROUP r1 default 'X',
p_all RADIOBUTTON GROUP r1.
selection-screen end of block block3.
*& Include ZSD_PFGENERATEE01
START-OF-SELECTION.
PERFORM read_report.
END-OF-SELECTION.
SET PF-STATUS 'STAT1000'.
IF it_vbpos[] IS INITIAL.
MESSAGE s999(z001) WITH 'No Data Selected for this criteria'.
ELSE.
PERFORM show_report.
ENDIF.
*& List Events
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'SELE'.
LOOP AT it_report INTO wa_report.
wa_report-mark = 'X'.
MODIFY it_report FROM wa_report.
ENDLOOP.
PERFORM show_report.
WHEN 'DSEL'.
LOOP AT it_report INTO wa_report.
wa_report-mark = ''.
MODIFY it_report FROM wa_report.
ENDLOOP.
PERFORM show_report.
ENDCASE.
AT LINE-SELECTION.
DO.
READ LINE sy-index FIELD VALUE wa_report-mark wa_report-vbeln
wa_report-vbdel.
IF sy-subrc NE 0.
EXIT.
ELSE.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_report-vbeln
IMPORTING
output = wa_report-vbeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_report-vbdel
IMPORTING
output = wa_report-vbdel.
READ TABLE it_report INTO wa_sel
WITH KEY vbeln = wa_report-vbeln.
IF sy-subrc EQ 0.
wa_sel-mark = wa_report-mark.
MODIFY it_report FROM wa_sel INDEX sy-tabix.
ENDIF.
ENDIF.
ENDDO.
REFRESH: it_vbeln.
LOOP AT it_report INTO wa_report WHERE mark EQ 'X'.
CASE 'X'.
WHEN p_rdff.
wa_vbeln = wa_report-vbdel.
WHEN p_rdos.
wa_vbeln = wa_report-vbeln.
ENDCASE.
APPEND wa_vbeln TO it_vbeln.
ENDLOOP.
SORT it_vbeln BY vbeln.
DELETE ADJACENT DUPLICATES FROM it_vbeln.
IF NOT it_vbeln[] IS INITIAL.
PERFORM process_vf01.
ENDIF.
*& Include ZSD_PFGENERATEF01
*& Form read_report
Routine to read applicable orders from database
FORM read_report.
DATA: lwa_lips TYPE lips,
lc_vbeln TYPE vbrk-vbeln.
Retrieve sales orders based on selection criteria where billing doc has not been
created for the delivery yet
REFRESH: it_vbeln, it_vbpos, it_report.
Select into table based on Onsite/Fixed Facility
CASE 'X'.
WHEN p_rdff.
changed for performance reasons (i.e. time-out)
k~vgbel is not in it_vbpos but was in select statment ?
SELECT vbap~werks vbak~audat vbak~auart vbak~kunnr AS kunag
vbak~vbeln vbap~posnr
INTO CORRESPONDING FIELDS OF TABLE it_vbpos
FROM vbak INNER JOIN vbap
ON vbak~mandt = vbap~mandt
AND vbak~vbeln = vbap~vbeln
WHERE vbap~werks IN s_werks
AND vbak~vdatu IN s_vdatu
AND vbak~vkorg in (cns_vkorg,cns_vkorg_US)
AND vbap~oid_ship IN s_kunnr
AND vbak~kunnr IN s_kunag
AND vbak~auart IN s_auart
AND ( vbak~auart = 'ZWP' or vbak~auart = 'ZIF' or
vbak~auart = 'ZCT' or vbak~auart = 'ZTM' or
vbak~auart = 'ZOIL' ).
IF SY-SUBRC = 0.
SELECT vgbel vgpos vbeln posnr FROM lips
INTO CORRESPONDING FIELDS OF TABLE it_vbpos_temp
FOR ALL ENTRIES IN it_vbpos
WHERE vgbel = it_vbpos-vbeln
AND vgpos = it_vbpos-posnr
%_hints oracle 'index ("LIPS" "LIPS~Z01")'.
SORT it_vbpos_temp by vgbel vgpos.
LOOP AT it_vbpos.
READ TABLE it_vbpos_temp
WITH KEY vgbel = it_vbpos-vbeln vgpos = it_vbpos-posnr
BINARY SEARCH.
IF SY-SUBRC = 0.
it_vbpos-vbdel = it_vbpos_temp-vbeln.
it_vbpos-psdel = it_vbpos_temp-posnr.
modify it_vbpos.
ENDIF.
ENDLOOP.
ENDIF.
WHEN p_rdos.
SELECT k~vbeln p~posnr k~kunnr AS kunag k~audat k~auart p~werks k~vgbel
INTO CORRESPONDING FIELDS OF TABLE it_vbpos
FROM vbak AS k INNER JOIN vbap AS p ON k~vbeln = p~vbeln
WHERE p~werks IN s_werks AND k~vdatu IN s_vdatu AND
k~vkorg in (cns_vkorg,cns_vkorg_US) AND "DEVK903521
k~vgbel EQ p_vgbel AND
k~kunnr IN s_kunag AND k~auart IN s_auart AND
p~oid_ship IN s_kunnr.
ENDCASE.
Determine if delivery has been billed out, if not can create PF Invoice - CHANGED
LOOP AT it_vbpos INTO wa_vbpos.
Check Ship-to in
SELECT SINGLE kunnr INTO wa_vbpos-kunsh FROM vbpa
WHERE parvw EQ cns_parsh AND vbeln EQ wa_vbpos-vbeln.
IF sy-subrc NE 0.
DELETE TABLE it_vbpos FROM wa_vbpos.
CONTINUE.
ENDIF.
Check for Bill-to
select single kunnr into wa_vbpos-kunre from vbpa
where parvw eq cns_parre and vbeln eq wa_vbpos-vbeln
and kunnr in s_kunre.
IF sy-subrc NE 0.
DELETE TABLE it_vbpos FROM wa_vbpos.
CONTINUE.
ENDIF.
Get Partner Texts
SELECT SINGLE name1 INTO wa_vbpos-name1_ag FROM kna1
WHERE kunnr EQ wa_vbpos-kunag.
SELECT SINGLE name1 INTO wa_vbpos-name1_sh FROM kna1
WHERE kunnr EQ wa_vbpos-kunsh.
SELECT SINGLE name1 INTO wa_vbpos-name1_re FROM kna1
WHERE kunnr EQ wa_vbpos-kunre.
CASE 'X'.
WHEN p_rdff.
IF p_delvd = 'X'.
optimized for performance reasons i.e. time-out
Check if delivery has been billed out
SELECT SINGLE k~vbeln INTO lc_vbeln
FROM vbrp AS p INNER JOIN vbrk AS k ON p~vbeln = k~vbeln
WHERE p~vgtyp EQ cns_vgtyp AND p~vgbel EQ wa_vbpos-vbdel AND
p~vgpos EQ wa_vbpos-psdel AND k~vbtyp EQ cns_intyp AND
k~fksto NE 'X'.
refresh: it_vbrp, it_vbrk.
select vbeln from vbrp
into corresponding fields of table it_vbrp
where vgtyp = cns_vgtyp and vgbel = wa_vbpos-vbdel
and vgpos = wa_vbpos-psdel
%_hints oracle 'index ("VBRP" "VBRP~Z01")'.
if sy-subrc = 0.
sort it_vbrp by vbeln.
delete adjacent duplicates from it_vbrp comparing vbeln.
select vbeln from vbrk
into corresponding fields of table it_vbrk
for all entries in it_vbrp
where vbeln = it_vbrp-vbeln
and vbtyp = cns_intyp and fksto 'X'.
IF sy-subrc EQ 0.
DELETE TABLE it_vbpos FROM wa_vbpos.
CONTINUE.
ENDIF.
endif.
ELSEIF p_billed = 'X'.
Check if delivery hasn't been billed out
SELECT SINGLE k~vbeln INTO lc_vbeln
FROM vbrp AS p INNER JOIN vbrk AS k ON p~vbeln = k~vbeln
WHERE p~vgtyp EQ cns_vgtyp AND p~vgbel EQ wa_vbpos-vbdel AND
p~vgpos EQ wa_vbpos-psdel AND k~vbtyp EQ cns_intyp AND
k~fksto NE 'X'.
refresh: it_vbrp, it_vbrk.
select vbeln from vbrp
into corresponding fields of table it_vbrp
where vgtyp = cns_vgtyp and vgbel = wa_vbpos-vbdel
and vgpos = wa_vbpos-psdel
%_hints oracle 'index ("VBRP" "VBRP~Z01")'.
if sy-subrc = 0.
sort it_vbrp by vbeln.
delete adjacent duplicates from it_vbrp comparing vbeln.
select vbeln from vbrk
into corresponding fields of table it_vbrk
for all entries in it_vbrp
where vbeln = it_vbrp-vbeln
and vbtyp = cns_intyp and fksto 'X'.
IF sy-subrc NE 0.
DELETE TABLE it_vbpos FROM wa_vbpos.
CONTINUE.
ENDIF.
endif.
ENDIF.
WHEN p_rdos.
IF p_delvd = 'X'.
Check if order has been billed out
SELECT SINGLE * FROM vbrp
WHERE vbeln EQ wa_vbpos-vbeln AND
vgpos EQ wa_vbpos-posnr.
IF sy-subrc EQ 0.
DELETE TABLE it_vbpos FROM wa_vbpos.
CONTINUE.
ENDIF.
ELSEIF p_billed = 'X'.
Check if delivery hasn't been billed out
SELECT SINGLE k~vbeln INTO lc_vbeln
FROM vbrp AS p INNER JOIN vbrk AS k ON pvbeln = kvbeln
WHERE pvgtyp EQ cns_vgtyp AND pvgbel EQ wa_vbpos-vbdel AND
pvgpos EQ wa_vbpos-psdel AND kvbtyp EQ cns_intyp AND
k~fksto NE 'X'.
refresh: it_vbrp, it_vbrk.
select vbeln from vbrp
into corresponding fields of table it_vbrp
where vgtyp = cns_vgtyp and vgbel = wa_vbpos-vbdel
and vgpos = wa_vbpos-psdel
%_hints oracle 'index ("VBRP" "VBRP~Z01")'.
if sy-subrc = 0.
sort it_vbrp by vbeln.
delete adjacent duplicates from it_vbrp comparing vbeln.
select vbeln from vbrk
into corresponding fields of table it_vbrk
for all entries in it_vbrp
where vbeln = it_vbrp-vbeln
and vbtyp = cns_intyp and fksto 'X'.
IF sy-subrc NE 0.
DELETE TABLE it_vbpos FROM wa_vbpos.
CONTINUE.
ENDIF.
endif.
ENDIF.
ENDCASE.
MOVE-CORRESPONDING wa_vbpos TO wa_report.
APPEND wa_report TO it_report.
MODIFY it_vbpos FROM wa_vbpos.
ENDLOOP.
if 'onsite field summary', then process by release sales orders
IF p_rdos = 'X'.
sort it_report by vbeln.
delete adjacent duplicates from it_report comparing vbeln.
else.
SORT it_report BY werks name1_ag name1_sh vbeln.
DELETE ADJACENT DUPLICATES FROM it_report.
endif.
SORT it_report BY name1_sh werks name1_ag vbeln.
ENDFORM. " read_report
*& Form process_vf01
Call transaction VF01 and fill screen table with order values
FORM process_vf01.
DATA: ln_index(2) TYPE n,
lc_field(20) TYPE c,
lc_fkart TYPE vbrk-fkart,
li_lines TYPE i,
lc_msgtxt(99) TYPE c,
lwa_bdcoptions TYPE ctu_params,
lwa_mess LIKE LINE OF it_bdcmess.
REFRESH: it_bdcmess.
lwa_bdcoptions-dismode = cns_mode.
lwa_bdcoptions-updmode = cns_upd.
CASE 'X'.
WHEN p_rdff.
lc_fkart = cns_fkff.
WHEN p_rdos.
lc_fkart = cns_fkos.
ENDCASE.
REFRESH: bdc_tab.
PERFORM update_bdc USING: 'X' 'SAPMV60A' '0102',
' ' 'BDC_CURSOR' 'RV60A-FKART',
' ' 'RV60A-FKART' lc_fkart,
' ' 'BDC_OKCODE' '/00'.
LOOP AT it_vbeln INTO wa_vbeln.
ln_index = sy-tabix.
Up to the second delivery of the BDC add the Delivery to the screen, after that click the More Documents for every entry. logic changed for DEVK902353
CASE ln_index.
WHEN 1.
CONCATENATE 'KOMFK-VBELN' '(' ln_index ')' INTO lc_field.
PERFORM update_bdc USING: ' ' lc_field wa_vbeln.
WHEN 2 OR 3.
IF p_rdos 'X'.
CONCATENATE 'KOMFK-VBELN' '(' ln_index ')' INTO lc_field.
PERFORM update_bdc USING: ' ' lc_field wa_vbeln,
'X' 'SAPMV60A' '0102',
' ' 'BDC_OKCODE' 'FKAN'..
ELSE.
CONCATENATE 'KOMFK-VBELN' '(' ln_index ')' INTO lc_field.
PERFORM update_bdc USING: ' ' lc_field wa_vbeln.
ENDIF.
WHEN OTHERS.
If p_rdos 'X'.
CONCATENATE 'KOMFK-VBELN' '(2)' INTO lc_field.
PERFORM update_bdc USING: ' ' lc_field wa_vbeln,
'X' 'SAPMV60A' '0102',
' ' 'BDC_OKCODE' 'FKAN'.
endif.
ENDCASE.
ENDLOOP.
VF01 will go to a different screen if only one line selected
DESCRIBE TABLE it_vbeln LINES li_lines.
IF li_lines EQ 1.
PERFORM update_bdc USING: 'X' 'SAPMV60A' '0104',
' ' 'BDC_OKCODE' '=SICH'.
ELSE.
PERFORM update_bdc USING: 'X' 'SAPMV60A' '0102',
' ' 'BDC_OKCODE' '=SICH'.
ENDIF.
CALL TRANSACTION 'VF01' USING bdc_tab OPTIONS FROM lwa_bdcoptions
MESSAGES INTO it_bdcmess.
WRITE: / 'BDC Messages:'.
SKIP.
LOOP AT it_bdcmess INTO lwa_mess.
CALL FUNCTION 'RH_MESSAGE_GET'
EXPORTING
arbgb = 'VF'
msgnr = lwa_mess-msgnr
msgv1 = lwa_mess-msgv1
msgv2 = lwa_mess-msgv2
msgv3 = lwa_mess-msgv3
msgv4 = lwa_mess-msgv4
IMPORTING
msgtext = lc_msgtxt
EXCEPTIONS
message_not_found = 1
OTHERS = 2.
WRITE: /5 lc_msgtxt.
ENDLOOP.
ENDFORM. " process_vf01
form update_bdc *
subroutine to add the data to the bdc table for trans. vf01 *
FORM update_bdc USING dynpro field content.
CLEAR bdc_tab.
IF dynpro EQ 'X'.
bdc_tab-program = field.
bdc_tab-dynpro = content.
bdc_tab-dynbegin = 'X'.
ELSE.
bdc_tab-fnam = field.
bdc_tab-fval = content.
ENDIF.
APPEND bdc_tab.
ENDFORM. "UPDATE_BDC
*& Form show_report
Report to Display Available Orders on Screen
FORM show_report .
DATA: l_idx TYPE i.
WRITE: / 'Available Orders/Deliveries for Plant:'.
LOOP AT s_werks.
WRITE: s_werks-low.
ENDLOOP.
SKIP.
FORMAT INTENSIFIED ON COLOR COL_HEADING.
WRITE: /5 text-h01, text-h02.
CASE 'X'.
WHEN p_rdff.
WRITE: text-h06.
ENDCASE.
WRITE: text-h03, text-h04, text-h05, text-h07,
/ sy-uline.
FORMAT INTENSIFIED OFF COLOR OFF.
l_idx = 0.
LOOP AT it_report INTO wa_report.
IF l_idx EQ 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
l_idx = 1.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
l_idx = 0.
ENDIF.
WRITE: / wa_report-mark AS CHECKBOX,
wa_report-auart UNDER text-h01,
wa_report-vbeln UNDER text-h02.
CASE 'X'.
WHEN p_rdff.
WRITE: wa_report-vbdel UNDER text-h06.
ENDCASE.
WRITE: wa_report-audat UNDER text-h03,
wa_report-name1_ag UNDER text-h04,
wa_report-name1_sh UNDER text-h05,
wa_report-name1_re under text-h07.
HIDE: wa_report-mark, wa_report-vbeln, wa_report-vbdel.
ENDLOOP.
ENDFORM. " show_report
Thanks for your kind help.
Aarav.Hi, Anne-Marie;
You may be running into a common issue that is docuemented here:
[SelectionFormula|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303334333833393335%7D.do]
Regards,
Jonathan
Edited by: Jonathan Parminter on Mar 16, 2009 8:03 AM -
Adding new attribute to Master data - Not present in ECC
Hi,
We want to add a new field in the master data object 0plant. the new field is not present in the R/3 side. So we are planning to maintain it manually.
Is it feasible? Can someone explain how to approach the situation?
Since it is not going to come in Process chain or any of the mappings below InfoObject will the process chains work properly?
RegardsHi
if you cant impliment any logic you cam maintani it mannually.
First add attribute to master data object and activate.
Do master data load if required.
Then right click on materdata addtribute and manage -> content tab -> Content
display complete data and you can maintain attribute values individually for all ercords one by one (will be pain even for 100 records).
another alternative is of doing file upload for this attribute.
Regards
Sudeep -
Selection criteria are not applied to summary fields on group footers.
I wonder if anyone can help me with this problem. I am using Crystal reports version 11.2, and my data source is a Sql Server view.
The records on the view have a date field, and I have selected all records within a given date range in "Selection Formulas".
The records are then grouped, and the Crystal summary facility used to summarise number fields on the group footers.
So for example, if my view contains four records, one with field "amount" = 2, one with field "amount" = 8, one with field "amount" = 6, one with field "amount" = 3, but only the first two records are within the valid date range, you would expect to see the first two records listed out at detail level, then field "amount" summarised at group level, with a summarised value of 10.
ie .... record1 2
record2 8
group level total 10
This works fine when I run the report using Crystal's "print preview" facility. However, when the report is run from within an application written in C#.NET, the selection criteria are not applied to the summary field, so you get ..
record1 2
record2 8
group level total 19
I tried putting the date selection criteria at both record and group level, but that did not work.
I googled the problem and found an article explaining that Crystal first performs the record-level selection, then it creates the groups and totals up any summary fields, and only then does it apply the group-level selection criteria, which can lead to problems like the one I have described above. However, since I have put my date selection criteria at both record and group level, I do not understand why I still get the problem.
In one report I got round this problem by creating a formula that returned zero if the record date was outside of the valid date range, and returned the number field to be summarised if the date was valid, then summarising that formula, instead of summarising the number field directly.
In other reports I created one formula to set a shared variable as zero, then another formula to accumulate it at detail record level, then another formula to display the variable at the group footer. In other words, I did not bother with the Crystal summary facility at all, but created my own summary facility.
While googling the problem to see what other people did in this situation, I noticed that most fixes used variations of the "shared variables and formulae" fix to get round the problem.
The problem is that I have lots of complex reports and it will take ages to replace the summarised fields with shared variables and formulae. The reports were initially tested with "Print Preview" so we did not notice this problem until the C#.Net application was ready to use them. And I can't believe that you are simply meant to ignore the summary facility and re-invent the wheel by doing it all manually.
Please tell me that there is something simple that I have been doing wrong!!! If I have not given enough information for you to answer, please let me know.
Thanks,
Anne-MarieHi, Anne-Marie;
You may be running into a common issue that is docuemented here:
[SelectionFormula|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303334333833393335%7D.do]
Regards,
Jonathan
Edited by: Jonathan Parminter on Mar 16, 2009 8:03 AM -
Profit center report does not show selection criteria
Hi,
The SAP Business One software misses a functionality :
When creating a financial report, you can enter surtain selection criteria in order to shift the data, and in order to get only the relevant data. This is possible in all reports. Also, in the result of all reports, those selection criteria are shown. In that case you actually know what the data is all about.
This is not the case with the profit center report. When you run the report with e.g a date selection, these dates are not printed on the actual report. When a second person views the report, he/she has no clue as to what the data consists of, they are unaware of the selection criteria.
The only solution is to export this to excel, or run Chrystal reports. But this should be entered into the standard report !!
Hopefully, you can help me out.
Kind regards,
Bas Stortenbeek
b1 Consulting
[email protected]
0043-664 833 8913Hi
If you see the screen shot I attached, it has the text "(new)" against the Folder name...
All new gl reports are under such a folder to differentiate... You cant deactivate any reports from the Standard Menu... You can just control it by authrization....
You can also ask your BASIS guy to display only the authorized trans on the user screen so that they are not able to see the std set of transactions
Br, Ajay M -
Hi all,
I'm trying to pratice EJB 3 (which I learnt at school), with JSF and JPA, but i'm really stuck with that error :
Exception [TOPLINK-6094] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.QueryException
Exception Description: The parameter name [departmentID] in the query's selection criteria does not match any parameter name defined in the query.
Query: ReadAllQuery(oracle.datamodel.Employees)
I will try to explain clearly what i'm trying to do :
In fact, i'm following that tutorial :
http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm
But, as i didn't have any oracle database, but had a mysql one on my machine, i decided to use that DB instead of the the oracle DB... So i created a set of example data (to replace the oracle example set) ...so i created the tables EMPLOYEE, and DEPARTMENT... with the correct relations (FK) and PK)
All was ok, i choose my "mysql-connector" (jdbc) instead of the oracle jdbc connector... so i could follow the tutorial.
My problem appears at the step 12 (of "Creating a Master-Detail JavaServer Faces Page"), when i run the file deptEmployees.jspx.
The information of the first departement displays correctly :
departmentID 1
departmentName ... etc
but it can't display the employees belonging to that department !
the error is :
JBO-29000: Exception Description: The parameter name [departmentID] in the query's selection criteria does not match any parameter name defined in the query. Query: ReadAllQuery(oracle.datamodel.Employees)
I think i understand what is the problem... I think that the query in charge of gathering the data of a specific departement need a parameter, but couldn't find it. But i don't know why :-/ I have tried many things and read the topics talking about that error... but it didn't solved the problem. I don't know anymore where to investigate.
I have created a Zip file of my work (it's an EJB/JSF Application.. with jdev 10.1.3.3.0)
(available here : http://dl.free.fr/mQ5esdQuS/EJB_appli.zip)
I would be glad if someone could take few minutes to help me.
Thank you in advance,
Thomas B (student)Hello,
This is a common mistake. Java string comparisons in TopLink are case sensitive by default, and since column names are uppercase when defaulted, TopLink cannot find the "departmentID" column name. In this case, Departments ID column defaults to "DEPARTMENTID" as required by the JPA specification.
Either change Departments id annotation to @Id
@Column(name="departmentID", nullable = false)
private Integer departmentID;or change Employees' ManytoOne annotation to:
@ManyToOne
@JoinColumn(name = "departmentID", referencedColumnName = "DEPARTMENTID")
private Departments departments;Best Regards,
Chris -
"record enable" buttons not showing up in Garage Band 10.0.3 (I have selected "show record enable"- a space in the track header opens up, but the button is not present. Same with "input monitor".
Look at all the posts in the forum from users with similar problems, it happened with the last Logic update.
-
How to pass column value which is not present in source criteria
Hi,
In one of my report I want to pass a column value from Source report(a pivot table) to target report. The column which I want to pass is not present in the sorce report criteria. Is there any work around for this issue.
I added this column in criteria and hidden the column. But the issue is not solved.
Best Regards,
TKB.Swati,
I am navigating from Summary report to detail report. I am prompting the required fields in detail report. But I want to pass one more column value explicitly, which is not present in source request.
Best Regards,
TKB. -
Navigational Attributes as Selection Criteria in Infopackage?
Is it possible to use navigational attributes as selection criteria in the infopackage? I have the MRP cube that only does full loads. I would like to ONLY load the material type FERT (finished goods). 0MATERIAL has 0MATL_TYPE as a navigational attribute. I would like to put 0MATL_TYPE in the selection criteria in the infopackage.
If this is possible, please let me know. The only other way I have come up to do this is to load in one cube and then use and APD to load into another cube. I would like to avoid this if possible.
Thanks,
BrentHi there,
you can try this:
create a routine in 0material infoobject.
And put this code in the routine after the part where this appears:
* Insert source code to current selection field
*$*$ begin of routine - insert your code only below this line *-*
data: l_idx like sy-tabix.
read table l_t_range with key
fieldname = 'MATNR'.
l_idx = sy-tabix.
after the *.... delete all the code there and insert this one:
data: i_table like /BI0/PMATERIAL occurs 0 with header line.
data: t_range TYPE rssdlrange.
select * from /BI0/PMATERIAL INTO TABLE i_table
WHERE OBJVERS = 'A' and MATL_TYPE = 'FERT'.
clear t_range.
t_range-IOBJNM = '0MATERIAL'.
t_range-FIELDNAME = 'MATNR'.
t_range-SIGN = 'I'.
t_range-OPTION = 'EQ'.
LOOP at i_table.
t_range-LOW = i_table-MATERIAL.
APPEND t_range to l_t_range.
endloop.
p_subrc = 0.
Save it and execute the InfoPackage. It might take a while to execute the infopackage.
Diogo.
Maybe you are looking for
-
Error in Printing with Adobe Reader 11.0.2
I just upgraded Adobe Reader from X to XI on my older Windows XP desktop. When I opened a PDF file and tried to print it, I got a pop up box saying: Prop Res DLL Not Loaded with an OK button. I could not get rid of the error mesage until I closed dow
-
hi i deployed ISE for BYOD and its working fine for windows and Apple devices. the issue is with android. sometimes i can register the devices in MY DEVICES portal and ISE will redirect me to download the network assistant tool. and sometimes it refu
-
Content Aware with Magic Wand¿
I used to fill in gaps of missing Panos with content aware in CS5 using the magic wand and fill - content aware. In CS6 it fills it in with the foreground color. The only way I can get the content aware to work is if I make the selection with the las
-
Dear, I had created report painter ZXX in KPG6. I would like to export ZXX to my PC. What t-code that i can use for that purpose? Thank you
-
Aironet 1010 - AP continues flashing
Guys, anyone know how to get a AP back online if it continues to flash? i've tried to reboot the AP - but no luck!! thanks..