GET PERNR skips some employees in the report
Hi all.
This is my first post in this forum. I'm beginner in ABAP programming and I've got a issue in my report that I don't succeed in solving it.
In the first line of the source code, within the start-of-selection event, I use the GET PERNR command to bring the employee personnel numbers. While I was debugging I've noted this command was skipping some employees. There isn't any line of code before the GET PERNR.
Do you have any ideia about what's happening?
Thanks in advance.
Tiago.
HI Tiago,
here is another probably cause. The dates. It´s important that the employees,
are active in the infotype(I think that is Infotype 0), in the dates that check your program. It´s useful to know
the selection data period (pnpbegda/pnpendda), the employees selection data (pnpbegps/pnpendps), the radiobutton selection data (pn-begda/pn-endda), of the pnp logical d.b.selection screen. You can see the values of these fields debbuging Ah!, another point, start-of-selection & Get pernr, are differents events in the execution of an abap program.
Hope this lines help you!
Carles
Similar Messages
-
How to get relationship between two views in the reports
How to get relationship between two views in the reports, I am doing a deletion program , it is fully relates to views , how to get relationship between them in the reports
Hi,
Please explain your question in detail...what do you want to read ?
If you want to know about the navigation links between the views then you can use APIs like
wdComponentAPI.getComponentInfo().findInWindows("windowName").getViewUsageByID("Name").getNavigationLinks();
Iterate through the navigationLinkInfo from above collection and can read the other properties .
I haven't tried the above , but it should work !!!
Regards,Anilkumar -
I want to add some fields in the report of FBL5N, Can anybody tell me how ?
I want to add some fields in the report of FBL5N, Can anybody tell me how to do it?
The fields are sales order, delivery, order quantity, net value and others.
I can only find the shipment number in FI document.
Thank you very much.Dear Jie,
Billing document number can be displayed in customer line item display
(FBL5N) and not in G/L line item display (FBL3N).
The value of VBELN is saved in table BSEG. So, this means, you
have to define the field BSEG-VBELN as a special field in table
T021S. Then you can use it in FBL3N, because then the report looks
directly in BSEG-VBELN.
For further information,please read the SAP note 207436. You don't have to
implement the coding corrections, if they are already in your system
with the hotpackage. But it explains very detailed the system
behaviour. The example in the note with field EBELN could be
replicated on your field VBELN.
About the MEINS field, please refer to 1-U_MEINS (bseg-meins field).
The SAP note 215798 may also be helpful.
Mauri -
How to get rid of unassigned values in the report
hai to all,
here is the issue,
while running a report(sales per country), iam getting the data,after that when i drill down on <u><b>sales document number</b></u> iam getting some unassigned data, with Sales document number as #, and some value in the keyfigure.what is the reason behind this?
Here is another issue that i want to find all the sales documents which have the value # in the report?, is it possible? the same case with <u><b>Customer country</b></u>, on the same report.
pl anyone help me
br
venkat/shyamHi Shyam.
Regarding the first issue: Well, you've loaded some data records into your cube where the "Sales Doc Field" is empty. Did you load through PSA? The best way to scan your PSA (I believe) is to find the underlying table and have a look at it via SE16. In this way you don't have to scan through every data single package. This can be done via "display data flow" from your cube and switch on technical names. There you have it. (It's called /BIC/B00...etcetc you might have to add i few zeroes though when you enter it into SE16). Get request ID from "Infocube Managment". In SE16 seelction screen use F2 to set the "sales Doc No." field even to blank.
Second issue is a bit easier: in your query (or a working copy of your query) restrict on "Sales Doc No" or "Customer Coutry" to only include value "#". In the same way you can remove the unassigned values be excluding value "#".
Hope this works for you.
Chears, Jørn -
Getting data from table control to the report program.
Hi,
I created a table control using report program and i am trying to enter data in the table control which i want to update in the DB table. How can i get the data entered in table control to the report program, so that i can update the DB table.
Please help me finding out which variable will hold the data entered in table control(dynamically).hi,
in your table control you give some name to that table control say it_cntrl.
this only serves as the internal table to process the table control data.
like u can write like this.
loop at it_cntrl into wa_cntrl. "wa_cntrl is work area of type it_cntrl table type
......... "do your functining
end loop.
any clarification get in touch
thnks -
Values not getting displayed from first page of the report.
Values in the report is getting displayed from second page.
First page in the report only displaying the report title and column names.
Secone page onwards, data and column names are generated.
Can any one please help me, with the cause of the problem.what reporting tool?
Interactive Reporting
Financial Reporting -
Hi,
I Haven't used Vb.net, as I work on C#, But in SSRS it supports only VB.net code as custom coding, so i coded in c# and converted to VB.net from online converter. The code i got from online converter is working fine in local i.e when i preview in BI studio,
but when i try to deploy the same i'm getting error
Error 3
There is an error on line 12 of custom code: [BC30201] Expression expected.
0 0
Below is the code:
' -- Author : Jai Anand
' -- Date : 06-05-2014
' -- Discription : To split the given string of numbers and Assign the days for it,
' -- example: if integer 1 - (Su) --> Sunday, 2 - (Mo) --> Monday
public Function FindPlanDays(plandate As String) As String
Dim planarray As String() = New String() {}
Dim days As String = ""
planarray = plandate.Split(","C)
Dim i As Integer = 0
While i < planarray.Length
Dim day As String = If(planarray(i) = "1", "Su,", If(planarray(i) = "2", "Mo,",
If(planarray(i) = "3", "Tu,", If(planarray(i) = "4", "We,", If(planarray(i) = "5", "Th,", If(planarray(i)="6","Fr,", If(planarray(i) = "7", "Sa,", String.Empty)))))))
days = days & day
i += 1
End While
days = If(days <> String.Empty, " (" + days.TrimEnd(","C) + ")", days)
Return days
End Function
Kindly check the code, if any issue is there,give me the solution..Thank youHi,
I found the solution and the report is deployed . The issue was with If and we should suffix with space and underscore( _) at the end of the line break and continues in next line (i.e if the statement continues in next line).
iif has always been available in VB, even in VB6.
Dim day As String = Iif(planarray(i) = "1", "Su,","Mon")
It is not a true operator, as such, but a function in the Microsoft.VisualBasic namespace.
so the modified code which worked fine to deploy
' -- Author : Jai Anand
' -- Date : 06-05-2014
' -- Discription : To split the given string of numbers and Assign the days for it,
' -- example: if integer 1 - (Su) --> Sunday, 2 - (Mo) --> Monday
public Function FindPlanDays(plandate As String) As String
Dim planarray As String() = New String() {}
Dim days As String = ""
planarray = plandate.Split(","C)
Dim i As Integer = 0
While i < planarray.Length
Dim day As String = Iif(planarray(i) = "1", "Su," ,Iif(planarray(i) = "2", "Mo,", _
Iif(planarray(i) = "3", "Tu,", Iif(planarray(i) = "4", "We,", Iif(planarray(i) = "5", "Th,", _
Iif(planarray(i) ="6","Fr,", Iif(planarray(i) = "7", "Sa,", String.Empty)))))))
days = days & day
i += 1
End While
days = Iif(days <> String.Empty, " (" + days.TrimEnd(","C) + ")", days)
Return days
End Function -
Why Actual Posting skips some employees
Hi,
I am facing a problem during simulation and actual posting run.
In simulation posting run system executes the exact employees while during actual posting system skips few employees regularly. Further more these employees have no master data problem.
Regards
raoimranSimulation run does not dates into account though it is there in the selection screen ..however in actual run the dates are taken into account ...also for posting the results need to be present in the cluster....if they are not here then those employees will be skipped.
-
GridPOV is getting reverted to UserPOV without changing the report in Stdio
Hi everyone,
I am a facing a problem on Reports because of that the Grid POV get moves to User POV. I could see the Date and time stamp or Report modified, but I am sure that the change was not made physically by logging into FR Studio. I know this sounds weird but I would appreciate if anybody will share His/Her thoughts about this. Although I could see the date and time stamp of the reports modified but It could be of the access given/change.What could be the possible reason for this.
Thanks
Yogesh JainWhich version is this? I've never heard of this one before. Sounds like a bug to me. I'd open a ticket with Oracle.
Cheers,
Mehmet -
Words Getting jumbeled together when I print the reports?
I am using my Crystal Reports to link into YARDi (real estate program), When I print some reports I recently created the words and letters get mixed up??
Please help!I think its coz of some Version update or Patch problem for Crystal Reports Eclips 2.0
Check this site
Re: Crystal Reports for Eclipse Version 2 - Feedback?
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20c69834-cfc4-2b10-da81-960222254295
Thanks,
sandhya -
Report- not displaying some records in the report
I have a query say q1 based on the query value. I am getting place holder colums obtained from a procedure. based on one of the place holder columns i want to display the data say i have place holder column err_ind if it y. i don't want to display the record in report.
how can i do it ? ur help is much appreciated.Hi Praveen,
Thanks for the response.
Actually i did debug the program with the help of our technical guys but found nothing wrong in both the quality and the production system. We compared the program in both the systems and it seems to be same. I am exploring this issue. Will update the findings here.
In case anyone has any suggestion please do suggest.
Regards,
Gokul -
How to SQL*loader to skip some columns from the source file?
I am using oracle9i sqlldr to load some .csv files into db.
If I want to skip the first two columns in the source file, can I do that?
If yes, how should I specify it in the ctl file?
Thanks
WendyHello Dave,
Here is a sample of what you'll need to have in your control fileLOAD DATA
APPEND
INTO TABLE <target_table>
FIELDS TERMINATED BY ','
( column_1 FILLER
, column_2
, column_3
, column_4 FILLER
)Hope this helps,
Luke -
How we we display list the employees in the reporting hierarchy order? Need T-SQL
Rather than see everyone by level, it seems the natural way you might want to report them is in reporting-line hierarchy.Create table #test_t (ManagerID int,EmployeeID int ,Title varchar(100),Level int)
Insert into #test_t
select NULL,1,'Chief Executive Officer',0 Union All
select 273,285,'Pacific Sales Manager',2 Union All
Select 273,16,'Marketing Manager',2 Union All
select 274,275,'Sales Representative',3 Union All
select 274,276,'Sales Representative',3 Union All
Select 16,23,'Marketing Specialist',3 Union All
select 273,274,'North American Sales Manager',2 Union All
select 285,286,'Sales Representative',3 Union All
Select 1,273,'Vice President of Sales',1 ManagerID EmployeeID Title Level
NULL 1 Chief Executive Officer 0
1 273 Vice President of Sales 1
273 16 Marketing Manager 2
16 23 Marketing Specialist 3
273 274 North American Sales Manager 2
274 275 Sales Representative 3
274 276 Sales Representative 3
273 285 Pacific Sales Manager 2
285 286 Sales Representative 3I need TSQL query for this kind of result set. Level more than 3 we have in data.Your query display the following result. See the my required result set accordingly Level wise.
ManagerID EmployeeID Title Level
NULL 1 Chief Executive Officer 1
1 273 Vice President of Sales 2
273 285 Pacific Sales Manager 3
273 16 Marketing Manager 3
273 274 North American Sales Manager 3
274 275 Sales Representative 4
274 276 Sales Representative 4
16 23 Marketing Specialist 4
285 286 Sales Representative 4
I need following display order
ManagerID EmployeeID Title Level
NULL 1 Chief Executive Officer 0
1 273 Vice President of Sales 1
273 16 Marketing Manager 2
16 23 Marketing Specialist 3
273 274 North American Sales Manager 2
274 275 Sales Representative 3
274 276 Sales Representative 3
273 285 Pacific Sales Manager 2
285 286 Sales Representative 3 -
How to get total number of times excuted the report
hi,
Can you spend for a while.
Requirement is when the Monthly summary report: When report executed then in the header it has to display how many times times this is executed and data has to display(this completed).
For example out put is:
No.of times executed:20 (means this is 20th time this report is running)
here data has to display(This i completed).
Thank you,
Anu.Anitha Reddy wrote :
Requirement is when the Monthly summary report: When report executed then in the header it has to display how many times times this is executed and data has to display(this completed).
For example out put is:
No.of times executed:20 (means this is 20th time this report is running)
here data has to display(This i completed).
If you completed everything then what is your problem ?? -
Regarding the get pernr function
Hi guys,
Got to know that when we use get pernr it automatically checks for the autherization on pernrs to view data.
Would like to know who all have access to see which pernrs? Can i get any ideas on this....
Thanks in advance
AbhiTriggers the associated events when data is read in an executable (type 1) program using a logical database.
node is a node in the logical database that is assigned to the report (type 1 program) in the program attributes. You must declare the node in the report using the NODES statement (or the TABLES statement, if the node is of the type "table").
The node node corresponds to a data object of the same name.
node is available for processing during the flow of the logical database. Moreover, you can also make reference to the fields from the node that lie on the access path for node in the logical database associated with the report - unless the node is of the dynamic dictionary type.
Notes
You can use the event "GET dbtab." only once in the report.
The GET events are implemented internally as FORM routines. This makes all data objects declared with DATA local, that is, they are only recognized and addressable within the event. This also applies to AT SELECTION-SCREEN ....
The logic is somewhat different for nodes of the dynamic dictionary type. You must declare these nodes in the report using the NODES node TYPE type statement. In this case, type a dictionary type from the logical database for the node node - that is, the type of the data object node assigned to the node node can differ in different reports. In this case, the data object node is local to the -GET event and has the structure type. Outside the -GET event, a (global) data object node also exists and has the static type assigned to the node. The actual data is, however, returned in the local field node and is available only within the -GET event.
Example
The program uses the logical database F1S which has a structure where the table BOOKING appears below the table FLIGHT.
NODES: SFLIGHT, SBOOK.
GET SFLIGHT.
WRITE: SFLIGHT-CARRID,
SFLIGHT-CONNID,
SLFIGHT-FLDATE,
SFLIGHT-PLANETYPE.
GET SBOOK.
WRITE: SBOOK-BOOKID,
SBOOK-CUSTOMID,
SBOOK-ORDER_DATE.
Maybe you are looking for
-
Report Output for Currency Field--EKBE-WRBTR
Hello ABAP Experts Since the Issue is related with Related Report output. Thought ABAP General Forum would be right place to post. If not Suggest an appropriate forum for the same. I shall post them in Correct Forum. Currently the report display Curr
-
If I have to load the same apple id on all devices to use home share, does that preclude each device from using a second apple id and does that constitute a separate Itunes db or something?
-
Im having a very annoying problem with the sound output on my iMac frequently dropping out. Im using a USB Digidesign MBox 2 with speakers connected to it as my sound output and input device. Trouble is if im playing music in iTunes, or using another
-
Sun has the J2ME Wireless Toolkit for Linux, and Nokia has recently released a Linux version of their Developer's Suite for J2ME. So why don't you have a Linux version of the J2ME Extension for JDeveloper? I don't want to have to run Windows just to
-
Firefox crashes when opening a new window
Firefox opens normally and runs properly -- until I close all its windows. When zero windows are present, and I return to Firefox and ask for a new window, Firefox hangs. To resolve the problem I must Force Quit the app, which generates a crash repor