Table PROJ & PSPNR
Hi,
Please Tell what is Significanse of PSPNR field of table PROJ (Project defination)?
and how it is linked to the PSPHI field of table PRPS(WBS) ?
For single project defination there is multiple WBS elements.
Pleas tell me the Functional Aspect between PSPHI & PSPNR?
Hi Vikram,
See what I understand ...If you want a link in bteween PROJ and PRPS use field POSNR.and POSID. If you wnat to fetch for one to many use
Select * from PROJ as pr inner join PRPS as ps Into ITAB
on prposnr = psposnr
and prposid = pspisid.
or you may find the relation between two table use Transaction Code : SQVI
ther you enter you table name you find the relation...
I hope it may help you if not then explain your problem in details ...
Souman
Similar Messages
-
No wildcard selection for PROJ-PSPNR
Hi all,
I've added the following select option to an input screen for a report:
s_pspnr FOR proj-pspnr, "Project definition
When I run the report I notice that I cannot enter a pattern...such as 100...to return all PSPNR that begin with 100. What gives? Am I missing something here?
regards,
Mathi Mathew,
The field PSPNR is associated with a check table, and hence if you enter 100, it will fail even selection screen validation (I believe you are getting an error message when you enter 100 in the selection screen field).
For this reason, when you try to get the data from SE16 also, if you give 100* you will not get all the projects starting with 100.
You may either need to change this to PSPID (i am not sure it will work), or you need to have a custom logic to have two fields (low and high) and then code the query using "like %".
Hope this helps,
Sajan Josph. -
CJ20N-fields are not getting updated in table PROJ
Hi all,
I have a requirement where I need to transfer the WBS element data created in one system to another using IDOC.
The idoc has generated sucessfully and was also sent/processed successfully in the recieving system but fields STSPD and STSPR are not getting poulated in table PROJ.
In the confic I have assigned FM:IDOC_INPUT_PROJECT to the process code.
Thanks,
GauravHi,
Please check with the Customer and Material Statistics group in the Customer and material master respectively.
Further check with the LIS settings (Sales Area combination with the Update group).
Reward points if this helps you.
Regards,
Harsh -
Creating Change Document for Custom Field in Table PROJ
Hi,
We have a few Custom Fields in Table PROJ.
What needs to be done so that every time a particular custom field is changed, change document in table CDHDR and CDPOS are created.
Regards,
Tarun BahalHi Tarun,
Please refer [Link1|https://help.sap.com/saphelp_nwmobile71/helpdata/en/2a/fa018f493111d182b70000e829fbfe/content.htm] & [Link2|http://help.sap.com/saphelp_erp2005/helpdata/en/db/7a2a40ce93185de10000000a1550b0/content.htm]
Hope this helps!
Regards
Shital -
Authorization for project (table PROJ)
Hi experts !
I would like create role for PS modula which is limited to field Object Class equal Investment. Itu2019s impossible. How I can check which field I can use for authorization for project (table PROJ).
Rgds StenwaStenwa,
there are no user fields in the project definition. Instead you will find them in the WBS element. In that case, you can use standard authorization objet C_PRPS_USR to check on the user fields, but, as I say, it will not point to PROJ but to PRPS.
CNEX0002 is a user exit to enhance authorizations in PS. You can check it in SMOD and create an implementation in CMOD but you will need the help of an abaper to create the necesary coding.
Rgds
Martina -
Data retrieval from proj and prps tables
I want to retrieve the data from proj & prps by giving selection parameter as
project defination (proj-pspid). Please give me an idea about this. Is there any common field i between these two.
regardsHello,
Check this:
*--- Selektion von PSP-Elemente
SELECT PRPS~PSPNR PROJ~PSPID PRPS~POSID PRPS~POST1
PRPS~OBJNR PRPS~PSPHI
INTO TABLE G_T_PSP
FROM PRPS
JOIN PROJ ON PRPS~PSPHI = PROJ~PSPNR
WHERE PROJ~PSPID IN SO_PROJ
AND PROJ~LOEVM EQ SPACE
AND POSID IN SO_PSP
AND PRART IN SO_PRART
AND PRPS~LOEVM EQ SPACE
AND PRPS~PBUKR IN SO_PBUKR.
Regards,
Vasanth -
Hi Guys,
I am using these tables PROJ , JSTO , JEST , TJ30 , TJ30T and TJ02T.can anybody tell me how they are Related.I mean Primary Key Freign key Relationship.
In my program i have to download the data from these table based on Created date and Last Updatetd Date .Except PROJ table other tables are not having any date field. So how to download the data based on PROJ Table for all the other tables?
Very Very Urgent.Full points will be given for correct Answer.
Thanks,
Gopi.Hello Gopi,
Please select the field OBJNR from PROJ table for a project not delete status.
Than select all the active user/system status for that project. Active and Inactive status you will find from the FM STATUS_READ and STATUS_TEXT_EDIT
SELECT SINGLE * FROM JSTO CLIENT SPECIFIED
WHERE MANDT = MANDT
AND OBJNR = OBJNR.
SELECT * FROM JEST CLIENT SPECIFIED
APPENDING TABLE JEST_TAB
WHERE MANDT = MANDT
AND OBJNR = OBJNR.
Please let me know your exact requirement, so that I may help you in better way.
Regards,
A.Singh -
Select data from two tables...!
HI Experts...!
i m a beginner user and i want to select data from two tables proj and prps.....using joins.....and internal tables i have written a code...
SELECT prps~pspnr
prps~objnr
prps~psphi
proj~ernam
proj~erdat
proj~pspnr
INTO table itab -
itab is internal table
FROM prps inner join proj
WHERE pspnr in p_no and prpspsphi = projpspnr.
but there is error in from clause ..please help me....
Advance thanx....Hi,
check the sample code bellow above two reply will solve out your problem but one more extra line in your code pointed out bellow.
TABLES: prps, proj.
TYPES: BEGIN OF ty_test,
pspnr LIKE prps-pspnr,
objnr LIKE prps-objnr,
psphi LIKE prps-psphi,
ernam LIKE proj-ernam,
erdat LIKE proj-erdat,
END OF ty_test.
DATA: itab TYPE STANDARD TABLE OF ty_test WITH HEADER LINE.
SELECT-OPTIONS: p_no FOR prps-pspnr.
SELECT prps~pspnr
prps~objnr
prps~psphi
proj~ernam
proj~erdat
* proj~pspnr " No need for this you have selected this in
* the first line because it is commone so you only need to select from any one
INTO TABLE itab
FROM prps INNER JOIN proj ON ( prps~pspnr = proj~pspnr )
WHERE prps~pspnr IN p_no.
Best Regards,
Faisal
Edited by: Rob Burbank on Dec 24, 2009 12:24 PM -
Tables statement in procedure.
hi experts:
today i get a program:
report ytest_table1.
tables:proj.
form frm_f1.
proj-pspnr = '12345678'.
endform.
report ytest_table.
form frm_f.
tables:proj.
if proj is initial.
endif. "breakpoint1
clear proj-pspnr.
if proj is initial.
endif. "breakpoint2
endform.
start-of-selection.
perform frm_f1 in program ytest_table1.
perform frm_f.
write: 1. "breakpoint3
when i run ytest_table and found:
the value is 12345678 when break1
the value is initial when break2
the value is 12345678 when break3
break 1 and break 2 i can understand that is a table work area,
but why break 3 is still 12345678?Hi,
please read the follwing note from the keyword help for TABLES:
Table work areas declared with TABLES can be declared in subroutines and function modules. However, this is not recommended. A table work area declared in a procedure is not local but belongs to the context of a framework program. The table work area can be viewed starting from the declaration in the framework program and lives as long as the framework program. In contrast to normal program-global data, the content of the table work areas declared in subroutines and function modules is stored temporarily when these subroutines and function modules are called. Value assignments that were made during runtime of the procedure are preserved until the procedure is completed. When exiting the procedure, the table work areas are filled with the contents that they contained when the procedure was called. Table work areas declared in procedures behave like global data to which the statement LOCAL is applied in the procedure.
Regards,
Klaus -
hi all,
In table
PRPS field PSPHI the field type is NUMC 8 .
but the data displayed in table is more than that length.
what is to be changed or adjusted here ?
thanks
amitHello Amit,
This due the Conversion exit.
When u r fetching data from PRPS with PSPHI u need to use the PROJ-PSPNR field. Then it will fetch all the WBS elements related to the concerned project.
If useful reward.
Vasanth -
Corresponding Sales Organization of a project, starting from table COVP.
Hello,
I need to find the corresponding sales organization of a project from the table COVP(this is for an interface). The sales organization is in table proj. But to get there, i need a connection. I thought about this connection:
COVP-OBJNR = AFVC-OBJNR - from afvc, take aufpl(Routing number of operations in the order)
AFKO-AUFPL = AFVC-AUFPL - from afko, take pronr(Project definition)
PROJ--PSPNR = AFKO-PRONR.
And from proj, take the corresponding sales organization.
What do you think?I am giving the right connection and all the necessary elements?
PS: This is only for network elements, for WBS elements I know the connection.
Thank you,
Efren
Edited by: Efren23 on Feb 22, 2012 8:55 AMHello,
Thanks Gokul.I've found the connections in this link:http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9659.
The only connection that was missing was between COVP and AFVC. But i think so and you agree that the right condition is
COVP-OBJNR = AFVC-OBJNR.
I will leave the question not answered until tonight, maybe others have other suggestions.
Thanks,
Efren
Edited by: Efren23 on Feb 22, 2012 10:33 AM -
PSPNR, PSPHI fields in Project systems
Hi BW Experts,
Currently I am developing Project System reports.I need to extract Project related information by comparing with PRPS (WBS Element) and AFKO table. I dont find most of the fields in any of the PS data sources.
Do I need to enhance these fields or is there any other data source holding this fields.
PROJ - PSPNR
PRPS PSPHI
AFKO PRONR
BSIK - NPLNR
Please help on this.
Thanks,
JelinaYou can use the enhancement CNEX0007.
There is a sub screen SAPLXCN1 / 0700 which you have to create and include the fields in that screen.
Reward if it is useful.
Thanks,
Srinivas -
Table for WBS,Network , Activity from CJ20n
Hi All,
What's the table to check WBS, network and activity?
Thank you.
Best Regards,
NiesHi
Project it is PROJ table where Project is PSPNR.
WBS it is PRPS the field is PSPNR,
the link is PROJ-PSPNR = PRPS-PSPHI (PSPHI is the project definition).
Activity Table is AFVC and the link is
PRPS-PSPNR(WBS elements of PRPS) = AFVC-PROJN (WBS elements of AFVC).
Network table is CAUFV and the link is
AFVC-AUFPL = CAUFV-AUFPL
<REMOVED BY MODERATOR>
Thanks.
Edited by: Alvaro Tejada Galindo on Feb 22, 2008 2:54 PM -
Hi,
Tables :PROJ-JEST-TJ30T Target Field:TXT04
PROJ-PSPNR--> PROJ-OBJNR =JEST-OBJNR + JEST-INACT = «blank»
JEST-STAT = (TJ30T-ISTAT = E* (we have to take only E*)+ TJ30T-SPRAS = EN) -->TJ30T-TXT04
We can have some status to display here, please concatenate and separate them by a coma.
can you give me suggestion to fill that requirement?
Regards
Subbusth like this:
SELECT
P~pspnr...
INTO CORRESPONDING FIELDS OF itab
FROM ( proj AS p INNER JOIN jest AS J
ON POBJNR = JOBJNR )
join TJ30T as t
on T~ISTAT = J-TSTAT
WHERE T~spras = 'EN'
and T~ISTAT like 'E%'.....
A. -
Hi,
Has anybody idea if it is possible to optimize this query?
I suppose that join should be the best, what I can get... but it is still very very slow. I need data from AFRU, AFVC, AFVV per project num (PROJ), so there are thousands of lines in result. Now I am able to get data only per one AUFNR(AFPO) - few minutes, per POSID(PRPS) or PSPID(PROJ) it falls down after 10 minutes.
Is it better to divide so difficult query or use another techniques? Or change order of tables in query?
Thanks for help in advance.
SELECT projpspid prpsposid afruaufnr afpomatnr maktmaktx afpoaufnr
afvcvornr afvcltxa1 afvvmgvrg crhdarbpl crtxktext afvvvgw01
afvvvgw02 afrulmnga afruism01 afruism02 afruersda afruernam
afrupernr afrurueck afruile01 afvvvge01 afvv~meinh
INTO CORRESPONDING FIELDS OF TABLE it_zppprodtime
FROM afru
INNER JOIN afpo
ON afruaufnr = afpoaufnr
INNER JOIN prps
ON afpoprojn = prpspspnr
INNER JOIN proj
ON prpspsphi = projpspnr
INNER JOIN crhd
ON crhdobjid = afruarbid
INNER JOIN afvc
ON afvcaufpl = afruaufpl
AND afvcaplzl = afruaplzl
INNER JOIN afvv
ON afvvaufpl = afruaufpl
AND afvvaplzl = afruaplzl
INNER JOIN makt
ON maktmatnr = afpomatnr
INNER JOIN crtx
ON crtxobjid = crhdobjid
WHERE
proj~pspid IN s_pspid
AND prps~posid IN s_projn
AND crhd~arbpl IN s_arbpl
AND afru~aufnr IN s_aufnr
AND makt~spras = 'CS'
and crtx~spras = 'CS'.Hi Martin,
I had a few concerns.
1) In real life it is unlikely that that you will get users to make queries on all the orders. It appears more likely to me that users would enter a project number/s in the selection screen. Given that it makes more sense constructing your query to begin with project number rather than order number. I have taken the liberty of modifying the query to give you an example.
2) I noticed that your query reads table CRHD using field OBJID. The primary key is based on fields OBJTY and OBJID. If you know the OBJTY you can use it in the where clause. This will let you use the primary key. Remember CRHD is a huge table.
3) You can use the OBJID from CRHD table to join table CRTX. (Look at the query below).
SELECT proj~pspid
prps~posid
afru~aufnr
afpo~matnr
makt~maktx
afpo~aufnr
afvc~vornr
afvc~ltxa1
afvv~mgvrg
crhd~arbpl
crtx~ktext
afvv~vgw01
afvv~vgw02
afru~lmnga
afru~ism01
afru~ism02
afru~ersda
afru~ernam
afru~pernr
afru~rueck
afru~ile01
afvv~vge01
afvv~meinh
INTO CORRESPONDING FIELDS OF TABLE it_zppprodtime
FROM proj
inner join prps
on prps~psphi = proj~pspnr
inner join afpo
ON afpo~projn = prps~pspnr
inner join afru
on afru~aufnr = afpo~aufnr
INNER JOIN afvc
ON afvc~aufpl = afru~aufpl
AND afvc~aplzl = afru~aplzl
INNER JOIN afvv
ON afvv~aufpl = afru~aufpl
AND afvv~aplzl = afru~aplzl
INNER JOIN makt
ON makt~matnr = afpo~matnr
INNER JOIN crhd
ON crhd~objid = afru~arbid
INNER JOIN crtx
ON crtx~objTY = crhd~objty
AND crtx~objid = crhd~objid
WHERE proj~pspid IN s_pspid
AND prps~posid IN s_projn
AND crhd~arbpl IN s_arbpl
AND afru~aufnr IN s_aufnr
AND makt~spras = 'CS'
AND crhd~objty = ????
AND crtx~spras = 'CS'.
Maybe you are looking for
-
Problem in Currency field in Abap Query
hi. I have created an additional field for storing the currency type. Based on some calculations i want to store the currency type into this additonal field.But the problem is that the currency field is not getting displayed in the report t
-
IBooks (PDF issues) - already posted from others in different ways ;-)
Hello everyone! Problems with iPad 3G/32GB with iOS 4.2.1 and iBooks 1.2.1(335); no modifications like "Jailbreaked" PDFs that shown up already in iBooks aren't anymore accessible after upgraded to the iBooks Ver. shown above. The PDFs still remain c
-
My updater will not recognize my 30 g iPod now. I updated iTunes to the 5.0.1 version and it recognizes my iPod fine now, however said that it could not download some some songs because the software on my iPod needed to be updated. I installed the up
-
How to extract the date n time from images
can anybody help me...what function/ method that i can use to extract the date an time from images thanks
-
How to automatically set value of sold to party field in crmd_order screen?
Hi Experts, We have a requirement where we have to automatically populate a standard SAP screen field when the screen opens. The T-code is crmd_order and the field is present in the fast entry tab whenu201Dcreate support messageu2019 is clicked. Now