Updating OM infotype with blank values
Hi All
We have a custom field included in one of the standard infotypes using a CI include.
When I try to update blank the values in the infotype using transaction PP01, I get the error 'A record without data cannot be saved'.
the custom field is a char field of length one which can hold either 'X' or blank. Now when I dont update any of the standard fields and set the custom field to blank I get this error.
Is there any way to over come this error? Any advice?
Thanks
Sounds like the field definition is not correct. Please can you post here a screenshot of the Domain for this field i.e. the value range tab.
Similar Messages
-
Creating / updating Custom infotype with different screen
Hi All,
I have created custom infotype having different screen for different subtype(1,2).
From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
Thanking you..
Best regards
AkshayHi All,
I have created custom infotype having different screen for different subtype(1,2).
From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
Thanking you..
Best regards
Akshay -
Problem with BLANK Value in SSRS Subscription
I have a report that I designed in Vis Studio 2005 and have deployed to SSRS 2005. I have no issues what so ever when running it interactively out of Report Manager. However when running it scheduled via a subscription, I am running into trouble.
This report has a parameter called "Label". It is set up as a String parameter, Allow Blanks, and Multi-Value. (It does not allow me to select Null values...tells me "The properties for the currently selected item are not valid.") I am getting Available and Default values from a query I have created in a separate dataset. This query pulls in all possible values for Label, including a BLANK value (there are values that are and should be Blank).
In my subscription, I want to select all Labels but label 98, including the BLANK. So when I go in to create or edit a subscription, I simply uncheck the 98 label. I can see a blank checked as well. However when the subscription runs, the subscription status tells me " Failure sending mail: Default value or value provided for the report parameter 'Label' is not a valid value." This ONLY occurs when I have the BLANK label selected in my dropdown list!
However, when I run this interactively out of Report Manager, doing the exact same thing (selecting all labels other than label 98, INCLUDING the Blank), it works properly.
What could be going on here? Kinda new at this and totally stumped.
TonyHi Tony,
I met a similar issue before. If I understand correctly, there has Null values in the list not Blank values.
Using Null values in a parameter in subscription is not allowed.
To solve the issue, please change the Null values to Blank values by modifying the query statement of report:
SELECT ... IsNull(column, "") FROM...
By the way, please update the SQL Server Reporting Services to latest version too.
For SQL Server 2005, the latest version is Cumulative Update package 6 for SQL Server 2005 SP3.
SQL Server 2005 SP3: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4
Cumulative Update #6 for SQL Server 2005 Service Pack 3
For SQL Server 2008, the latest version is Cumulative Update package 4 for SQL Server 2008 SP1.
SQL Server 2008 SP1: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19
Cumulative Update #4 for SQL Server 2008 SP1
Please feel free to ask, if you have any more questions.
Thanks,
Jin ChenJin Chen - MSFT -
Best way to update a table with disinct values
Hi, i would really appreciate some advise:
I need to reguarly perform a task where i update 1 table with all the new data that has been entered from another table. I cant perform a complete insert as this will create duplicate data every time it runs so the only way i can think of is using cursors as per the script below:
CREATE OR REPLACE PROCEDURE update_new_mem IS
tmpVar NUMBER;
CURSOR c_mem IS
SELECT member_name,member_id
FROM gym.members;
crec c_mem%ROWTYPE;
BEGIN
OPEN c_mem;
LOOP
FETCH c_mem INTO crec;
EXIT WHEN c_mem%NOTFOUND;
BEGIN
UPDATE gym.lifts
SET name = crec.member_name
WHERE member_id = crec.member_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
IF SQL%NOTFOUND THEN
BEGIN
INSERT INTO gym.lifts
(name,member_id)
VALUES (crec.member_name,crec.member_id);
END;
END IF;
END LOOP;
CLOSE c_mem;
END update_new_mem;
This method works but is there an easier (faster) way to update another table with new data only?
Many thanks>
This method works but is there an easier (faster) way to update another table with new data only?
>
Almost anything would be better than that slow-by-slow loop processing.
You don't need a procedure you should just use MERGE for that. See the examples in the MERGE section of the SQL Language doc
http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm
MERGE INTO bonuses D
USING (SELECT employee_id, salary, department_id FROM employees
WHERE department_id = 80) S
ON (D.employee_id = S.employee_id)
WHEN MATCHED THEN UPDATE SET D.bonus = D.bonus + S.salary*.01
DELETE WHERE (S.salary > 8000)
WHEN NOT MATCHED THEN INSERT (D.employee_id, D.bonus)
VALUES (S.employee_id, S.salary*.01)
WHERE (S.salary <= 8000); -
REUSE_ALV_GRID_DISPLAY - updating the database with new values
Hi,
I am using the function module 'REUSE_ALV_GRID_DISPLAY' to display records. I have managed to open a field for input/edit mode. Once this data has been changed , where will this data be? I have checked the internal table - no joy. I need to use this new/changed data to update the database with the new values.
Thanks,
LeanneHi,
The data is stored in table tab. After the changes the data does not reflect in table tab. Where can I get the data so that I can update my database?
I have coded the process as follows:
when '&SUSPEND'.
loop at tab
where box = 'X'.
update zzzz
set status = 'SP'
endloop.
Regards,
Leanne -
Updating multiple rows with different values
Hi!
I have a problem. I need to update more then 1000 rows with different values. How can I do it?
For exsample i have table:
id; color, date,
1 red
2 green
3 white
I need to update date field.
Update table
set date='01.02.03'
where id=1
Update table
set date='01.03.03'
where id=2
Maybe there is way how to update multiple rows at one query?
Sorry for my bad english.
Thanks!Hi,
You can try this
UPDATE TABLE SET DATE = CASE
WHEN ID = 1 THEN TO_DATE('01-02-03','DD-MM-RR')
WHEN ID = 2 THEN TO_DATE('01-03-03','DD-MM-RR')
ENDcheers
VT -
How to update a column with different values but all other row values r sam
Hi,
I have a table like this.
Col1 col2 col3 col4
10 20 30
10 20 30
10 20 30
i need to update col4 with different values coming from other table like this
Col1 col2 col3 col4
10 20 30 xxxx
10 20 30 yyyy
10 20 30 zzzz
how can i update the table. pls let me know how to use the where condition in the update stmt.
thanks,
jay
Edited by: user2558790 on Nov 20, 2009 12:26 PMwhat is the logic for this kind of update...????
Greetings,
Sim -
Issue with Blank Value selection in Dropdown List
Hello Experts,
I am facing one strange issue in Adobe Forms Drop Down(DD) list. Foll. is the list data which contains a several item data & blank value. After item data selection user must be able to select blank value in case he doesn't want to set the value to Order Unit as shown in screen shot below.
Now my issue is after any of the item values selection (for ex. BAG - BAG) user is not able to set the blank value again at my client system. However its working fine in mine. When checked client is using Adobe Reader 8.0 which is same as mine.
Thanks in advance.
Regards,
AmitHi Steve,
Thanks for the reply. We have a blank value in the DD as a list item, where key & description is empty space. As i posted above user must be able to select that blank item if doesn't want any value for Order Unit. This selection is working fine in my sytem, but my client facing the issue where he can not select the blank value from DD.
Thanks,
Amit -
Hi,
I am sending data from one SAP system to other SAP system. I am using standard IDoc FIDCCP02 and sending this Idoc with the help of function module MASTER_IDOC_DISTRIBUTE.
In this IDoc I want to send field 't_e1fiseg-prctr' with no value, can you please let me know how I can do this ?
When I am trying to pass space then this field is not appearing in target system.
Many Thanks.Hi,
If there is no value in the field/segment, then the field/segment won't appear in the isoc, hence to make it appear you should pass the value '/' in the field.
Note: when we do this we are indicating the system, it tells the SAP system that there is no data in the field, the same thing we do when we manually process IDOC by WE19 Transaction.
Please validate the same at your end, please come back, if any more inputs from my end are required.
BR/Thanks
Pranav Agrawal -
Updating custom infotype with FM 'HR_INFOTYPE_OPERATION' dumps
Hi All,
While updating a custom infotype 9008 with FM 'HR_INFOTYPE_OPERATION', its giving adump.
Except. CX_HRPA_INVALID_PARAMETER.
I am using DIALOG_MODE as '1'. when I enter a valid field value to that particular field ( mandatory field) on that infotype, it gives dump.
Can you suggest something which will solve this?
Thanks.
Dipti.Hi,
Here is the dump.
Runtime Errors UNCAUGHT_EXCEPTION
Except. CX_HRPA_INVALID_PARAMETER
Date and Time 12.11.2008 07:23:32
Short text
An exception occurred that was not caught.
What happened?
The exception 'CX_HRPA_INVALID_PARAMETER' was raised, but it was not caught
anywhere along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_HRPA_RESOLVE_EXCEPTION=====CP' has to be
terminated.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_HRPA_INVALID_PARAMETER', was not
caught in
procedure "RESOLVE_EXCEPTION" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
Invalid parameter EXCEPTION, value
The occurrence of the exception is closely related to the occurrence of
a previous exception "CX_HRPA_VIOLATED_PRECONDITION", which was raised in the
program "CL_HRPA_MASTERDATA_FACTORY====CP",
specifically in line 6 of the (include) program
"CL_HRPA_MASTERDATA_FACTORY====CM004".
The cause of the exception was:
Precondition Violated
Missing RAISING Clause in Interface
Program SAPFP50P
Include FP50PE10
Row 2,152
Module type (FORM)
Module Name RESOLVE_EXCEPTION
Trigger Location of Exception
Program CL_HRPA_RESOLVE_EXCEPTION=====CP
Include CL_HRPA_RESOLVE_EXCEPTION=====CM001
Row 80
Module type (METHOD)
Module Name RESOLVE
Source Code Extract
Line
SourceCde
50
message_handler = message_handler.
51
return.
52
53
catch cx_sy_move_cast_error.
54
endtry.
55
END-OF-DEFINITION.
56
57
58
try_to resolve_missing_infty_data cx_hrpa_missing_infty_data.
59
try_to resolve_missing_authorization cx_hrpa_missing_authorization.
60
try_to resolve_invalid_feature cx_hrpa_invalid_feature.
61
try_to resolve_unexpected_message cx_hrpa_unexpected_message.
62
try_to resolve_missing_personid cx_hrpa_missing_personid.
63
try_to resolve_invalid_infotype_db cx_hrpa_invalid_infotype_db.
64
try_to resolve_invalid_customization cx_hrpa_invalid_customization.
65
try_to resolve_inconsistent_database cx_hrpa_inconsistent_database.
66
67
68
Just to ensure the macro can be used nowhere else.
69
DEFINE try_to.
70
END-OF-DEFINITION.
71
72
If we can not remap we would like to just re-raise the
73
exception like below like "RAISE EXCEPTION exception.".
74
Unfortunately the kernel will then forget about the
75
original source position.
76
77
So this is the fallback strategy. Calling this method
78
is only allowed if the exception can be resolved. Since
79
this is not the case we indicate a parameter violation.
>>>>>
RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
81
EXPORTING
82
previous = exception
83
parameter = 'EXCEPTION'.
84
85
ENDMETHOD.
Regards,
Dipti. -
Column with blank values in a excel export.
Hello
I Export a Report to Excel.
That's work fine but i have a problem.
when in a detail section one value of one column is blank, the export discard the cell.
in result , the values after the blank do not corresponding any more with there header....
i find this source on this bug on the web
http://aspadvice.com/blogs/crystal/archive/2004/04/20/2199.aspx
but the solution inside that post do not work ...
any idea ?i work with VS2008 in c# with the FW 3.5
my bug is not in design mode
the code where i format the excel export option :
ExcelFormatOptions b_Format = new ExcelFormatOptions();
b_Format.ShowGridLines = true;
b_Format.ExcelTabHasColumnHeadings = true;
b_Format.ExcelUseConstantColumnWidth = true;
b_Format.FirstPageNumber = p_intPageDepart;
b_Format.LastPageNumber = p_intPageArrivee;
if (p_intPageDepart != 0 && p_intPageArrivee != 0)
b_Format.UsePageRange = true;
l_ExportOptions.ExportFormatOptions = b_Format;
the program is a .net DLL use by a VB6 program....
The Dll is used for all Crytal works.
i show the Rpt successfuly. but when i export the rpt to excel the bug is present in the exported file. -
Update 2 Infotypes with File-- XI-- Idoc
Hi all,
I need to design an interface where XI picks up an inbound flatfile (csv). For each Infotype 2 update scenarios are possible based upon certain values in the ff. In total there are 4 update scenarios (2 for each IT).
I'm pretty new to XI and need some guidance on how to tackle this.
I've read that for updates to 2 seperate IT one need to use 2 idocs. One for each IT.
Once the idocs are created, is the use of FM HR_INFOTYPE_OPERATION the way to go ??
Much appreciated...
JohnHi John,
First of all decide the Idoc structure. Based on that you need to go further.
For each IT if you want to update, it is not required to have 2 idocs of <b>same type</b>. You can execute these logic in the mapping.
<i>Once the idocs are created, is the use of FM HR_INFOTYPE_OPERATION the way to go ??</i>
>>>XI can populate the data into Idoc Structure. Remaining functionality/posting should be taken care in the Idoc processing logic in the Application system.( i.e to execute FM/Validation etc)
For File to Idoc scenario-
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
Hope this helps
Regards,
Moorthy -
Update commercial invoice with excise values
Hi friends,
We have implemented depot sales; End user made first two invoices with my presence its worked fine. After one day he made third invoice with out my presence, this invoice is not capturing excise values like BED, AED, ECS and S & H cess. After this I found a route cause that
user has selected JF delivery document type instead of LF. Here I canu2019t cancel the OBD and excise invoice since a manual commercial invoice is already sent to customer with some commercial invoice no, say XXXXX196. So when I create commercial Invoice, invoice should generate with XXXXX196 no.
I canu2019t save billing document created with reference OBD because commercial invoice is not capturing the excise values and here I canu2019t key in excise values manually because all excise condition types are In grayed status, But some how I need to update all excise values. So can you please help me how do I can go ahead?
Thanks,
Krishna ReddyNormally VAT is not calculated on the BED/ECESS etc and the VAT is calculated on the Basic price.
What seems in your case is that the pricing procedure is configured based on this logic. For calculating VAT , the system refers to a tax base value , which is condition type. So in your case the tax base value would be excluding the BED/ECESS and other taxes in the current pricing procedure.
Modify your pricing procedure and get the New tax base value which should included BED/ECESS etc.
Now your VAT condition type should refer to this new tax base value for calculating the VAT ( tax).
This will solve the problem.
Ashok Chauhan -
Variant Config: Hidding Char with blank values
Hi Experts,
We have a requirement that we need to hide characteristics in sales order that has no value assigned during material configuration. Means if we have 10 characteristics for a material and only 5 are filled for specific configuration then in the display and change mode of sales order, it should show only 5 and not 10.
We tried using config profile, interface design then scope to restrict char with value only. It works fine for already created SO but for new SO it stopped showing any char.
any advise would be much appreciated, Thanks.
AlokJust a thought.
let's assume the characteristic you want is called CHAR.
Then create a dummy characteristic called DUMMY. Create values 'ASSIGNED' and 'BLANK' for DUMMY.
Create a dependency for the values of DUMMY
for 'ASSIGNED':
CHAR SPECIFIED
for 'BLANK':
NOT SPECIFIED CHAR
Then go back in each value of characteristic CHAR and create another dependency as follows:
DUMMY eq 'ASSIGNED'
that way the system should only display those values of CHAR for which DUMMY has a value...
It's a bit of a circular thought I know... Not implemented anything like it myself but it just might work -
Need to hide rows in the Query results with blank values
Hi All,
We have a requirement like this for Stock Report, we need to display both movements and balance in that report. We display the movement data directly from the Standard cube with input as Fiscal period/year. When we do like this, we are not able to get the opening balance as fiscal period was in char restrictions pane.
We have created a dummy keyfigure restricted to Fiscal period ( so that the global filter is not applied and get the inventory data irrespective of fiscal period input ). We have created 3 variables of processing type customer exit and acheived calculating opening balance, current movement and closing balance.
If FP input is 009.2010 to 010.2010, it will get whatever Qty moved before 009.2010 ( 001.1990 - 009.2010 in exit ) as opening balance and closing balance ( 001.1990 - 010.2010 ) and the Qty KF restricted with another exit varibale ( 009.2010 to 010.2010 ).
Hope everyone understood the scenario and issue here is, though I give the input 009.2010 - 010.2010 , I get the rows displayed for different periods ( this is because I am retreiving data for all the fiscal periods but restricting it based on input ). How to restrict/hide these rows.
Your inputs and suggestions are valued.
Thanks,
Chandra.Hi,
Try creating a query level field which would populate as "X" (with the IF condition ) if the record falls in the period which you have given for input variable (009.2010 - 010.2010). Then place a query level filter for this field where only records with value "1" for this field is displayed.
Hope this helps.
Happy to help further.
Regards
Venky
Maybe you are looking for
-
How can I transfer photos from an IPhone 5 to an IPad 2 using a cable. I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the IPad to the IPhone and not the other way around.
-
Firefox will not save Site Certificate Exceptions even when checked to do so.
I have a publicly free Wifi Access point near by that I use daily. When logging on to this site I get a Warning about the Sites Certificate and do I want to proceed, I choose YES and then are asked if I want to make this exception permanent and I put
-
FDM Load Balance - How does it work
Hi experts, We are considering using FDM Load Balance in our solution. However, there are not much description on the features that the load balance provided by FDM. Is it round robin? Is it load sensitive? Does it do failover on a session level? Whe
-
Application does not show up in the manager console -- Java Web Start
Hi... I have downloaded the jnlp file so many times but still the aplcation is not displayed in the JWS manager console. This my jnlp file : - <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://2m6:8100/jws/" href="ChatApplicat
-
Corrupted table and associated mappings
I believe I caused a problem by reimporting a table into the owb. All the mappings with the table became undeployable and any new mappings with table were undeployable and created hanging sessions when attempting to deploy. Export and Import also led