How to get valid from date in KONH Table
Hi ,
I am sending COND_A idoc for MRP. Now when I create a record using VK11,the valid from date is fine.
But while changing the same using VK12 changed date does not reflect in KONH Table (when the new valid from date is greater the the previous one) .I understand the SAP Logic behind this from previous threads .
But my issue is this :
Suppose I have a Material X created with Valid from = 10.01.2011 & valid to = 31.12.9999
Now I change this Valid from = 28.01.2011 & valid to = 31.01.2011.
Now how can I send the data for 28.01.2011 in my I-doc , as KONH still has 10.01.2011 as valid from date.
even if you send the data for 28.01.2011, it should pick up the condition record because the start date for condition record is in past? why do you think it is a problem? now if your concern is that if your input date is 27.01.2011 and it should not pick this condition (that is a different matter altogether)...
Similar Messages
-
Valid to dates on KONH table not matching the dates in A* tables- SD pricin
We have an issue in our KONH/A* tables. Please review the data below:
A583: ( This is for a Z condition type ZCTR)
MANDT KAPPL KSCHL VKORGAU MATNR DATBI DATAB KNUMH
028 V ZCTR 0006 000000000000031886 03/31/2006 01/01/2006 0071519869
028 V ZCTR 0006 000000000000031886 06/30/2008 03/02/2008 0071519869
KONH
MANDT KNUMH DATAB DATBI
028 0071519869 01/01/2006 12/31/9999
If you look in VK13, for this ZCTR record/material you will see the following dates. We can see that two records have the same KNUMH , is this a SAP bug?
Also what is the difference in dates in KONH and A* tables ? I see that the valid from dates match but the valid to date in KONH is the valid to date of the last record in the A table.
MANDT KAPPL KSCHL VKORGAU MATNR DATBI DATAB KNUMH
028 V ZCTR 0006 000000000000031886 03/31/2006 01/01/2006 0071519869
028 V ZCTR 0006 000000000000031886 12/31/2007 03/13/2007 1032266853
028 V ZCTR 0006 000000000000031886 03/01/2008 01/01/2008 1061605348
028 V ZCTR 0006 000000000000031886 06/30/2008 03/02/2008 0071519869
028 V ZCTR 0006 000000000000031886 12/31/9999 07/01/2008 1093084511Thanks for putting so much thought into this, but I still fail to see the advantage/reason of maintaining the original dates in KONH if the new dates are prior to the original date ( in case of valid to). We always have the change log to determine the origibal dates with which the record was created.
Thanks for all the responses.
The duplicate KNUMH is causing the issue for us:
A583: ( This is for a Z condition type ZCTR)
MANDT KAPPL KSCHL VKORGAU MATNR DATBI DATAB KNUMH
028 V ZCTR 0006 000000000000031886 03/31/2006 01/01/2006 0071519869
028 V ZCTR 0006 000000000000031886 06/30/2008 03/02/2008 0071519869
As you can see two records have the same KNUMH. We were trying to run archiving for condition records and came across an issue.
As there is a duplication of KNUMH ( which is wrong) the program does not pick up the 2006 record . This is because it considers the 2008 record to be compared against the residency date and skips the older one too. We tried changing the validity dates of the 2008 record to an older date so that both are within the residency date. This is how the records looks now :
028 V ZCTR 0006 000000000000031886 06/30/2005 03/02/2005 0071519869
028 V ZCTR 0006 000000000000031886 03/31/2006 01/01/2006 0071519869
KONH
Cond.record no. Usage Table Application Condition type Valid From Valid To
0071519869 A 583 V ZCTR 03/02/2005 12/31/9999
Once we did this the archiving program was able to pick this record up.
Has any one faced this issue before? Is this a known SAP issue ? I could not find any OSS for this.
Edited by: harikrishnan balan on May 28, 2009 11:03 PM -
I have a Column that is defined as "DATE".it also Contains Time.........
I want to Get the Time only....so when i am using this
to_date(var_date,'hh12:mi:ss PM'),it is giving me date also and when i am using this
to_char(var_date,'hh12:mi:ss PM') then it is giving me all values similar to one of the top values in Column....
Then i Used EXTRACT function as
Select EXTRACT(HOUR FROM VAR_DATE).......
THEN IT THRWOING ERROR.......INVALID EXTRACT FIELD FOR EXTRACT SOURCE........
pLZ HELP HOW TO GET TIME...................................ONLY WITH AM AND PM......
Thanks in AdvanceHi,
to_char function should give the result as expected.
SQL> select to_char(sysdate, 'hh12:mi:ss PM') from dual ;
TO_CHAR(SYS
11:39:16 AM
SQL> select to_char(sysdate, 'hh12:mi:ss AM') from dual ;
TO_CHAR(SYS
11:39:32 AM
SQL> select to_char(sysdate,'hh:mi:ss') from dual ;
TO_CHAR(
11:40:04
SQL> select to_char(sysdate,'hh:mi:ss am') from dual ;
TO_CHAR(SYS
11:40:18 am
SQL> select to_char(sysdate,'hh:mi:ss pm') from dual ;
TO_CHAR(SYS
11:40:31 am
Thanks,
Siva -
How to get sales order data with GL tables
I want to get sales order details from my GL query. I need to get item number, quantity and customer PO from there. Here is my query from GL.
SELECT PH.po_header_id,
I.GL_DATE,
R.je_header_id JE_HEADER_ID,
R.je_line_num JE_LINE_NUM,
aeh.org_id ORG_ID ,
I.invoice_num TRX_NUMBER_C ,
ael.description COMMENTS ,
ael.ACCOUNTED_CR ACCOUNTED_CR,
ael.ACCOUNTED_DR ACCOUNTED_DR,
ael.code_combination_id CODE_COMBINATION_ID,
ael.currency_code CURRENCY_CODE,
ael.entered_cr ENTERED_CR,
ael.entered_dr ENTERED_DR,
PH.segment1 PO_ORDER_NUMBER,
GL.segment1 company,
GL.segment2,
GL.segment3,
GL.segment4,
GL.segment5 account
,ael.description
,PD.quantity_ordered, PD.amount_billed, D.quantity_invoiced, D.unit_price
FROM gl_import_references R, --ok
gl_je_categories jc,
ap_ae_lines_all AEL, --ok
ap_ae_headers_all AEH, --ok
ap_invoice_distributions_all D,
ap_invoices_all I,
ap_accounting_events_all AE,
po_releases_all PR,
po_headers_all PH,
po_distributions_all PD,
po_vendor_sites_all VS,
gl_code_combinations GL
WHERE 1=1
AND jc.je_category_name = aeh.ae_category
AND PR.po_release_id(+) = PD.po_release_id
AND PH.po_header_id(+) = PD.po_header_id
AND PD.po_distribution_id(+) = D.po_distribution_id
AND ael.third_party_sub_id = VS.vendor_site_id
AND AE.accounting_event_id = AEH.accounting_event_id
AND I.invoice_id = AE.source_id
AND AE.source_table = 'AP_INVOICES'
AND AEH.ae_header_id = AEL.ae_header_id
AND DECODE(ael.source_table,'AP_INVOICE_DISTRIBUTIONS', AEL.source_id,NULL) = D.invoice_distribution_id(+)
AND AEL.gl_sl_link_id = R.gl_sl_link_id
and ael.code_combination_id = GL.code_combination_idThen your query is completely wrong.
Your query is looking at Purchase Order tables.
If you want sales order data, you should be looking at OE tables (such as OE_ORDER_HEADERS_ALL, OE_ORDER_LINES_ALL etc.)
Sandeep Gandhi -
How to change validity from.. to dates in cost centre(production) ?
Dear All,
We have created cost centre(production) on current dates ? Due to this,
We were unable to maintain activity price for work centre.
Message is telling us to maintain activity price for current fiscal year.
How to change validity from date in production cost centre(KS02) ?
Appreciate valuable inputs.
JeyakanthanDear ,
1.Go to Transaction Code KS02 - change cost center and in the next screen go to Menu bar > Edit > Analysis Period.This will pop up another window - in this you can change the analyis period and save it.
2.Or Use the tcode OKEON from the hierrachy choose the cost center in the basic data tab u will see one button named Validity period.Change the validity there.
3.You can do it using 'KSH2' transaction.Open the hirarchy and select your cost center. now select the business area and new hirarchy node where you want to move it. and click on 'INSERT AT LOWER LEVEL' to move the cost center from one business area to another.
Try and check
regards
JH -
Business partner change Valid From Date field
How can I change the Valid From Date field in tables:
BUT000
BUT020
BUT0BK
BUT100
Currently the of date of creation of the business partner is in this tables' Valid From field.
In transaction BP the Address of the Business Partner is valid from 01.01.1990 but still I get a warning that the business partner is not valid for date 01.11.2011.Sounds like the problem is the valid to date. What is that date set to?
-
How to pass Valid from and Valid to Dates in CS_BOM_EXPLOSION
Hii Experts,
My requirement is to explode BOM using CMC LDB and generating files for all the remaining months by varying Valid from and Valid to dates. For this I am using CS_BOM_EXPLOSION but it has provision for a single date field.
Can you please guide me how to pass both Valid from and Valid to dates in CS_BOM_EXPLOSION ? And if you can suggest any other alternative, its most welcome...
Regards,
VikasHi Vikas,
There is a tables parameter STBP which is of type CSXGEN.
This structure CSXGEN contains two fields valid from date(DATUV) and valid to date(DATUB).
Is this what something you are looking for?
Regards,
Swarna Munukoti -
How to get sales order data in substitution of fi-docu from GM posting ?
How to get sales order data in substitution of FI documents from goods movement posting?
When I posting a material document with movement type "501E", the system will creating a FI document automatically. And I need to get the sales order data in the substitution of FI document.
I tried to export the data of the material document in user-exit "MB_CF001 Updating of material document data upon posting", but this user-exit does not triggered in the posting process at all. what's the problem?
Do you have better solution or idea for this? Please help me. Thank you!Hello Harish,
Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
Regards
Kaushal -
How to change the valid from date of the bom header?
ECM is active in the system.
I want to change the valid from date of the BOM header with the help of a change number.
How can I change it?Hello
Lets assume that, we are going to change Management for controlling Valid From date
Steps to be followed for creation of Change No
Tcode CC01 for Change No
Click on Change Master
Once you enter into Change master, maintain the description
In the Valid from Date, maintain the date from which you BOM should be current
Maintain the Status (01)
Click on Ojbect Type, maintain for which Object types is the Change no needs to be active i.e. for BOM, Rtg, etc
save the Change No
After the change no is created
Enter the Change No during the creation mode of BOM
THe system copies the Valid from date from Change No -
Help reqd on Changing the Valid from "date" for both BOM & Routing
Hi all...
Pls advise me how to do the changing of Valid from "date"....
Is there any process in CC01 or ECM???....
pls reply me in detail step format (step by step analysis)....
I wrongly created in CS01 and CA01 as 05.10.2007 as my valid from date instead of 01.10.2007.....
How to change to my actual one......
I dont know how to change it exactly.....as im beginner in SAP...pls take this into consideration...and post ur replies imm.
Pls reply me in detail....will be rewarded at the end while closing this issue.
thanks & regards
sankarDear Sankarbabu,
IF there's no setting for Date Check in OS54 - Engineering Change Management
Control Data,then you can create a change number with past dates,and also to
use the same one for changing BOM.
Tell me one thing you are saying you want to use ECM.Was the earlier one
created without BOM was created without an ECN?
See already if you have created your BOM with an ECN,then remove the date
check setting which I have mentioned in OS54.
Now goto T code CC02 ,enter the Change number and give the valid from date as
01.10.2007.
After that check in CS03 whether this date(01.10.2007)is getting reflected or not.
I'm sure this will solve your problem.
Regards
Mangal -
How to get both OTF data and spool at a time
Hi Experts,
My requirement is to get both OTF data and spool.
In 'OPEN_FORM' i tried passing itcpo-TDGETOTF = 'X'. itcpo- TDNEWID = 'X'.
I was able to get OTF data but spool is not getting generated.
IF i pass only itcpo- TDNEWID = 'X'. the spool is getting generated but not OTF data.
when both the fields are set i.e. itcpo-TDGETOTF = 'X'. itcpo- TDNEWID = 'X'.
the spool is generation is getting supressed.
Similarly when i tried to get OTF data by passing itcpo-TDGETOTF = 'X'. to 'OPEN_FORM' as i need to convert it to PDF and send it to vendors as email ,
The print preview in TCODE ME23n was not getting generated for 'MESSAGE' option 'External send'.
Please suggest me how to get both OTF data and spool at a time.Hi Kartik,
This one is similar to my question to print and email invoice at same time. I pass itcpo-tdgetotf = 'X' in order to get otfdata and send email with the attachment of otfdata.
Now I have data in otfdata, but when I call print_otf function, I clear out itcpo-tdgetotf, and passed
itcpo-tddest = device_type but I still get error message said 'Handler not valid for open spool request'.
Can you give me a working example that you have otfdata table and print data from that table. I also post my question on other thread
submit report and export to memory
thanks -
Default Valid from Date in CS01 & CA01
Hi PP Experts:
Please give me the solution for:
I am getting current date 17.04.2015 in valid from date field as default in CS01 and CA01 but i want to set 01.03.2015 as a default date.
So, how can i do it?
Thanks & Regards,
Vivek BhojakI have maintained all these things but getting error ''Change number 1 does not exist'' in CS01.
BR,
Vivek -
Wants to change the validity from date in BOM
Hi,
We have created BOM by mentioning valid from date 21.08.2018.
Now we need to change that valid from date 21.08.2018 to 21.08.2008.
How can we do that?
thanks/regards
vishHello,
If you are creating the BOM wr.to change number & if the change number date is lying in future. System allows you to change the effective from date for the ECN, which in turn BOM effective date also get change automatiocally. T code CC 02 for changing the date through ECN
Maruti -
How to get the actual data in ALV report
I am doing some upgradation work in that i am using Submit & And return and also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
With the use of set table for 1st display i got the ALV report but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get the actual data in ALV report, With the use of Any Function Module or with Coding,
with regards,Hi Saravana
I am sure you must be getting the values in tables of table parameters from every FM.
consolidate the values from tables of all FMs in one table and built ALV for that table only.
I hope this way you can show the actual data in ALV.
thanks
Lalit -
Updating Cube in the End Routine based on the incoming Valid From Date
Hello Experts
Here is my scenario.
We are using BW 7.x. There is DSO and from DSO it goes to the Cube, the promotions information. These data targets will have Material (Article), Plant (Site), Promotions Number, Valid from and Valid to dates. The Valid To date will come in as 12/31/9999 all the time.
If I receive a new record from ECC with same Material, Plat and Promotion combination again, I need to get the Valid From Date from the new record and Update the existing record' Valid To date in DSO/Cube as Valid From of the new record - 1.
So Valid To date of the existing record = New Record's Valid From date minus - 1.
I would like to do the update in "End Routine" of the Cube.
Would you please suggest if this can be done and if so would you please provide the sample code.
THANK YOU in Advance.
Nag.yes, you can do this...
just use a RESULT_PACKAGE in end routine.
and using RESULT_PACKAGE fatch the existing records from DSO and append that into RESULT_PACKAGE after your desired changes,
just try to create a code using this l;ogic. if you can't then i will provide you a code.
Regards,
Ashish
Maybe you are looking for
-
Can't connect to Eduroam on my WP 8 Nokia Lumia 930
Hi! So, I just got the new Lumia 930, which I am very happy with, however I can not seem to get it to connect to Eduroam at the university I work at. When I go to the page where I am suppose to 'join' or 'download' whatever I need, 'securew2', (using
-
Cannot open pdf files while the Reader instance is running
Today I suddenly noticed that if I try to open pdf file while the Reader instance is already running (even if it has no pdf files open), the cursor just blinks one or two times without any further activities. So the only way to open files now is by c
-
Is there an upgrade beyond Firefox 3.6.25 for an older Mac with OS X 10.4.11. I can't afford a new computer, and hate Safari, but may be forced to use it.
-
ITunes 7.6 installs but will not open
I successfully installed iTunes 7.6 and when i go and double click on the iTunes icon on my desktop, the program will show up in Task Manager but will not show up on my desktop. I am running Media Center on this computer and wanted to know if any oth
-
FAILED nslookup host.domain
I am performing an R12.2 Vision Installation on SLES 11 SP3 for VMWARE. Reference RDA - Health Check / Validation Engine Guide (Doc ID 250262.1) I executed the " ./rda.sh -T hcve " check to perform the Oracle E-Business Suite Release 12 (12.2.0) Prei