To get supplier name based on latest approved date
hi
in PO SUPER USER -Purchase Order Summary ,when we enter the item number in Item,rev field a new form Purchase Order Lines opens
in this form there are many lines of PO numbers ,suppliers(vendors),approved date ,can we get the supplier name for which the approved date is most recent
kindly guide
thanking in advance
hi
in my system i can see the latest approved date wise but i have to add an inline query on the most recent vendor based on approved date to an already existing query
meaning just the first row data(most recent supplier) should be captured in the query
when i do the following query , i am taking an eg of the item_no 1020101001
select msib.segment1,max(pha.approved_date) from
po_headers_all pha,
po_lines_all pla,
po_vendors pv,
mtl_system_items_b msib
where
pha.po_header_id = pla.po_header_id
and pla.item_id = msib.inventory_item_id
and pv.vendor_id=pha.vendor_id
and msib.segment1='1020101001'
--and pha.approved_date=max(pha.approved_date)
group by
--item_id.
msib.segment1
this is the output i get
segment1 MAX(PHA.APPROVED_DATE)
1020101001 1/9/2011 3:16:48 PMwhen i do the following query
select msib.segment1,max(pha.approved_date) ,pv.vendor_name from
po_headers_all pha,
po_lines_all pla,
po_vendors pv,
mtl_system_items_b msib
where
pha.po_header_id = pla.po_header_id
and pla.item_id = msib.inventory_item_id
and pv.vendor_id=pha.vendor_id
and msib.segment1='1020101001'
--and pha.approved_date=max(pha.approved_date)
group by
--item_id.
msib.segment1
,pv.vendor_name
segment1 MAX(PHA.APPROVED_DATE) VENDOR_NAME
1020101001 7/21/2008 9:09:20 AM TRIZAC ABU DHABI
1020101001 1/9/2011 3:16:48 PM SAUDI CEMENT COMPANY
1020101001 2/14/2010 4:03:46 PM UNION CEMENT NORCEM CO.
1020101001 5/19/2010 3:08:32 PM AS CIMENTO SANAYI VE TICARET A.S.i require the most recent vendor_name for a particular item ( i require the output as below)
segment1 MAX(PHA.APPROVED_DATE) VENDOR_NAME
1020101001 1/9/2011 3:16:48 PM SAUDI CEMENT COMPANY
kindly guide me
thanking in advance
Similar Messages
-
Hi All,
I have to Get Each line item Create and Approval dates for a SHOPPING CART in SAP SRM. Either a table, or any Function module, Method, please let me know ASAP. Same i can use in my Program.
Thank you Very much.
Regards,
Ramesh J.Hi,
Refer the below wiki link it may help you.
Product catlog configuration for ECC - CRM - SCN Wiki -
SRM 7.0 , Get company name based on company code
Hello friends,
Is ther any function module or table to read company name based on company code in SRM 7.0 ?
Kindly let me know your inputs.
Thanks.
Preethi.Hi,
To find purchase group.
BBP_OM_FIND_PURCH_GRPS_BEI
To fund purchase org.
BBP_OM_FIND_PURCH_ORGS_BEI
To find company.
BBP_OM_FIND_COMPANIES
Regards,
Pedro Marques -
ISR FORM how to get Employee Name based on Login User From R3
hi,,
I am working on ISR Adobe Forms.In the form I have to display the Employee Name,according to the portal logged in user.I have written a Function Module which fetches the Employee Name, based on Employee Code(PERNR) .I will be viewing the form in portal, so the current logged in user's PERNR should be passed to the BADI.How can I do this?
Regards,
Rheema Rahael.Hi Rheema,
Write the code, in the initialisation method of the BADi, to fetch the personnel number for the respective sy-uname from the communications infotype.
Hope this helps.
- anto.
Message was edited by:
Antony John Isacc -
How get controls name from a class private data?
How can i get the names of the controls inside a class private data?
I am using Actor Framework and trying to create a method tha will be executed when launch the actor. This method need a list o all the control names inside the class data to search for the initial value inside a configuration file (config.ini), the key on the configuration file will be the name of the control.
Thanks.
Solved!
Go to Solution.You are already making the overriding method just because you have to write to the Bundle By Name. And then how are you going to handle all of the data types the keys could be. You are making things more difficult than it should be for really very little benefit.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Image copy to folder with name based on image creation date
Hi all,
I am new to Mac OS X and automator so I would like to know the following,
Is it possible to have an automated action that triggers when I attach my camera to USB, and who copies all images to a folder which is named according to the date when the image was created?
Example:
I attach my camera and it shows up as disk image named "NIKON D70" and the images are contained in subfolders "DCIM/100NCD70" (or actually in DCIM/*). I then want all images in these folders copied to my home directory in a subdirectory called something like "Pictures/D70/2007/20070605" where the year folder name and the date folder name should be according to current image creation date (which of course can be different for each image).
I have created a simple automation script that copies images from my camera to a folder named according to current date, but that's not good enough.
Anybody having any hints or ideas of how I can accomplish this?
Regards
Anders
Mac Pro, 2x2.66GHz, 5GB, ATI X1900 XT Mac OS X (10.4.9)Open the AppleScript Editor in the /Applications/Utilities/ folder and run:
tell application "Finder"
repeat with this_file in (get files of window 1)
set the_date to creation date of this_file
set folder_name to ((year of the_date as string) & "-" & day of the_date & "-" & month of the_date)
try
make new folder in window 1 with properties {name:folder_name}
end try
move this_file to folder folder_name
end repeat
end tell
(75533) -
Get Archived IDocs based on IDoc creation date
Save Our Environment. Save Yourself.
Hi Experts!!!
We need to get the archived idocs based on the idoc creation date. If I give some date, then I should get all the idocs that are archived in that period. How can this be possible?
One more doubt is - I checked the logical path in FILE for archived idocs. But when I go to that in AL11, I can not see any data in that. Where can I find the details of all the archived idocs?
I serached in SCN for the same but in vain.
Please help me out. Thanks.
- I'm not an environmentalist. I'm an Earth warrior.Please find the code to read archeived idocs
FORM read_datarecord.
STATICS ls_open TYPE boolean VALUE false.
DATA: ld_tabix TYPE sytabix,
lt_edidc TYPE STANDARD TABLE OF edidc,
ld_edidc TYPE edidc.
MOVE syst-tabix TO ld_tabix.
IF int_edidc-mandt IS NOT INITIAL.
ELSE.
IF gd_use_as IS INITIAL.
IF ls_open = false.
CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
EXPORTING
object = 'IDOC'
IMPORTING
archive_handle = gd_archive_handle
TABLES
archive_files = gt_arch_sel.
MOVE true TO ls_open.
ENDIF.
CLEAR ld_edidc.
WHILE ld_edidc-docnum <> int_edidc-docnum.
CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT'
EXPORTING
archive_handle = gd_archive_handle
EXCEPTIONS
end_of_file = 1.
IF syst-subrc IS INITIAL.
REFRESH lt_edidc.
CALL FUNCTION 'IDOC_ARCHIVE_GET_TABLE'
EXPORTING
archive_handle = gd_archive_handle
record_structure = 'EDIDC'
TABLES
t_data = lt_edidc.
READ TABLE lt_edidc INTO ld_edidc INDEX 1.
IF ld_edidc-docnum = int_edidc-docnum.
CALL FUNCTION 'IDOC_ARCHIVE_GET_TABLE'
EXPORTING
archive_handle = gd_archive_handle
record_structure = 'EDIDD'
TABLES
t_data = int_edidd.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDWHILE.
ELSE.
CALL FUNCTION 'EDI_IDOC_GET_FROM_ARCHIVE'
EXPORTING
docnum = int_edidc-docnum
TABLES
int_edidd = int_edidd
EXCEPTIONS
idoc_not_in_infostructures = 1
idoc_read_error_from_archive = 2
archive_close_error = 3
others = 4.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
IF ls_open = true AND ld_tabix = anz_int_edidc.
CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
EXPORTING
archive_handle = gd_archive_handle.
ENDIF.
ENDFORM. " READ_DATARECORD
PS if you don't have auth to SARA then get auth . you need to talk to your business owner or talk to basis to get auth -
Schedule quantity allocation based on latest delivery date.
Hi Friends,
Could any help me taht hoe can handle the below situation.
We have gone live recently, we having difficulty on the Available to Promise (ATP) functionality of sales orders. The current process has a sales order with multiple scheduled delivery lines for dates upto 13 weeks in the future. However, they will only manufacture the parts demanded in the sales order a few days before shipping. Therefore, at sales order entry, the parts are never available.
Now user as changed the customization settings that turn-off ATP for KB order types.
While I have turned off ATP for KB orders, SAP is still u201Callocatingu201D the available inventory to sales order schedule lines on a FIFO basis as the order is keyed with no apparent consideration to scheduled ship date. All the on-hand inventory appears to be u201Callocatedu201D the first sales order that is keyed. Then when we try to create a delivery for the second sales order entered that wants to ship today, it indicates that you do not have enough to ship.
Now what are the setting we have to do to reallocate the available quantity for the oders which they wanted to ship today.
Please give the suggestion to handle this.
Thanks & Regards,
Jayalakshmi
Edited by: Jayalakshmi Yamanapalli on Nov 10, 2009 6:32 AMHi,
Thanks for all of your response.
Actually the issue with MTO products. when creating sales order for MTO products, the stock will be posted against sales order stock only irrespective of the schedule dates.
Now my client requirment is for new order which is creating today, he wants ship the phisical existing quantity (which is already allotted to specific sales orders) against this new order.
As per my knowledge it is not possible. My view is we can do transfer posting using 413 movement type as special stock indicator as E. I don't know whether it is a suggestable solution or not.
Could you please let me know for both MTS and MTO products also can we do this through CO06 backorder processing.
Thanks & Regards,
Jayalakshmi -
Cross tab: Getting the count based on three consecutive dates
Hi All,
I have a crosstab which as Ticket_no and Date columns. here is the sample report data.
Ticket_no Date
1 1-Jan-2013
1 2-Jan-2013
1 3-Jan-2013
2 1-Jan-2013
1 1-Jan-2013
count of tickets which are raised for consecutive 3 days in a month. Here ticket_No 1 is raised for the first 3 days..so count will be 1.
Can any one help me in this case.
Thanks in advance.
Regards,
KrishnaKrishna, Bring Ticket_No as Dimension from universe,
In web I, create a variable
= Count([Ticket_No]) -
Supplier number and Supplier name
i want to extract supplier number and supplier name based on company code, this requirement impacts both SRM system and R/3 system, i don't know from where should i fetch supplier number, is it from SRM or R/3 ? and how? i know the question is very abstract , can anyone please help me on this?
Hello,
All the master data resides in the R/3 system but not in the SRM system. So, if you are building the application to fetch the Supplier Number & Name, then you need to build the same in the R/3 system.
Hope this helps.
Regards,
Venkata Phani Prasad K -
DATE function to get name of day for a Date given?
hi guys,
can anyone tell me what is the DATE function to get the name of day for a date given
(12/dec/2004)---returns SUNDAYHi peter
Your Query will return an error.
SQL> select to_char(to_date('12/dec/2004', 'mm/mon/yyyy'), 'DAY')from dual;
select to_char(to_date('12/dec/2004', 'mm/mon/yyyy'), 'DAY')from dual
ERROR at line 1:
ORA-01816: month may only be specified once.
month is specified twice.
select to_char(to_date('12/dec/2004', 'dd/mon/yyyy'), 'DAY')from dual;
Regards
Sasidhar.P -
We are trying to fill setup table for App 4 and afterwards when we extract the DS 2LIS_04_P_ARBPL we are getting figures clubbed together based on latest posting date
for ex: a given production order and type, if AFRU table shows below entries:
16.01.2012 1.5
17.01.2012 1.0
19.01.2012 0.2
then in setup table we have only one row (figures are grouped and shown against the latest posting date!!
19.01.2012 2.7
what is the solution?Hi,
Most of the times data won't fill in the base tables, because the reason is, at the time of data entrry by users, there are certain conditions , so until and un less all that conditions fullfill, then only all feilds will fill in the base tables. I faced the same problem for 2lis_04_p_matnr datasource, I'm not getting Batch, so I enhaced teh datasource. So better add ZZ feild to datasource and enhace the ds based on AFUM table (Based on the process order)
Thanks
Reddy -
Function Module to get pernr number based on first name and last name
Hi All,
What is the Function Module to get pernr number based on first name and last name.
Could you please help me.
T@R.
Vidyahi Vidya,
you can get perner from PA0002 based on firs name and last name.
use select query and get perner. -
What gives? I cannot get track names to appear on recently burned cd's. Just downloaded latest version of iTunes. I'm at a total loss. Have Googled- tried several things to no avail.
Go to the iTunes folder (it is in Music folder) and do this:
1. Back up your music
2. Delete "iTunes Library.itl". Then, open iTunes again and it should work -
Get the latest approved version of a content management resource
Hi I am using EP 6 with Content management.
I my application I need to get resources form content management, approval process is enabled for the content items.
I use this code
RID rid = RID.getRID(path);
if (rid != null) {
try {
resource = rf.getResource(rid, context);
} catch (ResourceException e1) {
//errorhandling
where rf is a com.sapportals.wcm.repository.IResourceFactory
created from a service user and a service context
which work fine, When the resource has been approved.
however if I change the specified content Item and do not approve it, the above code returns null as resource.
I would expect the api to return the latest approved version of the resource.
Have I misunderstood soemthing here or should I use another API?I solved my problem...
first of all.
Versioning was enabled for the folder but apparently it didnt work so i disabled it and enabled it again. Then I got the correct reource instead of null.
second thing
later in mycode I used this to get the path of the resource
resource.getRID().getPath();
but this gives the path to where the version of the document can be found... something like /documents/~System/xx/xxxxx/xxxx
where x is numbers
after doing a little debugging I found out that
resource.getAccessRID().getPath()
returns the path to where in CM the resource is stored.
I hope My experience here can help others.
I am glad that I solved my problem, but I find it extremely worrying that some settings in CM apparently stops working without any apparent reason.
We have experienced this with other properties like Manual Ordering, Approval process, have any one else had these problems and found the cause then I would like to hear about it
Maybe you are looking for
-
Hi to all, Please can any one tell me, how to designe Process Chain Step by Step. Or any Document Related to that. i shall be thankful to you for this. Regards Pavneet Rana
-
Help me out to get the jar files for FileUpload using MyFaces.
hi, Can anyone help to get the jar files for FileUpload using MyFaces. I want myfaces-extensions.jar and commons-fileupload-1.0.jar. Thank you.
-
Using 3rd party external display with MacBook Air
Hello I'm eagerly awaiting the delivery of my MBA. Questions: * Do I have to use an Apple display or can I use any with a mini-DVI? * Can I use an external Keyb + mouse just be using the bluetooth finder? Thanks!
-
Address book from java language NEED HELP
i am making an address book for as a project i do need some help in the creation of it, i am rather new to this. please reply if you can help!! thanks
-
FP_CHECK_DESTINATION_SERVICE error
Dear All, My SAP Dev. server is on machine A. My interactive form server is on machine B. I am connecting to B via A. When i run FP_CHECK_DESTINATION_SERVICE via SE38 on A, I get the following error: #Processing exception during a "Render" operation.