How to find name of partner based on partner number
Hello All,
Can any one help me how to find name of partner based on partner number.
Regards,
Lisa
SELECT kunnr name1 erdat
FROM kna1
INTO TABLE i_kna1
WHERE erdat IN s_date.
SELECT kunnr kunn2 knref vkorg vtweg spart
FROM knvp
INTO TABLE i_knvp
FOR ALL ENTRIES IN i_kna1
WHERE kunnr = i_kna1-kunnr AND
vkorg IN s_vkorg AND
vtweg IN s_vtweg AND
spart IN s_spart AND
parvw = 'ZR'.
LOOP AT i_kna1.
READ TABLE i_knvp WITH KEY kunnr = i_kna1-kunnr.
IF sy-subrc = 0.
MOVE-CORRESPONDING i_kna1 TO i_cust2.
MOVE-CORRESPONDING i_knvp TO i_cust2.
APPENd i_cust2.
endif.
ENDLOOP.
*SELECT kunnr name1
FROM kna1
INTO TABLE i_kna1.
loop at i_cust2.
read table i_kna1 with key kunnr = i_cust2-kunn2.
IF sy-subrc = 0.
i_cust2-name2 = i_kna1-name1.
modify i_cust2.
endif.
endloop.*
icust2 will have partner number ,....partner name is in KNA1,..
so look in tat ..by above code.._ if this is wat u r luking for
Similar Messages
-
HOW TO FIND LAST DOCUMENT DATE BASED ON MATERIAL NUMBER
Hi,
I want to know how to find the last document details based on material number.
Is there any Functional modulle or BAPI programe?
i,e, I want know last goods receipt details (MIGO) based on material number.
Can u please anybody tell me.
Thanks,
S.Muthu.
Edited by: Subramaniyan Marimuthu on Jan 2, 2008 9:07 AMHello.
Check the BAPI_GOODSMVT_GETITEMS
-example--
Get GRs after a specific date for a specific plant/ storage location and movement types
wa_budats-sign = 'I'.
wa_budats-option = 'GE'.
wa_budats-low = '20071201'.
APPEND wa_budats TO budats.
wa_plants-sign = 'I'.
wa_plants-option = 'EQ'.
wa_plants-low = '1000'.
APPEND wa_plants TO plants.
wa_stlocs-sign = 'I'.
wa_stlocs-option = 'EQ'.
wa_stlocs-low = '0001'.
APPEND wa_stlocs TO stlocs.
wa_mvts-sign = 'I'.
wa_mvts-option = 'EQ'.
wa_mvts-low = '101'.
APPEND wa_mvts TO mvts.
wa_mvts-low = '901'.
APPEND wa_mvts TO mvts.
wa_mvts-low = '123'.
APPEND wa_mvts TO mvts.
CALL FUNCTION 'BAPI_GOODSMVT_GETITEMS'
TABLES
plant_ra = plants
stge_loc_ra = stlocs
move_type_ra = mvts
pstng_date_ra = budats
goodsmvt_header = header
goodsmvt_items = item
return = return.
Reward if helpful.
Cheers,
George -
How to find the Org.key based on Job key and Org Unit.
Hi,
Please Let me know how to find the Org.Key based on the Job Key and org Unit.
Regards
nagendra.On recent ThinkPad, the Product ID Key sticker has been moved from the bottom of the unit to behind the battery.
You need to contact Lenovo technical support directly to ask about recovery media. -
How to find the message_ID/Reference_ID from a IDOC number
hi
can some one tell me how to find the message_ID/Reference_ID from a IDOC number
regards
Buddhikehi,
check the t.code IDX5 .
also check the below link for reference
Monitoring the IDOC Adapter in XI/PI using IDX5
Monitoring the IDOC Adapter in XI/PI using IDX5
regards
kummari
Edited by: kummari on Jul 28, 2008 9:20 AM -
How to find count of records based on batch wise.
Hi All,
We are working on OWB10gr2. I would like share one requirement. Any one can suggest me how to do it and which is the best way to get accurate information.
We have 2 schemas’ like nia_src and nia_tgt. currently we are moving data from nia_src to nia_tgt for that reason we implemented some mappings based on requirement. In my source schema (nia_src) having 100 tables with data and similar structure replicated in target schema (nia_tgt).
In source schema every table having one date field for which record is inserted and based on that field we can find how may records are inserted on particular table ,particular time.
Same like target also maintaining date fields for tracking purposes.
We have done some mappings and scheduled also. Every day we are into the target with incremental data. All are working fine not any issues.
I wanted to know how many records inserted, updated, merged for particular batch
How can we find?
Can we find exact information in OWB_REP_OWNER schema on WB_RT_AUDIT?.
For tracking purposes I need to find those values how many records are available in
Source table and how many records are populated to the target schema?
How to find schedule batch count of records table wise for batch wise?
Please suggest me any one on this.
thanks and regards,
venkat.RE: based on pre operator can we find count of records. if yes how to do it.
No, you cannot tell from the pre- operator how many records will be inserted or updated into a mapping. How could you? The mapping hasn't run yet!
At best (if you have simple mappings with single targets) you could come up with a strategy to have the pre-mapping procedure aware of it's package name, then select from user_source for that package body until you find that first cursor used for the row-based processing, copy the cursor into a local variable, and then execute immediate select count(*) from that cursor definition. But still, all that would get you is the number of rows selected - not inserted / updated / errored etc.
A post-mapping procedure that is aware of the package name will, however, run prior to package exit so that the package spec is still in memory so you can access the public variables in the package spec. We do that in our standard post-mapping procedure
CREATE OR REPLACE procedure erscntrl_finalize_prc(
p_process_id in number,
p_process_name in varchar2)
as
l_numread number := 0;
l_numInserted number := 0;
l_numUpdated number := 0;
l_numMerged number := 0;
l_owb_audit_id number := 0;
l_owb_status number := 0;
sqlStmt varchar2(2000) :=
'begin '||
' :1 := '||p_process_name||'.get_selected; '||
' :2 := '||p_process_name||'.get_inserted; '||
' :3 := '||p_process_name||'.get_updated; '||
' :4 := '||p_process_name||'.get_merged; '||
' :5 := '||p_process_name||'.get_audit_id; '||
' :6 := '||p_process_name||'.get_status; '||
' end;';
begin
-- we use dynamic SQL to return required audit field values.
-- This allows us to alter which values we need at a later date
-- without impacting the deployed mappings.
execute immediate sqlStmt
using out l_numread, out l_numInserted, out l_numUpdated,
out l_numMerged, out l_owb_audit_id, out l_owb_status;
-- then execute our own logging package.
owb_mapping_log_pkg.finalize(
p_process_id,
p_process_name,
l_numread,
l_numInserted,
l_numUpdated,
l_numMerged,
l_owb_audit_id,
l_owb_status
end;
/However, even in this case bear in mind that if you run the mapping in set-base mode, all Oracle returns is the number merged which does not give values for the inserted and updated counts. If you really need those values you need to either a) run in row-based mode or row-based-target-only, or come up with some custom queries. For example, in your pre-mapping do a select count(*) from your_target_table, then run the mapping, then get the number merged, then do another select count(*) from your_target_table. With these values and basic math you could tell the number inserted by the growth in the table, and the rest of the number merged must have been updates.
That being said, if you are playing with dimensions as large as most of the ones I am - there is no bloody way that you want to do two select count(*) statements on each run without a really, really good reason.....
Cheers,
Mike -
How to find name of report if I know name of instance and location of instance in Output File Store
Hello all,
can somebody help me to find name of the report if I know name of report instance and also location of instance in Output File Store. It should be done via Query Builder.
It is ...rpt file as output from Crystal Reports. I tried few commands in Query Builder but usually they finished with timeout error.
Could you help me and send specific command? Or way how to change timeout of Query Builder?
Thanks.
matusHello all,
We finally found solution.
We knew that file is located on path .../Output/a_145/009/002/133521/~ce10c.....9332.rtf
This file has more than 2 GB. We tried to find which report is related and provide necessary actions.
As I mentioned we still failed due to timeout error - There was an error retrieving data from the server: CMS operation timed out after 9 minutes.
So we tried to use our testing environment. We started there QueryBuilder and there we successfully tested that we found details about files from FileStore /like Name of the report in Launch Pad, CUID, ...
SELECT SI_NAME, SI_CUID, SI_FILES FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/a_148/020/000/5268/'
or
SELECT * FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/ a_148/020/000/5268/'
Best regards,
matus -
How to find name of the Query in SE09
Hi Experts,
Can anyone tell me how do find the name of the Query which is not released.
Like for example:
When I try to open the modified requests of all the users It displays me the names of the Tables, WEB templates etc. But for Query it only shows the Elements of Query Builder only some junk data.
Please help me understand which query request that is.
ThanksDo you have the TR no. which is released for the query.
if you go there and check in SE09, it would show you the query name i guess which are the objects included in the request.
Try this and hope this would help you. -
How to look for business partner number in GTS
Hi Experts,
How to look for the business partner number in GTS when we have the Customer Id number in r/3?
Please let me know the path in GTS.
Edited by: Anurag87 on Dec 9, 2010 2:17 PMHello,
just simple in GTS in transaction BP find by "3 External number" (which is yours R/3 number).
Or in se16 table /SAPSLL/PNTBP type in field BPVSY you external number from R/3 system.
Cheers,
Gabriel. -
How to find the Purchase Orders from Sales Order number
Hi ...
Is there a way to write a query to find the Purchase orders
from the Sales Order number ....
I have notice the table POR9 (Purchase Order - base Document)
but it seems to be empty.
Could you please help me to figure this out,
Thank you very much
Kind Regards
Sanjayahi,
u did mistake in selecting the table
SELECT T0.DocNum FROM ORDR T0 for sales order
SELECT T0.DocNum FROM OPOR T0 for purchase order
how to find the table in SAP B1.
go to above menu view => system information. tick it(or select it)
then below status bar u can see the table and field name.
open the required form and just keep the mouse cursor on any field.
you can see the table and field name below.
hope now u can able to track the table name.
regards
sandip -
How to find groups in domain based on input file of groups
Hi,
I want to find if groups exist in the domain based on a list of groups in a text file as follows. My Get-AdGroup doesn't work, so Im looking for suggestions.
$MyGroups = Get-Content -path c:\MyGroups.txt
Foreach ($Group in $MyGroups)
Get-Adgroup -filter 'Name -like "$Group"' -SearchBase "DC=MyDomain,DC=Com" -SearchScope SubTree
Thanks in advance.
Thanks for your help! SdeDotOne additional suggestion - you need wildcards too, if you really want to use -like:
Get-ADGroup -Filter "Name -like '*$group*'"
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing) -
How to find ECC tables/ reports based on which a DB View is created?
Hi All,
We have customized data source created based on a View/ Table. How can i find the ECC tables/ reports based on which this View has been created and also the logic behind which the different fields extract data from ECC..
Please advice.
Thanks & Regards
SnehaHi Sneha,
The only logic, i guess, that could be used is either defining the join fields or some restriction put in the selection conditions tab of the view. for e.g. if the view should only return Doc type XYZ, the same could be implemented in selection conditions tab. for transaction to check the view, it was already posted above. -
HI,how to find roles for user based on userid?
hi,
i need to find roles for each user based on user id.
can i know any one knows this how to get roles for user?
thanks,
jpullareddyhi,
i solve my self.
i am getting values
jpullareddy -
i want to know one thing how the name for the report is made.
Transaction code ZPNL_TESTDEMO
Package ZDEV
Transaction text FGI3 P&L REPORT
Transaction START_REPORT
D_SREPOVARI-REPORTTYPE = RE
D_SREPOVARI-REPORT
D_SREPOVARI-EXTDREPORT
D_SREPOVARI-VARIANT
D_SREPOVARI-NOSELSCRN
D_BACKGROUND_EXEC
D_SREPOVARI-EXTDREPORT =
FBRG01FAGLFLEXS ZTESTDEMO.
the question is how to determine the name of the the report to call i.e (FBRG01FAGLFLEXS ZTESTDEMO)
this is made in parameter transaction in se93.sorry to say about the query.....actually the report is made in report painter.
and i am able to see it in fgi3.....
but the issue is how can i make the transaction that can run that report directly.
regards
saurabh -
How to find name of tab in a JTabbedPane?
I have some panels added to different tabs in a JTabbedPane. I want to get the name associated to the tab that the user clicks on. I tried a search on the forum but couldn't find anything.
I have the below method that will tell me when I changed tabs, but what now?
tabbedPane.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent event) {
System.out.println("Changed tabs.");
});Thanks for any/all help!Thank you for your reply. Although I could have done without the smart ass comment, I still appreciate your help!
For those of you comming across this thread in a search, here is the solution:
tabbedPane.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent event) {
javax.swing.JTabbedPane tab = (javax.swing.JTabbedPane)event.getSource();
String strTabName = tab.getTitleAt(tab.getSelectedIndex());
System.out.println(strTabName);
}); -
How do I name output files based on files processed from a watched folder?
Hello!
I've built a small process to merge XML files with XDP templates, generating PDF files at the end of the process.
Right now the process is generating all files with a fixed name + a random number, as defined in the Input panel (literal value with option "Appen a suffix..." checked.
I'd like to change this so the resulting files have the same name as the input files, changing only the extension (PDF instead of XML).
I believe I should change from literal value to XPath expression, in order to build the resulting name based on the input file name.
QUESTION: what function should I use to get the input file name in XPath builder (if this is the right place to do it) ?
I tried with:
getDocAttribute(/process_data/@docApolicesXML,"wsfilename") + ".PDF"
Does not work.
Thanks a lot for any hints!
MarcosHi Marcos,
You should do the following:
Create new variable "filename"
And in a Set value you should:
filename = getDocAttribute(/process_data/@docApolicesXML,"basename")
filename = concat(/process_data/@filename,".pdf")
This will give you "myFile.xml.pdf - if you want myFile.pdf instead, you need to do this in the Set value:
filename = getDocAttribute(/process_data/@docApolicesXML,"basename")
filename = substring-before(/process_data/@filename,".xml")
filename = concat(/process_data/@filename,".pdf")
That should do it :-)
Kim Christensen
Dafolo A/S
Denmark
Maybe you are looking for
-
How to delete a file on a FTP server through BPEL in 11g
I am new to SOA plz replay to my question
-
Spelling/grammar error notification in Word for Mac 2004
Is there a way to set up Word so that a sound will indicate an error as you are typing? Thanks!
-
Store UTF-8 in Datatbase and Display in JSP
Hi all, I am developing a software with unicode support, but I am in trouble with it. The System configuration is: OS: Windows2000 (English) Database: Oracle8i 8.1.7.0.1 (NLS_LANG = .UTF8) A
-
Finance cannot close production order due to some PO# error message
When user is trying to close production order(using tcode CO02) getting error "..Production order #: Purchse order still exists..". I would like to know what is the reson for this error and how user can close this production order. Appreciate your qu
-
Constraints on the Special Ledger
Hi All I need a bit of expert advise on a solution that I proposed: I have a client requirement where they wanted to implement a parallel currency to an existing co code, they are on SAP 4.7. We proposed a new company code as the solution with a new