ABAP query using IHPA--need partner address
I am using SQ01 to create a query. I amusing the EQUI and IHPA. I need the partner address for Partner function = EC. I have the parner number but not the address number, so I cannot join to table ADRC.
Hi 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
Similar Messages
-
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 -
SAP / ABAP Query - using logical database
Hi ,
We have a mandate to implement SAP Query using only Logical Databases (LDB ) .
We understand that there are several issues using this approach .
1 ) Paralled tables in MM need to be displayed on separate lines .
2 ) Statistics based on fields from 2 different tables cannot be produced eg: EKPO ( PO Number ) and EKKN . (Cost Center )
Please share your experiences .
Thank you in advance .
Kishore
KishoreAdeel,
I do appreciate your experience and respect you for knowledge on SAP Query.
Joining tables seem simple to IT experts but not so for end users. SAP Query is an end-user tool and users seem to need a simple user-friend, drag-and-drop solution to extract information using SAP Query based on a pre-defined infoset. Various SAP conferences have been advocating the use of SAP delivered Logical Databses to create infosets in order to harness the various advantages of LDBs.
In MM there are several LDBs (e.g. ELM, EBM etc) to create queries on EKPO and EKKN. The problem arises when you use the same LDB to extract information from more than the above two tables e.g. EKPO, EKET, EKKN and EKBE. SAP expects you to display fields on multiple lines and also does not allow producing statistics based on fields from two parallel tables say EKKN and EKBE. Moreover, multi-line reports cannot be produced in the ALV/SLV format.
We are also looking for best practise solutions in providing SAP Query to MM or FI users based on SAP delivered Logical Databases.
Pascal -
ABAP query using logical database KDF is not populating custom fields
Hi Experts ,
I created two following queries
1. VENDORCATKDF – uses KDF logical database
2. VENDORCATLFA1 – uses table = LFA1
I’m pulling the same information in both queries:
· Vendor Number
· Country
· Vendor Name
· Vendor Category (custom fields added to LFA1)
The results for the query that uses the logical database KDF is incorrect. It doesn’t pull in the flag on the custom field LFA1-ZMRO. Even though the logical database KDF is made up of the table LFA1 and has these fields.
Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?Hi,
I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
I do not think having additional fields in the query is reason for this.
Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
Can we not have a query using LDB which is shown as SAP List?
Regards,
Garima. -
Is there a way to get the company code project profile and the co amount using an Query .
something similar to CJI3 but with the comapny code and project profile.
Or if i have to use ABAP.There are two things. ( Your question is not quite clear, post question clearly, so platform can help you better way )
1. Restrict you report selection based on project Project profile, company code etc. give * in project filed and use dynamic selection functionality
2. If after execution you wanted to display some additional filed
First check change layout option after executing CJI3, if your required field is not there in that case, your requirement can be addressed via Exit COOMEP01 (Actual EXIT_SAPLKAEP_001)
With Regards
Nitin P. -
ABAP REPORT using SQVI, need to hide Layout section
HI,
I have created report in Sqvi and imported in ABAP (se38) now I want to hide "Output Specification" block which asks for layout, how do I hide that? See attachmentYou'll need to add some code inside a "at selection-screen output." event - something like:
loop at screen.
if screen-name cs '%LAYOUT'.
screen-active = '0'.
modify screen.
endif.
endloop.
Jonathan -
I've created a query to identify approver from linking several tables. The result data show several duplicate record because I only want to retrieve the User ID. Is there a way to select only Unique Record?
Regards,
Thomashi,
try a SELECT SINGLE [FIELDS/*].... or a SELECT * INTO ITAB FROM XTABLE UP TO 1 ROWS.
Regards -
Hi All,
I am using the ABAP query using the infoset Logical database PNPCE.
When i select the fields for the output i am getting it. But i need to make some of the fields as mandatory in the selection screen.
How can i make it.
Regards,
YogeshHello,
Go to the info set of the query.
SQ02 -> Enter the infoset name -> click on 'Change'
Go to the 'Selections' tab.
There you will find all the selction screen parameters. Double click on the selection parameter which you want to make it a mandatory field.
It will pop-up a dialog screen. On this dialog screen on the input field 'Extras'
enter the key word OBLIGATORY. Than don't forget to regenarate the infosets again.
This will solve your problem.
Regards,
A.Singh -
Additional field in selection screen of a abap query
Hi,
I am adding a new additional field in the selection screen through abap query(using transaction SQ02) which is of type VBRK-FKSTO.
The value entered can be 'X' or empty space.But the value which is entered in the selection screen is not getting reflected in the code.Kindly advice me on what needs to be done to capture the selection screen value in the code.
Regards,
S.SubasreeHi
You can add new field in VFX3 selection screen as follow. In the report code we can see various explicit enahcement points provided by SAP.One of them is ENHANCEMENT-POINT sdblbddl_01 SPOTS es_sdblbddl STATIC. Here you can declare your selection screen parameters. Then in the processing i can see a call customer fucntion happening in VBSK_DISPALY which you can implement to add your logic.
Thanks
Nabheet -
Abap query, join between same tables
Hi,
I have an Abap Query (SQ01), I need to create a join between the same table (ESLL-ESLL) to obtain the services from a PO. The join is with the packno from ESLL to subpackno from ESLL (the same table). But I don't know how I can do that with Abap Query. Because the Infoset doesn't allow inserting the table two times.
Somebody can help me.
Thanks.
VictoriaHi:
I was able to create a query to retrieve the service lines entries using tables ESSR (Header) (service entry sheet number as input parameter), linked to package number to view ML_ESLL and then from the view the sup-package number linked to ESLL. That way I was able to retrieve all the service lines information from table ESLL only using SQ02 and SQ01, no ABAP.
I Hope this help.
Juan
PS: I know the post is old but may be there are people out there with no ABAP access who needs to create reports for Service Entry Sheets lines. All the join conditions are.
Table Table
ESSR EKKO
ESSR ML_ESLL
ML_ESLL ESLL
ESLL ESLH
Edited by: Juan Marino on Jan 23, 2012 10:53 PM -
Hi,
Can any one tell me the way in which i can write some code in the abap query? I need to create one internal table which will bring data from different tables based on some coditions. For all entries in this internal table, I should get data from some other group of tables into second internal table.
At the end, I need to display only some required fields from the second internal table.
It would be helpful if anyone can give me the way in which we can do that with some example.
Thanks in advance.
Regards,
Raja sekharSELECT BUKRS BELNR GJAHR BUDAT BLDAT
FROM BSIS
INTO CORRESPONDING FIELDS OF TABLE I_BSIS
FOR ALL ENTRIES IN I_BKPF
WHERE BELNR = I_BKPF-BELNR
AND BUKRS = I_BKPF-BUKRS
AND GJAHR = I_BKPF-GJAHR
AND BUKRS IN S_BUKRS
AND BUDAT IN S_BUDAT
AND ( MWSKZ BETWEEN 'A0' AND 'F9'
OR MWSKZ = '' ).
SORT I_BSIS BY BELNR.
DELETE ADJACENT DUPLICATES FROM I_BSIS.
IF I_BSIS[] IS NOT INITIAL.
SELECT BUKRS BELNR GJAHR VBELN
FROM BSEG
INTO CORRESPONDING FIELDS OF TABLE I_BSEG
FOR ALL ENTRIES IN I_BSIS
WHERE BELNR = I_BSIS-BELNR
AND GJAHR = I_BSIS-GJAHR
AND BUKRS = I_BSIS-BUKRS
AND BUZEI = '001'
AND VBELN <> ''.
ENDIF.
LOOP AT I_BSEG.
CLEAR : I_GL, I_SAKN1.
REFRESH : I_GL, I_SAKN1.
SELECT HKONT
INTO CORRESPONDING FIELDS OF TABLE I_GL
FROM BSEG
WHERE BELNR = I_BSEG-BELNR
AND BUKRS = I_BSEG-BUKRS
AND GJAHR = I_BSEG-GJAHR
AND KOART = 'S'.
IF NOT I_GL[] IS INITIAL.
SELECT SAKN1
INTO CORRESPONDING FIELDS OF TABLE I_SAKN1
FROM C501
FOR ALL ENTRIES IN I_GL
WHERE SAKN1 = I_GL-HKONT.
IF SY-SUBRC <> 0.
DELETE I_BSEG INDEX SY-TABIX.
ENDIF.
ELSE.
DELETE I_BSEG INDEX SY-TABIX.
ENDIF.
ENDLOOP.
SELECT * FROM VBRP
INTO CORRESPONDING FIELDS OF TABLE I_VBRP
FOR ALL ENTRIES IN I_BSEG
WHERE VBELN = I_BSEG-VBELN.
LOOP AT I_BSIS.
LOOP AT I_BSEG WHERE BELNR = I_BSIS-BELNR
AND BUKRS = I_BSIS-BUKRS
AND GJAHR = I_BSIS-GJAHR.
LOOP AT I_VBRP WHERE VBELN = I_BSEG-VBELN.
I_MAIN-BUKRS = I_BSIS-BUKRS.
I_MAIN-BELNR = I_BSIS-BELNR.
I_MAIN-GJAHR = I_BSIS-GJAHR.
I_MAIN-BUDAT = I_BSIS-BUDAT.
I_MAIN-BLDAT = I_BSIS-BLDAT.
I_MAIN-VBELN = I_BSEG-VBELN.
I_MAIN-SPART = I_VBRP-SPART.
I_MAIN-POSNR = I_VBRP-POSNR.
I_MAIN-MATNR = I_VBRP-MATNR.
I_MAIN-WERKS = I_VBRP-WERKS.
I_MAIN-FKIMG = I_VBRP-FKIMG.
I_MAIN-VRKME = I_VBRP-VRKME.
I_MAIN-MWSBP = I_VBRP-MWSBP.
I_MAIN-NETWR = I_VBRP-NETWR.
APPEND I_MAIN.
ENDLOOP.
ENDLOOP.
ENDLOOP.
fill ur required fields in Main internal table using this type of loop.
regards,
shardul shah -
Hi,
I have a requirement for ABAP Query using transaction sq03.
I have to add a new column and since the field length is char132, when i place the field in "Basic List" tab in Sq03, the field goes to the
next line.Now, when I execute the output, only the fields in the first line (in Basic List) get displayed. The fields in the second line do not get displayed. Also, I cannot fit the second line fields in the first line as the maximum list width is 254. I need a solution to display the 2nd line fields in output.
Thanks in advance.
Regards,
Tejas SavlaHi Teja ,
what u can do is , change its display length of that field .
SQ01---> In the change Mode --->basic List ---> Click on the Field --->Down Left u will get options to change display length.
regards
Prabhu -
Hi,
I want to execute Abap Query using a Transaction Code. Please help me out to run a query using Transation code.
Thanks in Advance
John VikramGOTO the transaction 93.
Create a transaction code that is required to run a query from your report.
give short text, choode program and selection-screen.
SAVE.
This is the way to run a query from a report using tcode.
Reward points if useful.
Or if you need more help, pls reply back. -
PNPCE in ABAP Query(SQ01) Selection is not working completely
Hi All,
I have developed an ABAP query using LDB PNPCE. I am reading data from IT000,IT0001 etc . I test the query in QA and I noticed that the PNCPCE screen doesnt care about the selection in query. Like I have given the date range in PNCPE default screen. But its not filtering that data at all. It pulling up the employees regardless of date, it behaves the same for field action type (P0000-MASSn). The surprising thing is that for company code its working fine. My question is that Why PNPCE standard screen-selection not filtering data in ABAP query.
Did any one of you also experience that?
FYI
I also find an OSS note # 730005 but we are already on 52 Patch !!
OSS note :PNPCE: Incorrect data of infotype 0000 and 0001
Symptom
When you carry out a reprot which is based on logical database PNPCE, errors occur during the processing of infotypes 0000 and 0001.
Other terms
PNPCE, AS PERSON, P0000, P0001, data selection period, person selection period, CHECK_IT_0000_DATA_RESTRICTED, CHECK_IT_0001_DATA_RESTRICTED
Reason and Prerequisites
You start a report which is based on logical database PNPCE. In the report, infotype 0000 or 0001 is processed (that is, it was declared via the INFOTYPES statement). At event 'GET GROUP' or 'GET PERAS', the system either returns too few data records in the infotype tables or it returns data records twice.
The error (missing data records) has only occured since the implementation of Note 687004 or the import of Support Package SAPKE47028.
Solution
Implement the attached corrections. or import the corresponding Support Package.
Thanks,
Saquib KhanHi Saquib,
Recently i am facing the same issue can u pls do reply how you have overcome this issue..The data is not getting picked up at the right time it is lately picked up by the program . Earlier it was PNP and it has been changed to PNPCE also we had implemented OSS Note 687004 and the later's Notes were also implemented but still now we are unable to track down why there is delay in picking up the records this has been happening for the past 8-10 Months(i m not sure far more before). I am finding 2 main issues,
1. we are using GET peras in PNPCE and no other event after that may be this is not fetching all the data because my selection screen does contain PERSONID where i suppose there should be GET PERSON event to define it
2. RP_READ_INFOTYPE macro while using for P0000 ,, the code in the macro is such that it fetches using P0001 also ...I suppose if there are any inconsistency between IT0 and IT1 then this might one to take care ...
kindly let me know how you have approached to resolve this issue.
Maybe you are looking for
-
Serialization (Big word :P) question
Ok, so I'll keep this short and sweet. I was looking over the Java IO tutorial on this site, and it proved very helpful. I came across a page on serialization as I'm sure that many of you have already seen. I tired using the exact code provided on th
-
Creation of Value Mapping table external to XI
Can you create an external value mapping table (e.g. excel) and then upload it into XI? Does value mapping support the use of external tools for maintaining the maps.
-
Client Copy- releases of the export and import systems have to be identical
Hi All I created a new client using the Remote Client Export \ import method (on the same system). The reason being is that I need a 2nd Test Client on the same system with a smaller data set for other testing purposes. As well as needing to re-impor
-
Hi, Below is the error msg I received when I try to install Adobe Distiller 8 Server, Error 1935.An error occurred during the installation of assembly. 'Microsoft.VC80.CRT,version='8.0.50727.163",type="win32",publicKeyToke n='1fc89_bla_bla_bla_8e3b".
-
Target Application is Down for a while
Hi All, My Scenario is Idoc to File(FTP), We triggered 1000 Idocs from ECC and all are gone through XI. Received 300 messages only in FTP and after that FTP is down for some period of time unexpectedly. How can we retrieve the remaining 700 messages