How to fetch the Reqd. Quan & Result Quan for a Z-report w.r.t. tcode CS15
Hi Group,
I have a requirement to develop a Z-report depending on the o/p of the tcode CS15.
The result should be same as that of the CS15 with the a few additions:
(1)Providing option to accept multiple Materilal Numbers
(2)Filtering out the selection criteria on the fileds MRP Controller, Profit Center and etc.,
my queries are:
(1)In the Standard report, I was getting the fields Required Quantity and Result Quantity in the output. Whereas for me
I was using a fm 'CS_WHERE_USED_MAT' to fetch the BOM items but whereas in the return parameter (STPOV) does not
contain these fields(Result Quan and Reqd. Quan).
(2)I have to show the Material Type in the output. But when I fetch the records from the above FM, I was getting the Component
details but not the Materials. - the user wants the Material Type to be shown for each record.
Kindly provide me inputs on the above queries.
Regards,
Vishnu.
Hi,
You can refer my wiki which i posted long back.
link:[Inverse BOM Explosion|http://wiki.sdn.sap.com/wiki/display/Snippets/InverseBOMExplosion-ABAP] . Please note that the coding is not so good. If its today i could have wriiten it better
In case of quantities you will not get it directly . filrtering the material type is really easy comparing the result with MARA-MTART.
Similar Messages
-
How to fetch the Business area field value from MIRo into report
Hi,
I want to create a report for MIRO with payment details.
How to fetch the business area field value in to report.
What is the table name. I verified it is storing in structure. Which is the right table for fetching that value with reference to MIRO.
After that, how to find the accounting document for payment and check details.
What are the table names and field names. What we can get from PAYR table.
With regards
LakkiDear,
For Bussiness area
RKPF-GSBER -
How to fetch the payroll posting run number in a custom report
Hi Experts,
We have a requirement on getting the payroll posting run from PCP0.
We are extracting the report for offcycle payments.
Could you please share your ideas in fetching the run number of the offcycle posting run.
Thanks in advance.
Sairam.Thanks Mohan.
I have tried with PPOIX.But alot of line items are showing up for the same Infotype(Offcycle) with different Run numbers.
What is the criteria for knowing the posted values Run number from the list of line items from PPOIX.
Please share your ideas.
Regards,
Sairam. -
Hi Experts,
Pls. let me know that,
How to fetch the SAP Standard Prog. built internal table into my_z_prog.?
For more explannation, pls. see my other thread with name of yestrday,
SUBMIT RFGLBALANCE WITH selection criteria, then How to get resulted itab?
thanqHi
Suppose RFGLBALANCE is your standard program and you have an internal table named I_RFGLBALANCE.
And lets say your Z program name is Z_SRINIVAS.
First find out the type of the internal table you want in your Z-program in the standard program. And declare an internal table of similar type in your Z-program.
I hope you can do this much.
Later wherever you are putting the below mentioned code.
SUBMIT RFGLBALANCE WITH selection criteria
Write the code which i have written.Obviously modify it to suit your requirement.
Please show what is not working fine so that even anyone else can help you with the problem you are facing.
Regards,
Mayank -
How to fetch the data & display the data if fields got the same name in alv
hi frnds, i need ur help.
how to fetch the data & display the data if fields got the same name in alv grid format.
thanks in advance,
Regards,
mahesh
9321043028Refer the url :
http://abapexpert.blogspot.com/2007/07/sap-list-viewer-alv.html
Go thru the guide for OOPs based ALV.
Use SET_TABLE_FOR_FIRST_DISPLAY to display the table:
CALL METHOD grid->set_table_for_first_display
EXPORTING
I_STRUCTURE_NAME = 'SFLIGHT' Structure data
CHANGING
IT_OUTTAB = gt_sflight. Output table
You can also implement
Full Screen ALV, its quite easy. Just pass the output table to FM REUSE_ALV_GRID_DISPLAY.
For controlling and implementing the FS-ALV we have to concentrate on few of the components as follows :
1. Selection of data.
2. Prepare Layout of display list.
3. Event handling.
4. Export all the prepared data to REUSE_ALV_GRID_DISPLAY.
Regd,
Vishal -
How to fetch the payment details in to report
Hi,
I have the MIRo number, How to find the payment document number and check number so and so.
What are the transactions like: F053,FB03.
Let me know the process of payment after MIRO.
What are the documents we need to raise, how to find those documents, what is the link.
How to find the accounting document for payment and check details (from which tables).
What are the table names and field names. What we can get from PAYR table.
I want to create a report for MIRO with payment details.
How to fetch the business area field value in to report.
What is the table name. I verified it is storing in structure. Which is the right table for fetching that value with reference to MIRO.
With regards
Lakki
With regards
LakkiHi,
For Creating MIRO Document,
We have to create PO Me21n,
then Do GR - MIGO using PO Reference,
then we have to do MIRO Using then same PO. so the link is basically the PO. Then the Payment for the MIRO document is done in F-53/F-58 refering the MIRO document. the check number will be generated once we do the Check Print in
FBZ5.
You can assign the check number to the F-53 document either in Assignment Field or the Reference field Using FCHU.
Once you do this you can view all the Vendor Bill using Doc Type RE, KR & Vendor Payments Doc Type KZ.
You can use the Std Report FBL1N / FK110N
Hope its useful. Assign points if found use ful
Regards,
R.Ramakrishnaraj -
How to fetch the VAT registration number of the ship to party from billing
Dear SDN Team
How to fetch the VAT registration number of the ship to party from the billing document. Can you proide some information for fetching the VAT registration number of the ship to party.
Normally only the payer VAT registration number will be displayed in the Invoice. But in my case the Ship to party VAT number is displayed.
I have resolved this problem by doing the customizing setting in order to have the payer vat registration number. But for the Old Billing documents it is more than 30,000 documents where it was printed with the ship to party VAT number. So i need to identify those documents.
Can you please help to resolve this problem.
With Regards,
JaiHi,
To get VAT from the ship to from Billing, You have to first fetch the BILLING NUMBER from the VBRK and then goto the Document flow in VBFA to get the SALES DOCUMENT NUMBER and with sales document you will get the SHIP TO number from the VBPA with the PARVW = SH
Once you got the SHIP TO , then goto the KNA1 and get the VAT ID in the field STCEG
so the logic will be as follows
VBRK---VBELN and then
VBFA--VBELN with the document Category as C
VBPA-VBELN and get the KUNNR with PARVW =SH
Now with KUNNR ( ship to ) get the VAT ID from KNA1-STCEG
regards,
santosh -
How to fetch the query string in BW?
Hi Gurus,
How can fetch the query string from BW Server to implement Bex web application Iview.
*Now to get the information "BEx Web Application Query String". open the SAP Log on and open the BW Browser, double click any of the queries available, this will open a window and select the Query String ( it should be between & to end &).*
Explain the above point with more detail like how will open the bw browser what is the step for that?where the query string will available in BW browser.
Higher points will be rewarded for valuable inputs.
Thanks in Advance,
Dharanihi ,
What krishna suggested is right ... Another method can be like :
&CMD=LDOC&infocube=0D_DECU&query=SALES_DEMO_2
Get this information from your BI consultant.
Please close thread if you got ur answer!!!
Regards
Parth -
How to fetch the query by a report
Post Author: gionnyDeep
CA Forum: Data Connectivity and SQL
How to fetch the query by a report.I need to manipulate it and pass it again to the report.
Any idea?Post Author: gionnyDeep
CA Forum: Data Connectivity and SQL
I just need to get the query of a report.
You know that a report is buld up on a sql query.I just want to know how to get that query starting by a java ReportClientDocument.
And I found reportClientDoc.getDatabaseController().getDatabase() to fetch DataBase object .After that I do not know the exact sequence of methods for fetch the query
Sorry for my english -
How to fetch the Table Control data to Customer Table(Z-Table) ?
How to fetch the Table Control data to Customer Table(Z-Table) ?
Hi Krishna,
Check this sample programs
http://www.planetsap.com/online_pgm_main_page.htm
http://sap.niraj.tripod.com/id29.html
http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm
Have a look at below links. It will help you.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
Thanks,
Reward If helpful. -
How to update the test case result in MTM using C#
Hi
I have tried the following code but when I execute the same I am getting the testcase result as "In Progress".
How to update the testcase execution result as Passed.
I tried the below code:
public
static
void UpdateResult()
TfsTeamProjectCollection tfs =
new
TfsTeamProjectCollection(TfsTeamProjectCollection.GetFullyQualifiedUriForName(server));
ITestManagementService tms = tfs.GetService<ITestManagementService>();
ITestManagementTeamProject proj = tms.GetTeamProject(project);
ITestPlan Plan = proj.TestPlans.Find(1);
ITestRun testRun = proj.TestRuns.Create();
testRun = Plan.CreateTestRun(false);
ITestPointCollection points = Plan.QueryTestPoints("SELECT
* FROM TestPoint");
foreach (ITestPoint
p in points)
testRun.AddTestPoint(p,Plan.Owner);// null);
testRun.State = TestRunState.Completed;
testRun.Save();
ITestCaseResultCollection results = testRun.QueryResults();
ITestIterationResult iterationResult;
foreach (ITestCaseResult
result in results)
iterationResult = result.CreateIteration(1);
foreach (ITestStep
testStep in result.GetTestCase().Actions)
ITestStepResult stepResult = iterationResult.CreateStepResult(testStep.Id);
stepResult.Outcome = TestOutcome.Passed;
iterationResult.Actions.Add(stepResult);
iterationResult.Outcome = TestOutcome.Passed;
result.Iterations.Add(iterationResult);
result.Save();
results.Save(true);
testRun.Save();
testRun.Refresh();Hi Mohammed,
Sorry for my delay.
According to your code, I have been modified your code in my side and it can work fine. So you can refer the following code to check your issue in your side.
Reference:
publicstaticvoidUpdateResult()
TfsTeamProjectCollectiontfs
= newTfsTeamProjectCollection(TfsTeamProjectCollection.GetFullyQualifiedUriForName(server));
ITestManagementServicetms
= tfs.GetService<ITestManagementService>();
ITestManagementTeamProjectproj
= tms.GetTeamProject(project);
ITestPlanPlan = proj.TestPlans.Find(1);
IStaticTestSuitesuite
= Plan.RootSuite.SubSuites.Where(s
=> s.Id == 1339).First()
asIStaticTestSuite;
ITestCasetestcase
= null;
testcase
= suite.Entries.Where(e
=> e.Title == "login").First().TestCase;
ITestRuntestRun
= project.TestRuns.Create();
testRun
= Plan.CreateTestRun(false);
ITestPointCollectionpoints
= Plan.QueryTestPoints("SELECT * FROM TestPoint WHERE TestCaseId ="+
testcase.Id);
foreach(ITestPointp
inpoints)
testRun.AddTestPoint(p,
Plan.Owner);// null);
//testRun.AddTestPoint(p, null);
testRun.State =
TestRunState.Completed;
testRun.Save();
ITestCaseResultCollectionresults
= testRun.QueryResults();
ITestIterationResultiterationResult;
foreach(ITestCaseResultresult
inresults)
iterationResult = result.CreateIteration(1);
foreach(ITestSteptestStep
inresult.GetTestCase().Actions)
ITestStepResultstepResult
= iterationResult.CreateStepResult(testStep.Id);
stepResult.Outcome
= TestOutcome.Passed;
iterationResult.Actions.Add(stepResult);
iterationResult.Outcome
= TestOutcome.Passed;
result.Iterations.Add(iterationResult);
result.Outcome
= TestOutcome.Passed;
result.State = TestResultState.Completed;
result.Save(true);
testRun.Save();
testRun.Refresh();
Note: you will need to
base on your requirement to modify the code such as modify the testsuite id and title in your side.
In addition, I find a blog about TFS API that can help you:
# Code snippets on Test Management APIs
http://blogs.msdn.com/b/aseemb/archive/2012/08/07/code-snippets-on-test-management-apis.aspx
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to insert the select query result into table?
How to insert the select query result into table?
SELECT top 20 creation_time
,last_execution_time
,total_physical_reads
,total_logical_reads
,total_logical_writes
, execution_count
, total_worker_time
, total_elapsed_time
, total_elapsed_time / execution_count avg_elapsed_time
,SUBSTRING(st.text, (qs.statement_start_offset/2) + 1,
((CASE statement_end_offset
WHEN -1 THEN DATALENGTH(st.text)
ELSE qs.statement_end_offset END
- qs.statement_start_offset)/2) + 1) AS statement_text
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st
ORDER BY total_elapsed_time / execution_count DESC;
Thanks,
Tirumala1. SELECT INTO
Below method will create table when data is inserted from one table to another table. Its useful when you need exactly same datatype as source table.
Use AdventureWorks2008R2;
Go
---Insert data using SELECT INTO
SELECT AddressLine1, City
INTO BothellAddresses
FROM Person.Address
where City = 'Bothell';
GO
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
2. INSERT INTO SELECT
Below method will need table to be created prior to inserting data. Its really useful when table is already created and you want insert data from
another table.
Use AdventureWorks2008R2;
Go
---Create Table
CREATE TABLE BothellAddresses (AddressLine1 NVARCHAR(60), City NVARCHAR(30))
---Insert into above table using SELECT
INSERT INTO BothellAddresses(AddressLine1, City)
SELECT AddressLine1, City
FROM Person.Address
where City = 'Bothell';
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
Regards,
Vishal Patel
Blog: http://vspatel.co.uk
Site: http://lehrity.com -
How to fetch the description of a field
Hi All,
Could anybody please tell me , how to fetch the field description for a given field name .Any function module for it or how to fetch it ??
Thanks in Advance.
Regards,
Rakesh.Hi,
Copy paste this code and at the end of the code check the table len_table
data: len_table type standard table of DFIES .
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = 'JKAP' {color:red}" change as per your requirement{color}
FIELDNAME = 'VBELN' {color:red}" change as per your requirement{color}
* LANGU = SY-LANGU
* LFIELDNAME = ' '
* ALL_TYPES = ' '
* GROUP_NAMES = ' '
* UCLEN =
* IMPORTING
* X030L_WA =
* DDOBJTYPE =
* DFIES_WA =
* LINES_DESCR =
TABLES
DFIES_TAB = len_table
* FIXED_VALUES =
* EXCEPTIONS
* NOT_FOUND = 1
* INTERNAL_ERROR = 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.
Check out the internal Table len_table.
Hope it helps you,
Regards,
Abhijit G. Borkar -
How to fetch the data from Ecc to BI ?
Hi everybody.
Can anyone briefly explain with the screen shots > How to fetch the datasource from RSA5 tcode in ECC to BI? How you replicate there? how the INFO PACKAGE , TRANSFORMATIONS, DTP , DSO, INFO CUBE was created? where we see the catalogs for this data.......THANKS IN ADVANCEHi.
You can follow the below steps to fetch the data from ECC to BI System.
1>Connection should be there between ECC and BW System.
2>Go to Tcode-RSA5 in ECC system and find your data source and then activate it.
3> Go to Tcode-RSA6 in ECC system to check whether your DS is available..if it is there then its been activated.
4>Go to Extract Checker tcode RSA3 and test the data and make sure data is correct.
5>login to BW Side..go to tcode RSA1-->Choose your source system. ECC -> double click on it and you will move to Data source>Select your Application component ex, SD,FI ...>Right click and replicate the Datasouce> Now on refresh you can see the datasource in BI System.
6>Install the related the Infoprovider .. cube or dso ..Connect the datasouurce and create Transformation.
7> Now create infopackage and run it in ful & init mode then do the delta for the new records.
Please refer the below link for more details on extraction.
http://www.trinay.com/SAP%20BW%20Extraction.pdf
Hope this helps.
Br.
Alok -
How to delete the Time Evaluation Result in the CLSTB2
Hello,
does anyone know how to delete the time evaluation result in the CLSTB2?
thanks.Hi Ling,
SE38
program RPUP2D00
Relation Id is B2
in sort field give pernr
tick the check box of delete.
password is your id (ex : saphcm)
Regards,
Harsha
Maybe you are looking for
-
hi all, actually we r loading data from flat file to the cube.in that flat file,there was a column x. under that clumn there are 2 repeated values A & B. in this case we have to tell the system that to pick only A under that X column. plz tell me the
-
Adding a Lightroom action to Export Actions folder
Despite endless monitor calibration with Spyder, my prints from Mpix come out much darker than they appear on my Intel iMac monitor (running OSX 10.5.5). I have tried using Shades to darken my monitor, but I don't like my screen looking that dark all
-
Icons disappearing in Photo app under iOS5
iOS5 Photo app has major bug on iPad When you select folder and go into it, it is Ok. However when you leave the folder the icon of the folder and the name of the folder completely disappear as if its not there. The only way to get the folder back is
-
BBP_ANALYZE_PO_APPLIC is not released
Hi, We are implementing SRM5.0 with ECC6. When we create PO manually in SRM then it does not goto R/3. Here PO status remains in Order condition but there is not document transfer from SRM to ECC as well as when we tried to push through FM, it gives
-
Copying part of filename in Finder
Hello Mavens, this is what I'd like to do: Enhance the Replace Text in Filename script that Apple provides with the OS in such a way that I can 1 - select a filename, as if for editing, in a folder 2 - select part of a filename (the part I want to ch