RH_INSERT_INFTY not creating new records
Hi All,
I am using the FM RH_INSERT_INFTY to insert new records in HRP1000.
See the below FM call :
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
fcode = 'INSE'
vtask = 'D'
order_flg = 'X'
commit_flg = 'X'
authy = 'X'
PPPAR_IMP =
OLD_TABNR = ' '
REPID = ' '
FORM = ' '
keep_lupd = keep_lupd
TABLES
innnn = it_i1000
EXCEPTIONS
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
OTHERS = 6.
But instead of creating new records it is changing the existing record in HRP1000.
Actually I want to create new records with different long text and short text in different languages so in case object id and object type even the dates can be same but the language would be different.
So I need to create a new records with a different language key and different short text. But this function module is changing the existing object short text,long text and language.
Could you please reply at the earliest.
Thanks & Regards,
Poonam
Hi,
you're right, this function didn't create new record when i want to create a record with same object but have different language.
you can use this function for your problem : RH_INSERT_INFTY_DIRECT
i tried and it works.
CALL FUNCTION 'RH_INSERT_INFTY_DIRECT'
EXPORTING
vtask = 'V'
KEEP_LUPD =
tables
innnn = p1000
EXCEPTIONS
NO_AUTHORIZATION = 1
ERROR_DURING_INSERT = 2
REPID_FORM_INITIAL = 3
CORR_EXIT = 4
BEGDA_GREATER_ENDDA = 5
OTHERS = 6
Regards,
Similar Messages
-
I have imported all objects from an old access db (.adp file) into a new db (.accdb). All of my data lives in sql server so I have added all the tables and views to the .accdb as linked tables. My forms all connect to data, but I am having issues
with a sub form. The sub form does not allow for creation of children records tied to the parent record the way the old db did/does.
Correct - old format .adp file (notice the empty second record in sub-form with the defaulted date of today's date):
Incorrect - new .accdb file (notice the lack of empty second record in sub-form like above):
If I click the create new record icon in the bottom of the subform, it creates a completely blank record not tied to the parent record (fields blacked out in screen shots above). When using this button all parent record fields are blank.
I have also verified the child table used in the sub-form has a valid Fky relationship to parent table used in the parent form.
Have you checked each forms 'Filter' property (in Design view) to make sure they are blank and that each forms 'Filter On Load' property to make sure it is set to 'No'? Also, you might try inserting the following commands in each forms On
Open event:
DoCmd.RunCommand acCmdRemoveAllFilters
DoCmd.ShowAllRecords
If you can open each forms Record Source and they are showing that new records are able to be entered (the new record * is showing at the bottom of the recordset), then check each forms On Load and On Open events to make sure there is no filtering.
In addition, check any macro or VBA commands behind the button that opens the main form to make sure there is no SQL filtering in the DoCmd.OpenForm command.
If one of the forms Record Source does NOT allow new records, then you will need to change that Record Source so the new record * indicator shows.
Out of ideas at this point. -
Creating new records while querying existing record
Hi,
I have one master - detail form.
First i created 1 record. Request ID is the primary key. Now request id generated. For ex.: 10
Request Id, date, requestor , location, status fields are in header block.
In lines block, i hv some other fields.. and one field called 'Activity'.
While creating first record, the activity will be 'New'.
Then i'll query the record '10'.
when i'm changing the activity 'New' into 'Upgrade', it should create new record with new request ID.
How to do this?
I hv written procedure that, i'm taking field values to local variables. Then assigning the local variable values to field values.
It is not creating as new record. It overwriting the existing record with new values. Existing record is missing.
Pl. give steps.
Thanks
KaviHi,
Okk, you will have to do two things. Create two trigger on block level on which you want to do your changes.
1. First trigger. (PRE-UPDATE)
In pre-update trigger u will have to write the complete insert statement into the same table with new req id. like
DECLARE
vReqNo DATA_TYPE;
BEGIN
SELECT MAX(REQ_ID)
INTO vReqNo
FROM your_table;
INSERT INTO your_table
(req_no, fields....)
VALUES
(vReqNo, :forms_values);
END;
2. Create 2nd trigger on block level (ON-UPDATE)
write in this trigger
NULL;
for viewing the inserted record. What u have to do is in ON-UPDATE after null; create one timer NO_REAPEAT.
and in timer u will have to set the block property to req_id = generated_req_id_from_pre_update_trigger and
execute_query;
hope it will work...
-Ammad -
Dynamic Action-Delimiting a record and creating new record
Hi ,
My requirement is in dynamic Action I need to delimit all records in a Subtype of an Infotype and create New record for these records with BEGDA as ENDDA + 1 of the delimited records.
Iam able to delimit all records in the Subtype but , Iam not able to create new records.
My code for delimiting is as given below, in T588Z,
9901 2 06 801 P P9901-SUBTY='2'
9901 2 06 802 P PSYST-IOPER='MOD'
9901 2 06 803 P P9901-STATS='X'
9901 2 06 804 P P9901-PREAS='91'
9901 2 06 805 F DELIMIT_DTE(ZHSRAS_T588Z_9901)
9901 2 06 806 W P9901-ENDDA=RP50D-ZZDATE3
9901 2 06 807 I MOD,9901,3
9901 3 06 808 P SY-UCOMM='UPD'
9901 3 06 809 F DELIMIT_DTE(ZHSRAS_T588Z_9901)
9901 3 06 810 W P9901-ENDDA=RP50D-ZZDATE3
The above code is working fine.
My code for creating new record is as given below, even though the control is oing to the subroutine, INS statement is not working, and hence new record is not getting created.
9901 3 06 811 P SY-UCOMM='UPD'
9901 3 06 812 P PSAVE-ENDDA<>P9901-ENDDA
9901 3 06 813 P P9901-STATS<>'X'
9901 3 06 814 I INS,9901,3
9901 3 06 815 F BEGIN_DATE(ZHSRAS_T588Z_9901)
9901 3 06 816 W P9901-BEGDA=RP50D-ZZDATE3
9901 3 06 817 W P9901-ENDDA='99991231'
Kindly help me on this.Hi shahana,
1. I have not worked on this dynamic action.
2. But instead of doing in 2 steps,
it is usually done in 1 step only, manually.
3. If we CREATE record from some date,
then the OLD will AUTOMATICALLY get Delimited.
(We don't have to do anything specially for delimiting
the old record)
regards,
amit m. -
Form does not show "new" records from SQL Database
I have a PDF form that pulls data from a SQL Server. The fields in
the PDF are populated from the database after selecting a specific
record from a drop down and then clicking on a button labeled "Fill".
The problem is that the dropdown does not display new records that
have been recently added to the database. I have to open the form up
in designer then save it, (*note - I change nothing at this point.)
Then when the form is opened back up in Adobe the dropdown show all
the records including the new ones. I even put a manual refresh on
form to try and fix this an it did not help. Seriously stumped.
Any help is greatly appreciated.
Here is my code for the dropdown.
++++++++++++++++++++++++++++
topmostSubform.Page1.JobSelect::initialize - (JavaScript, client)
var sDataConnectionName = "BBCC"; // example - var sDataConnectionName
= "Test";
var sColHiddenValue = "ContractAdmin_Key"; // example - var
sColHiddenValue = "Dept_ID";
var sColDisplayText = "JobDescription"; // example - var
sColDisplayText = "Dept_ID"
// Search for sourceSet node which matchs the DataConnection name
var nIndex = 0;
while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
nIndex++;
var oDB = xfa.sourceSet.nodes.item(nIndex);
oDB.open();
oDB.first();
// Search node with the class name "command"
var nDBIndex = 0;
while(oDB.nodes.item(nDBIndex).className != "command")
nDBIndex++;
// Backup the original settings before assigning BOF and EOF to stay
var sBOFBackup =
oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
var sEOFBackup =
oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF",
"bofAction");
oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF",
"eofAction");
// Clear the list
this.clearItems();
// Search for the record node with the matching Data Connection name
nIndex = 0;
while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
nIndex++;
var oRecord = xfa.record.nodes.item(nIndex);
// Find the value node
var oValueNode = null;
var oTextNode = null;
for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
{ if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
{ oValueNode = oRecord.nodes.item(nColIndex); } else
if(oRecord.nodes.item(nColIndex).name == sColDisplayText) { oTextNode
= oRecord.nodes.item(nColIndex); } }
while(!oDB.isEOF())
this.addItem(oTextNode.value, oValueNode.value);
oDB.next();
// Restore the original settings
oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup,
"bofAction");
oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup,
"eofAction");
// Close connection
oDB.close();
++++++++++++++++++++++
Here is code for the refresh button
+++++++++++++++++++++
topmostSubform.Page1.Button27::click - (JavaScript, client)
sourceSet.BBCC.requery();
+++++++++++++++++++++pguerett wrote:
The other thing that might be happening is a refresh issue on the DropDownList. Try adding the command xfa.layout.relayout() after the database connection has been closed.
Paul
Good catch Paul! Would you believe that I have been trying to get this resolved for almost two years! Works perfect now.
Thank you,
- Eric -
Mail does not create new emails based on the highlighted mailbox, but rather according the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part? (I do have the setting for creating new emails from the highlighted mailbox checked.)
The questions about time was not only because of thinking about the Time Machine, but also possible impact on recognizing which messages remaining on a POP server (doesn't apply to IMAP) have been already downloaded. In the Mail folder, at its root level, in Mail 3.x there is a file named MessageUidsAlreadyDownloaded3 that should prevent duplicate downloading -- some servers may not communicate the best with respect to that, and the universal index must certainly be involved in updating that index file. If it corrupts, it can inhibit proper downloading. However, setting the account up in a New User Account and having the same problem does not point that way, unless your POP3 server is very different from most.
That universal index is also typically involved when messages are meant to be moved from the Inbox to another mailbox -- in Mail 3.x the message does not move, but rather is copied, and then erased from the origin mailbox. That requires updating the Envelope Index to keep track of where the message is, and should keep track of where it is supposed to have been removed after the "Move".
Ernie -
IDOC_INBOUND_ASYNCHRONOUS FM not creating new IDOC?
Hi,
IDOC_INBOUND_ASYNCHRONOUS function module is not creating new IDOC in SAP.
I configured all related functions against message type and idoc type.
Please let me know the issue.
I am processing old IDOC (created from non sap system) through BD87 and using custom function module. I called IDOC_INBOUND_ASYNCHRONOUS in custom function module.
ChandraHello,
Aren't you getting any error messages ? You may check by creating watch points on the message id and / or number .
Thanks -
Why i can't not create new database in oracle 10g express
why i can't not create new database in oracle 10g express?
should i use oracle 11g standard edition?
thanksIn Oracle a schema is what a 'database' is in Sqlserver.
And if you would have been aware about the limitations of XE, you would have known you can only create *1* (one) database using Oracle XE.
However, probably you don't need a new database at all, and a schema will suffice.
Sybrand Bakker
Senior Oracle DBA -
ORA-27142: could not create new process/ when i am duplicating DB
I am trying to duplicated DB on new server and getting this error
Need suggestions to solve this ?
RMAN-03002: failure of Duplicate Db command at 10/03/2006 16:58:58
RMAN-03015: error occurred in stored script Memory Script
ORA-27142: could not create new processcheck the availability of disk space where netbackup writes log files.
if its is all set,
open the netbackup log file and look for any recent relevant messages.
look closely in rmanlogs and netbackup logs for any messages ralating to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIECE -
When creating new records in any entity getiing error in mscrm 2011
Dear all;
when i try to create new record in any entity for example opportunity i am getting this error
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Server was unable to process request.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147023878</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
/>
<Message>Server was unable to process request.</Message>
<Timestamp>2013-09-04T12:10:21.3522306Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
please helpHi Anwar,
As suggested above enable the trace, This would help you get the exact and detailed error.
Steps:-
1. Start the trace
2. Reproduce the Error
3. Stop the trace.
4. Look in the log file and search for error.
Thanks,
Prasad
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question. -
In oracle forms how to restrict creating new record
I have a multi record block, I dont want to create new record. If I use the down key after the last record control is moving to next record. I dont want this to happen. I want to scroll between first and last record.
Can anyone tell me ?Look up the Forms Help for 'system.last_record'.
I'd code the KEY-DOWN trigger on the block as...
IF :System.Last_Record = 'TRUE' THEN
Bell;
Message('You are on the last row');
ELSE
down;
END IF;
This avoids any processing or validation work being done on leaving the current record or creating the new record. -
How can I make the popup with empty fileds and create new record?
I would like to use a popup to create new record.
I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
How can I make the popup with empty fileds and create new record by saving the popup?
ThanksYou can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
resetBindingValue("#{bindings.<componentid>.inputValue}", null);
public static void resetBindingValue(String expression, Object newValue) {
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = ctx.getELContext();
ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
Class bindClass = valueExp.getType(elContext);
valueExp.setValue(elContext,newValue);
} -
Updated Mac Air to Mountain Lion and now I can not create new email in Hot Mail
Updated Mac Air to Mountain Lion and now I can not create new email in Hot Mail
Greetings,
What you posted is rather vague. By doesn't work do you mean the applications don't open at all or are you getting a message stating that your product needs activation? If it's product activation then that is something that Microsoft will have to assist you with. If your problem is that the applications simply won't open you may have to uninstall and reinstall Office again. This is common on the Windows platform too. Rarely when you upgrade to a new OS Office sometimes has an issue with the upgrade and won't open correctly. I would suggest merely uninstalling and reinstalling. Nine times out of ten that helps. -
System should not creates new version when value of PO increased..
Hi Experts,
Need your help to solve this problem. When i increase value of PO it should retrigger Release strategy but it creates version first, then i have to tick completion indicator and check then only release strategy retriggers..
It should not create new version when change po
Please check below screenshot
Please helpHi
Please reveiw the following points in note
- 493900 FAQ: Release Strategy
4. Why is the release strategy not determined?
"If you use version management, the determination of the release
strategy starts when the version is completed.
You complete a version by setting the "version completed"
indicator in the version tab."
- 662993 Resetting an already occurred release
You edit a purchasing document with release strategy.
You change the quantity or the price. In spite of that, the
already set release is not reset.
The release strategy works the same with or without version management
active - the only difference in case - version management is active -
is that if release is to be reset, it will be reset only on version
I hope this helsp to clarify this issue
Kind regards,
Lorraine -
Unable to create new records with FOX formula (IP)
Dear Guys,
We created a FOX formula that could not create any records within an empty infocube (got 0 records read, 0 created, 0 changed, 0deleted). how to change this formula to make sure record are created?
DATA K_0FISCPER3 TYPE 0FISCPER3.
FOREACH K_0FISCPER3 IN SELECTION.
{ 0AMOUNT, K_0FISCPER3 } = 100.
ENDFOR.
Many thanks!
Kind Regards
Olivier DESFOURHello,
this behaviour is explained in the docu.
Internal Data Objects and Address
The internal data objects that are edited are subsets of the transaction data contained in the planning package. The user executes a planning function by selecting a package and a parameter group. This package is divided into smaller data objects made up of transaction data. If a formula requires reference data, these data objects are also created from this reference data. Note: If it is not possible to create data objects, a formula is not executed.
You will find this detailed docu, if you press F1 in the formula editor in transaction BPS0.
For BI-IP this detailed docu will be part of one of the next docu shipments.
The docu belongs to the data element UPC_Y_FLINE. Therefore you can access the docu from the transaction SE11. Choose data type = UPC_Y_FLINE. Press the button DISPLAY.
Best regards
Hans-Juergen Schwab
Maybe you are looking for
-
hi experts, There were some MRP controllers were assigned for User exit in SPRO for planning run (T code :- MD01 ). Now i have defined additional MRP controllers and also assigned them for user exit (in SPRO) for planning run. With old MRP controller
-
Is there a software which can remove unused files leftover from removed applications?
Hi there guys, as the title says... Does anyone know of anything, or anyway that I can do this easily? I notice that I do have files left here and there from software which I have long since removed... Any easy way to remove these files..?
-
Isolation level when set EJBC giving error
We are trying to set the isolation level in weblogic-ejb-jar.xml we gave transaction-isolation tag after jndi-name tag. But EJBC is throwing SAXException saying that weblogic-enterprise-bean doesnot allow this tag. But i
-
Opening RAW photo in editor - cannot add a layer or make adjustments.
Greetings - I have recently upgraded to Photoshop Elements 13. I have a Nikon and I am shooting in RAW. Recently I have found that when I open a photo in the Editor - the vast majority of actions are grayed out. I cannot add a layer - or make other a
-
Kinect V2 Sensor - Device Cannot Start
Greetings all! I have a standard HP desktop running a fully updated Windows 8.1, plently of RAM, with a Renesas USB 3.0 adapter. I have powered up the Kinect V2 and plugged it into the USB 3.0 adapter (there are no other devices on this USB hub). Whi