Logic to populate the key field of a DSO
Hi SDN community,
I have a very unique requirement and need ur help on this.
I have a created a generic Datasource with two fields <b>Material Number</b> and <b>Minimum Quantity</b>. This is loaded into MINDSO01.
The MINDSO01 in BW side will have two Key Fields:<b>Material Number and Load Date</b>. (Load Date is not a filed coming from the Datasource it is nothing but the date when the load is happened.)
The reason to have Load Date as the key is, each time the DSO is loaded the records have to be unique.
<b>Now my question is how do I populate the Load Date filed of the DSO which is the KEY field for the DSO???
If I load on 9/25/2007 then the load date should be 9/25/2007.</b>
<b>MAT01 9/25/2007</b> 5
<b>MAT02 9/25/2007 </b> 8
<b>MAT03 9/25/2007</b> 13
bolded fileds are the keys of the DSO.
Any suggestion are really appreciated and will award points for sure.
Please do help me out with this issue.<b></b>
Hi Snigdha,
You can write a routine for the infoObject Load date is equal to sy-datum. So that it will take the value of the date as the day when the date is loaded and populates.
If you are using 3.x, then write start / End routines in update rules or else if you using BI7, write routines in Transformations.
Let me know details.
Reg
Pra
Similar Messages
-
Customer no to populate the Assignment field for Sales A/c using sort key
Dear All,
In 6.0, I am trying to get the Customer number to populate the Assignment field for Sales Account
We have set the sales account to a 031 sort key - sort by customer, in FS00. When 031 is set, SAP goes to the BSEG table and looks at the KUNNR (customer) field and populates the Assignment field with what is in the KUNNR field of BSEG.
The problem is: the customer number (KUNNR) does not contain any data in BSEG.
The KUNNR field of all the other account lines for the document number are blank.
Is it possible to bring the field in the General Ledger display?
Does anyone know of a user exit or other solution?
Thanks,
GovHi,
Check with SD consultant and use Copy control. -
How to populate the new field of R/3 in BW
Hi,
There was a requirement to modify the sap screen in the R/3.
For the same a new field is created which populate the data via a table in R/3.
Now I have to populate the same field in BW. I am working on 3.5 Version.
In R/3 I have a data source and I am not able to see the same available in the data source
The field is available in the extract structure but I am unable to populate the same in the data source.
Kindly help.The Data Source is picked from the FM.
Also,my requirement is to display the text values for the new field
I am going to create a Generic Master Data which will fetch the data from the table which has fields (Code, Langu and the text) and replicate the same to BW.
Now to populate the code in BW, I need to have the field in the data source and from there I can add the same code field in the bw comm/tran/etc...
The code is available in the Extraction and not in the data source.
At the reporting level I will extract the report based on key and text.
I tried using ROOSFIELD to populate the field in the datasource, but I am not able to do the same. -
How to populate the logical_group field in V_LTDX (table for layouts)?
Hi,
Scenario:
I have implemented the ALV using CL_SALV_TABLE. In the grid we have a 'Choose Layout' button where we have the options of choose, change, manage etc. the layouts. If we create a layout, the layout is saved in the table LTDX(view: V_LTDX).
Issue:
How do we populate the 'Logical_group' field in the table while creating/changing the layouts?
Please suggest..
Regards
s@kSolved..:)
Solution:
While creating the ALV grid, use the method 'get_layout' of the class CL_SALV_TABLE and get the reference of the layout in a reference variable.
Data:
gw_key TYPE salv_s_layout_key.
gr_layout = gr_grid->get_layout( ).
gw_key-report = sy-cprog.
gw_key-logical_group = gc_log_grp." Pass the logical group here say logical group: 0001, 0002, etc. for each ALV
So, whenever you create/ change a layout on the ALV grid, the system automatically passes this logical group and saves it in the table LTDX.
Regards
s@k -
How to populate the TEXT field in MIGO
Hi folks,
While creating material document in MIGO or MB01, i am inserting some data in TEXT ( Field in line item level ). This text data is disappearing , once mat doc is created.
how to populate the TEXT field in MIGO?Is there any cusomisation?it's urgent .
Regards
pabiHello Pabitra,
I had a similar issue in my Project.
Please verify if the SMOD enhancement MBCF0002 (EXIT_SAPMM07M_001) is active in your system.
If this is the case, verify from two angles:
a) Whether the Enhancement was accidentally activated - If yes, then De-activate the same
b) If there is some logic coded in the User Exit, but, the Text is somehow not determined...even the existing content in the text field (input to EXIT_SAPMM07M_001) will get vanished.
Hope that your problem will be resolved by this. Pls reward points.
With Regards
Vijay Gajavalli -
Adding fields into DSO in the Key Fields
Hello Experts,
I am using a Cube which loads data from DSO. Now, for some requirement I have to add one field into DSO in the key fields Part. But DSO already has 16 fields which I cannot remove.
So how can I add one more field into DSO in this case?
The cube I am using is 0FIGL_C10 and the DSO is 0FIGL_O10.
Regards,
Nirav ShahYou can create an Infoobject - acts as a custom key to concatenate multiple fields into one and make it a keyfield.
15 fields + custom key ( concatenate 2 fields ) = 16 Keyfields
Procedure - > Example
16th Key - > RVERS-Version-CHAR-3-0VERSION
17th Key - > RMVCT-TransactnType- CHAR-3-0MOVE_TYPE
1. Create one infoobject - ZKEY - Length = 6 ( add lenghts of the two objects)
2. Make ZKEY as a keyfield for the DSO.
3. Make 16th Key and 17th Key datafields.
Create a routine for ZKEY in the transformation or transfer rules to concatenate values coming from source into one.
TRFN Routine
Concatenate SOURCE_FIELDS-RVERS SOURCE_FIELDS-RMVCT into RESULT.
Or
Transfer Rules Routine
Concatenate COMM_STRUCTURE-RVERS COMM_STRUCTURE-RMVCT into RESULT.
This way nodata will be lost/overwritten due to less number of keyfields in the DSO.
We have as many as 21 Keyfields for GL Totals DSO. -
What are the key fields used to group double orders in t-code SDD1?
What are the key fields used to group double orders in t-code SDD1?
Cheers,
VTHi,
You can group the duplicate sales documents with the help of the following fields,
Sold-To-Party,Document type,date and sales area details.
Regards,
Gopal. -
How can we get the value of the key field in a custom data model using governance API?
Dear Team,
How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
Any kind of help would be sincerely appreciated.
Thanks & Regards,
Tushar.Hi Michael,
Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
This is a workaround for now.
So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
Can we do that using governance API and its' methods?
In the Governance API doc you provided below has referring to below external model as part of gevernance API.
The active or inactive data (before or during the derivation or the check) can be read
with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
parameter should b
e set to ‘X’.
Thanks
Praveen -
How to populate the Referance Field Through the Auto Invoice in credit memo
HI ,
I m populating the records in RA_INTERFACE_LINES_ALL and creates the cr Memo through the Auto Invoice ,
but i m like to populate the Referance Field which is exist in Header part of the Cr Memo (Benith the TYPE).
So plz help me,
that which column of the RA_INTERFACE_LINE_ALL populates ,that gave me a data in the Referance Field .
However this referance field is carried out from the table.Column =RA_CUSTOMER_TRX_ALL.ct_reference
Plz Help..
Regards,
DKwhat you did?
-
How to populate the address field in real time from backend?
Hi Guys,
I want to populate the address field in srm portal when creating Shopping Cart. I got the data by using some BADI functions. Now the problem is I am not getting the structure/table where I should add that address so that it can reflect in the address field of shopping cart.
Can anyone help me out?
Regards,
Virendra KediaJoe - Work backwards from the value generated during the execution of the trigger. You have the value there so you could save it into a package variable right then (create a package with a variable and assign the value to the variable). Then create a process on the page (after the DML process) to assign the value of your package variable to a page item. Then in the branch back to page 1, pass the item. (Or without messing with the branch, the process could simply assign the package variable directly the the page 1 item -- :P1_ITEM := my_package.my_var; ).
An alternative would be to use the "returning into" feature of DML to capture the PK of the created record into an item. Then the next page process could use the PK to fetch the new row and get the dbname value for passing to page 1.
Another option would be to update session state directly in the trigger.
Scott -
How to populate the relavent fields when clicked on a field
I am trying to populate the relevant fields of screen(MODULE POOL PROGRAM) when i am
clicking on a field. Search help/ value request is provided to that field.
so Can any one help me with this scenario. IF POSSIBLE PLEASE SEND THE SOLUTION
WITH THE CODES.
POINTS WILL BE REWARDED.Hi
use this for F4 help on field
For F4 Values on Screen:
PROCESS ON VALUE_REQUEST
using module call starting with FIELD i.e FIELD field MODULE module
There are number of function modules that can be used for the purpose, but these
can fullfill the task easily or combination of them.
DYNP_VALUE_READ
F4IF_FIELD_VALUE_REQUEST
F4IF_INT_TABLE_VALUE_REQUEST
POPUP_WITH_TABLE_DISPLAY
DYNP_VALUE_READ
This function module is used to read values in the screen fields. Use of this
FM causes forced transfer of data from screen fields to ABAP fields.
There are 3 exporting parameters
DYNAME = program name = SY-CPROG
DYNUMB = Screen number = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
and one importing TABLE parameter
DYNPFIELDS = Table of TYPE DYNPREAD
The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
to this FM and the values read from the screen will be stored in this table.This
table consists of two fields:
FIELDNAME : Used to pass the name of screen field for which the value is to
be read.
FIELDVALUE : Used to read the value of the field in the screen.
e.g.
DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = SCREEN_VALUES.
READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.
F4IF_FIELD_VALUE_REQUEST
This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three
parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = table/structure
FIELDNAME = 'field name'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNR
DYNPROFIELD = 'screen field'
IMPORTING
RETURN_TAB = table of type DYNPREAD
F4IF_INT_TABLE_VALUE_REQUEST
This FM is used to dsiplay values stored in an internal table as input
help.This FM is used to program our own custom help if no such input help
exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = field from int table whose value will be returned
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'screen field'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = internal table whose values will be shown.
RETURN_TAB = internal table of type DDSHRETVAL
EXCEPTIONS
parameter_error = 1
no_values_found = 2
others = 3.
POPUP_WITH_TABLE_DISPLAY
This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
parameter.The VALUETAB is used to pass the internal table.
A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL =
ENDPOS_ROW =
STARTPOS_COL =
STARTPOS_ROW =
TITLETEXT = 'title text'
IMPORTING
CHOISE =
TABLES
VALUETAB =
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
e.g.
DATA: w_choice TYPE SY-TABIX.
DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
values TYPE I,
END OF i_values.
PARAMETRS : id TYPE I.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
i_values-values = '0001'.
APPEND i_values.
i_values-values = '0002'.
APPEND i_values.
i_values-values = '0003'.
APPEND i_values.
i_values-values = '0004'.
APPEND i_values.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 40
ENDPOS_ROW = 12
STARTPOS_COL = 20
STARTPOS_ROW = 5
TITLETEXT = 'Select an ID'
IMPORTING
CHOISE = w_choice
TABLES
VALUETAB = i_values
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
CHECK w_choice > 0.
READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained
...in the structure i_values.
Other FM that may be used to provide input help is HELP_START .
Regards
Anji -
Populate the customer fields (ORDERS05)
Hi all,
I'm trying to extend basic IDOC type ORDERS05 with these extra fields:
Table Fields
VBRK KUNAG (Sold to customer number)
VBRP EAN11
VBRK FKDAT
VBKD BSTDK
VBRP FKIMG
VBRP VRKME
VBRK ERDAT
VBKD FKDAT
T052 ZPRZ1
How to enhance the IDOC?
How to populate the customer fields that I added?
Thanks,
SriniRefer:
Re: Very urgent.. Orders05. -
Populate the extra fields added to the DS
I want to populate extract structure for Transaction data .
using CMOD For field BLART coming from Table COVP
In CMOD What code do you write to populate the extra fields added to the DS
thanksusing DS : 0CO_OM_WBS_6
which uses delta
thanks -
Process to populate the new field added by AET in Sales Order item
Hi
We are on CRM 7.0 , EP1.
I have added a new field in Sales order item view (UI comp : BT115IT_SLSO , View :Items).
The field is called MTO (made to order), it should be populated based on settings in material master.
I would like to know how can I populate this field with custom logic.
Thanks
SwapnilDear Swapnil,
You can use the following steps to set the default value in field Made To Order:
1. Enhance Component BT115IT_SLSO and View Items
2. Redefine method DO_PREPARE_OUTPUT method of the View Controller Class and implement the following sample code:
super->do_prepare_output( ).
if iv_first_time = abap_true.
lr_ent->set_property_as_string( iv_attr_name = 'ZXXX' " Attribute Name
iv_value = 'YYYY' ) " Value to be set
endif.
This will make sure that the logic to set the value in this field is called only once and not after every event.
You might not like to redefine the Getter and Setter method because these methods will be triggered after each event in that view.
Hope this helps.
Thanks
Vishal -
Which are the Key fields in the iTunes Music Database
I assume that the iTunes Music folder is really a database for all the music. I further assume that this database has a Key Field (1 or more) which are necessary for it to function.
Which fields are these and what are their names??
I am still hunting for the songs that are missing in iTunes but are in the library.Ignore the question. I found the missing files. Had nothing to do with "key fields". Thanks
Maybe you are looking for
-
I am using a Dell Inspiron 530 Desktop computer. I can log-into Verizon from Windows Vista Home Premium or any Linux version using Firefox 8.0, I am unable to log-in with Firefox 8.0.1 with Mageia Linux 1. Cheers. Ray.
-
We are on ECC6.0 NW04s. When trying to update the W4 of an existing employee, it does not show the current data stored in IT210. Only a "new" icon appears. Use case of B2 is maintained for all states and FEDERAL. Does anyone know what usecase needs t
-
My iPad will not start up or turn on again
I have been using my iPad without any issues and recently had some difficulty starting up my iPad and now I cannot start it at all. I have tried holding down the power button and trying to restart but that did not work. I have fully charged it (I thi
-
How to create a intro clip that plays automatically when DVD is inserted?
I am a pretty much a newbie to DVD studio pro and I am wondering how can I create an intro clip that will play when you insert a DVD created in DVD Studio Pro into a player? In iDVD it was fairly simple but in Pro I am getting a little stumped by it.
-
All the photos seemed to have reinstalled from the 'Faces' section of my library and none of the videos are present. I am a film student and my entire footage from summer seems to have disappeared, does anyone have any idea what has happened? Please