ABAP - Duplicates using FB01
Hello experts,
This is the problem: I have this program which generates records using bdc procedures... the program runs perfectly in the list so 1 record shows correctly. However, when I looked in the background, I'm getting duplicate records (if we check FB03) for the same 1 only record I need.
Any ideas?
Thanks,
Andre.
Hi,
pls check tables: bkpf, bseg
and poss. bsik,bsid,bsis.
A.
Similar Messages
-
Want to have own selection screen in HR-ABAP report using LDB
Hi experts,
I am working on HR-ABAP report using LDB pnp and infotypes..But, here we get the built in selection criterion..but I want my own selection screen to be displayed..whats the solution for this??? Is it possible to create my own selection screen instead of default one..and how???
Please help me..its very urgent..Hi,
chk this out:
Create Report Categories
In this step, you define the report categories and determine the layout
of the standard selection screen for these report categories. You can
create report categories for programs or queries that are based on the
PNP or PNPCE logical databases.
The definition of report categories is divided into two sections:
o In the Change Report Category view, you define general attributes
such as sort order, input fields for date, and so on.
o In the Change Selection Criteria view, you define which selection
fields of the logical database should be avaliable on the selection
screen.
Example
You want to set up your system so that your employees can only start
evaluation reports for Payroll if they use a payroll area. Within a
payroll area, you should be able to select according to personnel
number. Additional selection criteria should not be possible and you
should not be allowed to enter a sort sequence.
Standard settings
The standard system already contains report categories. You can find the
attributes of the report categories in the table.
Note the following five report categories in particular:
o Report category ' ' is the SAP default report category for
programs that are based on the PNP logical database.
o Report category PNPCE is the SAP default category for programs that
are based on the PNPCE logical database.
o Report category '00000000' is the customer-specific default category
for programs that are based on the PNP logical database.
o Report category '0PNPCE' is the customer-specific default category
for programs that are based on the PNPCE logical database.
o Report category __X2001 is the default category for Queries that
are based on an InfoSet of the PNP LDB.
o Report category QUEPNPCE is the default category for queries that
are based on an InfoSet of the PNPCE LDB.
The default report categories are used when a report is called if
the report has not been assigned a report category.
Parameters and Options for Report Categories of the LDB PNP and PNPCE
Parameters and Options in Screen Area General Data
If you activate this parameter, you can only enter data on the data
selection period if you use reports that have been assigned. The
same date entries are then used for the person selection as for the
date selection.
o Matchcode allowed
If you activate this parameter, you have use of a Matchcode
pushbutton (search help) if you use reports that have been assigned.
This pushbutton enables you to perform the person selection.
o Sort allowed
If you activate this parameter, you have use of a Sort pushbutton if
you use report that have been assigned. This pushbutton enables you
to define a sort order before you execute the report.
o Organizational structure allowed
If you activate this parameter, you have use of an Org.Structure
pushbutton if you use reports that have been assigned. This
pushbutton enables you to perform the person selection.
Note:
For more information about these options, see the online
documentation under this path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> Standard HR Reports -> Report Selection Screen in
Human Resources Management.
Parameters and Options in Screen Areas Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Options for data selection period and person selection period (key
date and so on)
Here you define which options for date and person selection are
available for reports that have been assigned.
o Options for payroll area/period/year
Here you define which options for selection using payroll
area/period/year are available for reports that have been assigned.
Parameters and Options in Screen Area Selection View
o Type/Name
This parameter enables you to use selection views to define report
categories. You use the selection view selected here to determine
which fields are available in the Dynamic Selectionsy.
Note:
You create selection views for the PNP and PNPCE logical databases
in the Object Navigator (SE80):
1. Start the Object Navigator (SE80)
2. Choose Workbench -> Edit Object.
3. Choose the More... tab page and the Selection view on this tab
page.
4. Choose Create.
5. In the Create Selection View dialog box, choose the For any
tables option.
6. In the Name of view field, enter a name for your selection view.
7. In the Tables dialog box, enter the name of the table from which
you want to use fields.
Note:
When you enter the table name, observe the naming convention in
Personnel Administration:
Infotype number: nnnn -> table name: PAnnnn
8. Choose Continue.
9. In the Functional groups area, define functional groups by
assigning a name and a number.
10. Assign fields from the selected tables to the functional groups
by entering the number of the desired functional group in front of
each field.
11. Save your entries.
For more information about adjusting the dynamic selections using
your own selection views, see the online documentation under the
following menu path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> HR Standard Reports -> Report Selection Screen in
Human Resources Management -> Enhancing the Selection Screen -
Dynamic Selections.
If you do not want to offer dynamic selections, make the following
settings:
- LDB PNP: In the Selection view field, enter PNP_NO_FREE_SEL.
- LDB PNPCE: Leave the Selection view field empty.
Parameters and Options in Screen Area Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Available input parameters, date or period entry (today, key date,
all, and so on), and standard value.
Using the Standard value option, you define which of the selected
options is shown.
Parameters and Options in Screen Area CE Selection Fields
o CE selection fields (external person ID, grouping reason, grouping
value)
Using the options in this area, you define whether the external
person Id, grouping reason, or grouping value are available on the
selection screen.
Note:
These parameters are only relevant for you if you implement
Concurrent Employment (see also note 517071).
Parameters and Options in Screen Area Selection view
o Dynamic selections as dialog box
If this switch is set, you can call the dynamic selections as a
dialog box.
o Dynamic selections active
If this switch is set, the dynamic selections of the logical
database are active at the start of the report.
Note that the following combinations are possible for the last two
options mentioned:
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/inactive
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/active
Dyn.Sel. as dialog box/Dyn.Sel. active: active/inactive
Activities
1. Choose Edit -> New entries.
2. Enter an abbreviation and a long text for the report category.
The customer name range for report categories is 0-9.
3. Select the For the PNPCE logical database checkbox, if you want to
create a report category for a program or for queries of the PNPCE
logical database.
4. In the General Data screen area, choose the desired options.
If you want to use selection IDs, you must have first created and
grouped selection Ids. The IMG path to do this is given in the
parameter description section.
5. In the Data selection period/person selection period or Selection
period screen area, choose the desired options.
6. In the Selection view screen area, choose the desired options.
7. In the CE selection fields screen area, choose the desired (only
possible for report categories of the LDB PNPCE).
8. Save your entries.
9. Choose the subactivity Permitted selection criteria.
10. Choose Edit -> New entries.
11. In the Select option field, use the input help to select each field
that should be available on the selection screen.
12. Select the checkbox in the 1.page column, if you want this selection
field to be available directly when you call the selection screen.
Further notes
13. If you want to copy entries, you still have to enter the selection
parameters again in the subsequent screen.
o If you create the report category '000000000', a selection screen is
generated according to report category '00000000'for all reports for
which a report category has not explicitly been assigned.
Assign Report Categories
In this step, you assign a report category to your reports.
Example
You have created your own report, for example ZPCTEST1, and would like
it to have the selection screen that corresponds to that of the
evaluation report for Payroll, which is assigned to report category
'__M00001'.
Assign report category '__M00001' to the report.
Requirements
You must have defined the Report Categories.
Standard settings
SAP Standard Reports:
In the standard system, reports are assigned a report category. If you
want to override these assignments, perform the activities described
here. If you want to assign report categories to standard reports using
SE38, this represents a modification.
Customer-Specific Reports:
For reports you have developed yourself, you can either assign report
categories by performing the activities described here or directly in SE38.
Recommendation
Only assign a report category if you have created your own reports or if
the selection screens in the standard system do not meet your
requirements.
Activities
1. Choose Edit -> New entries.
2. Perform the required assignment using the Program name and Report
category fields.
3. Save your entries.
reward if helpful
regards,
madhumitha -
ABAP pgm using append, sum, modify
I am new to ABAP programming. Can somebody please help me out with the following program or give me some hints as to how to proceed?
1. ABAP inputs: The pgm will have following parameters:
P_ITEM - input string of 20 characters (select options)
P_QTY - input number (select options)
P_RATE - input number with 2 decimal points (select options)
2. Main processing logic:
1. Accept 5 items each with qty and rate.
2. store in internal table.
3. calculate their price.
4. sort on price in ascending order.
5. display o/p as per section 3.
3. Output format:
ITEM QTY RATE PRICE
TOTAL
Hints: For this ABAP make use of APPEND, SUM, MODIFY
Thank you.This can be coded, but it does make much sense. There is no "tie" between the selection-screen fields. If you are assuming that the first value in P_ITEM corresponds to the first value in P_QTY and P_RATE, then you can do it, but this is not really a good way of coding. Here is a sample anyway.
Add values to all three select-options and hit execute.
report zrich_0004
no standard page heading.
data: begin of itab occurs 0,
item(20) type c,
qty type i,
rate type p decimals 2,
price type p decimals 2,
end of itab.
select-options: s_item for itab-item,
s_qty for itab-qty,
s_rate for itab-rate.
start-of-selection.
clear itab. refresh itab.
loop at s_item.
clear itab.
itab-item = s_item-low.
read table s_qty index sy-tabix.
if sy-subrc = 0.
itab-qty = s_qty-low.
endif.
read table s_rate index sy-tabix.
if sy-subrc = 0.
itab-rate = s_rate-low.
endif.
itab-price = itab-qty * itab-rate.
append itab.
endloop.
sort itab ascending by price.
loop at itab.
write:/ itab-item, itab-qty, itab-rate, itab-price.
endloop.
Welcome to SDN! Please remember to award points for helpful answers and mark your posts as solved when solved completely.
Regards,
Rich Heilman -
How to test ABAP mapping used in a Integration Process node
Hi,
anyone can suggest me how to debug an ABAP mapping used into a transformation node belonging to an Integration Process ?
Thanks.
FrancescoHi, Francesco.
I've debugged ABAP Mapping with SXI_MAPPING_TEST transaction.
If you have creted a scenario including your ABAP Mapping, you only hace to put the correct sender/sender interface and receiver/receiver interface. You have to put some XML document as an input.
I wrote in my code the Break-point instruction an debugged the process without problems.
regards,
Francisco -
Hi All,
In previous versions of SAP PI, SAP recommends the use of IDoc or Proxy over RFC mainly due to performance reasons, but with PI 7.1, RFCs can use AAE which significantly boost its processing.
So the question is, with PI 7.1, is the performance of RFC adapter using AAE good enough that is should be considered over IDocs (using IE) & Proxies (using IE)? Please provide elaborate reply.
Thanks,
Rahul>>>>>So the question is, with PI 7.1, is the performance of RFC adapter using AAE good enough that is should be considered over IDocs (using IE) & Proxies (using IE)? Please provide elaborate reply.
Answer: If your major objective is only the performance factor then you can go for AAE using RFC. But RFC's individual processing performance is slightly lower than idocs and proxy.
Though AAE monitoring is just only in RWB, But due to less persistence steps involved in the entire processing, RFC with AAE supercede other options.
IDOc using IE vs Abap Proxy using IE --- I would recommend only Abap Proxy using IE. Plus you get all the monitoring features here. -
Hello Frn's
I need to develop a abap Query using LDB , for this a Infoset is allready created , which uses PNPCE LDB .
Below i am Descrbing the scenerio , for which we need to develop the query ....
Dept/Div Transfer
Employees who transferred dept or division within specified date range:
EmpID
Last Name, First Name
Date of transfer
New department
New division
Current supervisor
Old department
Old division
How can i fitler out the data of our requirment ... because i want to use same infoset in diffrent query .
Please provide some solution
Thanks and Regards..
Priyank DixitHi Priyank,
First you need to check whether all the required fields are available there in the LDB PNPCE(I guess you are using the same).
I think old department, old division must not be available there. Then you need to add it in your Infoset and write custom code for these fields. Once you are done with custom coding, you can use this infoset for creating queries.
Use trnx SQ02 to create queries, either SAP or Infoset.
Hope it helps. Let me know if you need some more help.
Raveesh -
ABAP Query using AFRU , COBRA , AUFK
Dear All
I have created an ABAP query using the join table AFRU, COBRA and AUFK. The query is generated.
But there is a problem , the cancelled time confirmations are stored in AFRU as positive values. But the report IW47 gived the cancelled time confirmation in negative values.
The query is giving the canecelled time confirmations as positive and subsequently the toal is affected.
Can anybody let me know, how can i make the cancelled time time confirmations as negative in my query.
Regards
Manish BansalThis is solved
Manish -
How web dynpro abap is used for snc
Hi folks,
I am new to web dynpro abap.Some one told we can upgrade snc from lower version to higher version but i dont have any knowledge on snc.For upgrading snc what we must have 2 know. How web dynpro abap is used for upgrading snc.Pls provide any links related to web dynpro abap with snc.
Thanks in advanceHello Ravidanda,
I have found a link that provides some information on how Web Dynpro ABAP is used in SAP SNC in the SAP Help. Here you go:
http://help.sap.com/saphelp_snc70/helpdata/EN/46/7256ce7fde01dde10000000a1553f7/frameset.htm
I hope this will help you. -
Upload the master data in abap-hr using Lsmw tool
Hi Friends,
Any one Help me How to Upload the Master data in ABAP-HR using LSMW.
In Recording what need to fill.
If any screenshots are availave please provied me.
Thanks and Regards,
Sai.http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
Try this ..... -
Hi Gurus;
Can some one send me the abap codes used mainly for reporting OR can some one give me some sample code used in reporting. my mail id "[email protected]".smod > rsr0001 > EXIT_SAPLRRS0_001 > ZXRSRU01 >
CASE I_VNAM.
WHEN 'ZE_FPPT'.
CALL FUNCTION 'Z_VAR_FP4'
EXPORTING
I_VNAM = i_vnam
I_STEP = i_step
I_T_VAR_RANGE = I_T_VAR_RANGE
IMPORTING
E_T_RANGE = E_T_RANGE.
FUNCTION Z_VAR_FP4.
""Local Interface:
*" IMPORTING
*" REFERENCE(I_VNAM) LIKE RSZGLOBV-VNAM
*" REFERENCE(I_STEP) TYPE I DEFAULT 0
*" REFERENCE(I_T_VAR_RANGE) TYPE RRS0_T_VAR_RANGE
*" EXPORTING
*" VALUE(E_T_RANGE) TYPE RSR_T_RANGESID
data: l_s_range type rsr_s_rangesid.
data: LOC_VAR_RANGE LIKE RRRANGEEXIT.
data: year(4).
data: mth(2).
IF I_STEP = 2 .
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE
( VNAM = '0I_FPER' ).
year = LOC_VAR_RANGE-HIGH+0(5).
mth = LOC_VAR_RANGE-HIGH+5(2).
if mth < 10.
concatenate '0' mth into mth.
endif.
concatenate year '0' mth into L_S_RANGE-HIGH.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF.
ENDFUNCTION.
Regards,
BWer
Assign points if helpful.
Message was edited by: BWer -
Access ABAP tables using NWDS Java Code
All,
I am planning to write a program to autmatically update is_url entries in sxmb_admin using a Java program.
Is there a way we can access the ABAP tables using standalone Java Code? would it something like dblookup that we use in the mappings?
Your Thoughts....
Thanks.Hi Vicky - Interesting..Seems like you are trying to automate every single thing
However you can make use of Jco to connect to ABAP tables..
Check the below thread..
Help on accessing tables of SAP from the Java Application
I assume the table name is "SXMSCONFVLV" which you might have to update but not sure.. -
Hi,
Can any please let me know if we can access Webdynpro ABAP application using mobile device. If yes, what are the steps/procedure to be followed.
Thanks.
NPHello,
after 4 years in 2012, i bought a tablet pc (aldi lifetab), installed a firefox-browser, the add-on cert-manager, installed a client certificate. After doing this i can accces webdynpro for abap applications without any problems. -
Can we create Interactive forms only with ABAP & without using GP, or Java
Hi,
I would like to know if we can create Interactive forms only with ABAP & without using GP or Java. We want to develop an offline solution using Interactive forms, but would like to use only ABAP for creating the forms. All the documents so far either refer to creating the forms, in reference to / in sync with: ISR (Service Requests), GP (General Procedures) or Java. Can this be done with ABAP alone?
Regards,
Ramesh
Edited by: Ramesh Nallabelli on Apr 16, 2008 12:02 AMHello Ramesh,
You should be able to create Adobe Interactive Forms using only the ABAP stack (without GP, Java, etc). Please refer to the thread below. Hope it helps.
Re: help for-offline interactive forms based on sending receiving mails in ABAP
Regards,
Rao -
Running abap programs using the macros
In our DP implementation we have faced several issues in the extraction of the data from the demand planning to one of the legacy system. We have written the ABAP program and would be using the read planning book bapi. I wanted to run the ABAP program using the macro could some one please let me know what is the structure of the macro builder that is used to fire the ABAP program. this is being fired from the macros as some comparison is to be done to run the macro.
Hi,
Some more information on macro function
REPORT_SUBMIT()
REPORT_SUBMIT( 'program_name' ; <'job_name'> ; <'job_number'>; <'newmode'>) causes the specified program to be executed. Use the optional arguments, job name and job number, if you wish the program to run in the background. If you set the argument 'newmode', the results are displayed in a new window.
Hope this will helps you.
Regards,
Sunitha. -
How could JAVA API and ABAP API useful to MDM.
Hi Experts,
How could JAVA API and ABAP API useful to MDM, and any coding in Java or ABAP is required in MDM.Hi Reema,
Java API and ABAP API are verry usefull to MDM to integrate MDM with other SAP componants like SAP R\3, EP etc. :
It dose not required any coding in MDM infact in JAVA API coding can be done on NWDS(Netweaver Developer Studio).And for ABAP API coding is done on SAP R\3 System in ABAP editor.
JAVA API:
By using Java API MDM client operations can be performed.For one need to install NWDS and to deploy some .jar files and with the help of standard classes and interfaces it can be connected to MDM server and various operations like create repository ,connect to repository ,Data mainuplation etc.
ABAP API:
Suppose you have an Expert abaper and you want him to perform MDM operations.In that case he need not to learn MDM basic Data types infact by doing some settings on R\3 and MDM server side an ABAPer can perform
MDM Cnsole and MDM Data Manager level operations.
you can go through these links
http://help.sap.com/javadocs/MDM/SP06/overview-summary.html
/people/bv.pillai/blog/2006/11/28/installing-mdmtech-add-on-and-configuring-the-mdm4a-mdm-for-abap-api
Here the coding is done on SAP R\3 system.
hope it will give you some idea about Java API and ABAP API
Reward if helpful
Thanks ,
Vinay Yadav
Maybe you are looking for
-
How to delete a file on web server without using FTP
Hi All I hv given a facility to a site user to upload some files.. And an interface to web administrator to view all the files.. I want to know how can i write a code in JSP which allow the web administrator to delete any of that file which is not of
-
Reader 9.3 upgrade install extremely slow
Haven't been watching it throughout, but for a while now I have, and it seems to be repetitively crawling through "removing older versions of this application". When it finally reaches the end of the progress bar, it clears and repeats, continuously
-
Item in NOTES have disappeared after ipad update
I updated my ipad with the latest update and I just noticed that several notes I had made in the notes app have disappeared. Any way to get them back and what caused this. I will also tell you that I noticed none of my notes were transferring to my
-
Data source is not activated!!!!
Hi Friends, Currently we are workig on BI 7.0 version and trying to upload flat file data. We have created Datasource for Flatfile source system and activated ( 100% sure about activation). But when we trying to give selections for the Fields in the
-
I am trying to use my I Tunes account with a new computer. Now we can't get the new music we bought to sync with the Nano. Any ideas?