Custom Field in BSID - How do I populate value at time of JE?
Hi all
We have a custom append to the BSID table to have a custom field. I was hoping we could populate this custom field on BSID using the FI substitution rule in OBBH. However, it looks like we cannot access BSID from within the FI substitution exit.
Can anyone suggest how I could populate data into a custom field on BSID at the time of a AR Journal entry?
Thanks
V
I posted the following reply to a similar question before, which I am copying below.
Try the following: I have taken HKONT (GL Account) as an example to add to the substitution table.
SE16
Table GB01
field HKONT
execute
/h
select the line and hit display
bearkpoint -> breakpoint at -> subroutine
enter subroutine -> SET_STATUS_VAL
F8
double click on the word "code"
remove SHOW and type EDIT and click on pencil
F8
remove the exclude flag and save.
do again and save.
debugging off and save again.
Similar Messages
-
New Customer Field in Shopping Cart (SRM) with default value
We have requirement to add new Customer field in Shopping cart (SRM 4.0) and assign a default value to it.
We have added the custom field and also assigned default value 'X' to it using BADI BBP_CUF_BADI_2 method MODIFY_OUTPUT. Problem we are facing is in case user changes the value and unchecks the custom field then it gets overwritten by default value once the shopping cart is saved. We have followed steps mentioned in link below in order to add custom field and populate it.
/people/nanda.kondagunta/blog/2006/10/23/how-to-create-custom-fields-in-srm
KR Jaideep,Dear Poster
Your thread has had no response since it's creation over
2 weeks ago, therefore, I recommend that you either:
- Rephrase the question.
- Provide additional Information to prompt a response.
- Close the thread if the answer is already known.
Thank you for your compliance in this regard.
Jason Boggans
SAP SRM SDN Moderator -
Addign new customer field in Shopping cart SRM with default value
We have requirement to add new Customer field in Shopping cart (SRM 4.0) and assign a default value to it.
We have added the custom field and also assigned default value 'X' to it using BADI BBP_CUF_BADI_2 method MODIFY_OUTPUT. Problem we are facing is in case user changes the value and unchecks the custom field then it gets overwritten by default value once the shopping cart is saved. We have followed steps mentioned in link below in order to add custom field and populate it.
[/people/nanda.kondagunta/blog/2006/10/23/how-to-create-custom-fields-in-srm|/people/nanda.kondagunta/blog/2006/10/23/how-to-create-custom-fields-in-srm]
KR Jaideep,Hi,
In badi BBP_CUF_BADI_2, method MODIFY_OUTPUT,
are you doing something like this?
CASE IV_FIELDNAME.
WHEN 'YOUR_CUSTOM_FIELD'.
IF IV_VALUE IS INITIAL.
MOVE 'YOUR_DEFAULT_VALUE' TO EV_VALUE.
ENDIF.
ENDCASE.
Best regards.
Edited by: Pablo Casamayor on Jul 23, 2009 12:32 PM -
Custom row-fetch and how to get column values from specific row of report
Hi -- I have a case where a table's primary key has more than 3 columns. My report on the
table has links that send the user to a single-row DML form, but of course the automatic
fetch won't work because 1) I can't set more than 3 item values in the link and 2) the
auto fetch only handles 2 PK columns.
1)
I have written a custom fetch (not sure it's the most elegant, see second question) that is working
for 3 or few PK columns (it references the 1-3 item values set in the link), but when there are
more than 3, I don't know how to get the remaining PK column values for the specific row that was
selected in the report. How can I access that row's report column values? I'll be doing it from the
form page, not the report page. (I think... unless you have another suggestion.)
2)
My custom fetch... I just worked something out on my own, having no idea how this is typically
done. For each dependent item (database column) in the form, I have a source of PL/SQL
function that queries the table for the column in question, using the primary key values. It works
beautifully, though is just a touch slow on my prototype table, which has 21 columns. Is there
a way to manually construct the fetch statement once for the whole form, and have APEX be smart
about what items get what
return values, so that I don't have to write PL/SQL for every item? Because my query data sources
are sometimes in remote databases, I have to write manual fetch and dml anyway. Just would like
to streamline the process.
Thanks,
CarolHI Andy -- Well, I'd love it if this worked, but I'm unsure how to implement it.
It seems I can't put this process in the results page (the page w/ the link, that has multiple report rows), because the link for the row will completely bypass any after-submit processes, won't it? I've tried this in other conditions; I thought the link went directly to the linked-to page.
And, from the test of your suggestion that I've tried, it's not working in the form that allows a single row edit. I tried putting this manually-created fetch into a before header process, and it seems to do nothing (even with a hard-coded PK value, just to test it out). In addition, I'm not sure how, from this page, the process could identify the correct PK values from the report page, unless it can know something about the row that was selected by clicking on the link. It could work if all the PK columns in my edit form could be set by the report link, but sometimes I have up to 5 pk columns.
Maybe part of the problem is something to do with the source type I have for each of the form items. With my first manual fetch process, they were all pl/sql functions. Not sure what would be appropriate if I can somehow do this with a single (page level?) process.
Maybe I'm making this too hard?
Thanks,
Carol -
How to Reset Factor value at time of Reset the system.
Hello,
I am facing one problem regarding to Reset the factor value in attached vi.
In that I have used 4 button Start, OK, save, stop.
In that initially vi ask to set the factor value , then press start and reading will vary and then press OK then reading is add to the array table.
For second reading again press start and measure the reading then OK to add to array.
After some reading when I press save button its save all reading to txt file and reset the all the vi but its not able to reset the Factor value.
How can I reset the factor value also after pressing save button.
I know here its out side of whileloop so its not possible to reset in this case I tried to set it into the while loop but I didn't get success.
Please guide me.
Thank you very much.
Solved!
Go to Solution.
Attachments:
voltage force capacitance .vi 43 KBThis is not a TestStand question! Please post it in the LabVIEW board.
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community. -
How to distribute a value across time periods?
<p>I have an application that tracks employees' actual andforecasted time on a project. The question is how do I get startedon writing a business rule to distribute forecasted time acrosstime periods?</p><p> </p><p>For example, the user selects an employee and estimates that theemployee will spend 1200 hours on the project over the next 2years. so i want to allocate 50 hours per month for the next twoyears. The employee will be a run-time prompt as well as the startyear/month and end year/month.</p><p> </p><p>The dimensions are</p><p> Account -> manhours</p><p> Period -> (standard)</p><p> Years -> FY05:FY15</p><p> Projects -> p1, p2,..., p3</p><p> Employee -> emp1, emp2, emp3</p><p> Scenario -> Actual, Forecase</p><p> Version -> original</p><p> </p><p>Thanks in advance.</p>
<p>OK so, I have this much so far (unfortunately) This is just afirst draft and it assumes that you are allocating evenly acrossone year known as start year.</p><p> </p><p>But it doesnt do anything.</p>
-
How to get the values multiple times for the specified element - ABAP IXML.
Hi all,
i have requirement to get the values for the specified elements multiple times. eg:., if the element is used in the xml 4 times then i need to get all the 4 values. here is the sample xml,
<View mmRelease="6.30" mmVersion="2.0" mmTimestamp="1180099591892" name="Comp_viewtestView" package="sap.com" masterLanguage="en">
<AbstractView.InboundPlugs>
<InboundPlug name="ip2">
<ParameterizedFeature.Parameters>
<Parameter name="ippara2">
<Parameter.Type>
<Core.ForeignReference modelName="DtDictionary" package="com.sap.dictionary" name="binary" type="DtSimpleType"/>
</Parameter.Type>
</Parameter>
</ParameterizedFeature.Parameters>
</InboundPlug>
<InboundPlug name="hi">
<ParameterizedFeature.Parameters>
<Parameter name="hipara">
<Parameter.Type>
<Core.ForeignReference modelName="DtDictionary" package="com.sap.ide.webdynpro.uielementdefinitions" name="Visibility" type="DtSimpleType"/>
</Parameter.Type>
</Parameter>
</ParameterizedFeature.Parameters>
</InboundPlug>
Here i need to store the following values in internal table, the element to get the values are,
(1) InboungPlug name and the respective values of "Parameter name" and "Parameter type" name value.
The output will be of 2 records & values should be
Inbound plug name = ip2
Parameter name = ippara2
Parameter type = binary
2nd record
Inbound plug name = hi
Parameter name = hipara
Parameter type = Visibility
These 2 records should be in internal table and then i will be passing to database table...
Can anyone provide me the code for the above......
Thanks in advance,
Vishnu.I didn't get ur requirement..
As per my understanding, upload the XML file into an internal table and then loop over the internal table and get the values for ptype and pname..
XML ABAP - may b helpfull
Edited by: Veeranji Reddy on May 7, 2009 2:10 PM -
How to implement Change pointers for Purchase order - ME22N - Custom Fields
Hi Experts,
Can you please tell me how to implement - Change Pointer for Custom fields in IDOC.
I am working on IDOC - For purchase order - acknowledgements - in custom screen/tab in ME22N.
Everything is working fine according to my requirement.
All i need to know is the process of - Creating/Change - Change pointers for Custom fields.
1.How to implement change pointers for custom fields.
2.Can we maintain - Change Document - for custom fields at data element level?
P.S. - I have browsed many previous - forums before posting a new discussion.
please share your inputs...
explaining how to create/implement - change pointers for custom fields will help me .
Regards,
Karthik Rali.Hi,
To maintain Change Document for custom field:
1. Check if "Change document" checkbox is set in data element.
2. Find Change Document Object for transaction.
You can use SQL trace - ST05.
Look there for line with table CDHDR and statement insert values
(for example for transaction KA02 Change Document Object is KSTAR)
3. Regenerate update program for this Change Document Object in transaction SCDO
Change documents for z-fields schould be generated.
I am not sure about change pointers but they are configured somehow in BD61 and BD50. -
Extending sales order change BAPI and updating custom fields
Hi
i added 3 new fields into VA01/02/03 screen.i added at the header level in the additional data tab B area and appended them in VBAK table.
i want to change these values using sales order change BAPI.i added the fields in the structure VBAKKOZ,VBAKKOZX,BAPE_VBAK,BAPE_VBAKX.
may i know what else i need to do?should i move them anywhere with in the code or does the bapi take those values automatically using EXTENSIONIN structure?
also can some one send me code to actually check if bapi is changing my values?
if poss tell me how should i populate values into BAPI.After adding field in structures VBAKKOZ,VBAKKOZX,BAPE_VBAK,BAPE_VBAKX, create pair of name-value pair extensiot structure and value.
Fill values as follows :
Data : ls_parex TYPE bapiparex,
lt_parex TYPE STANDARD TABLE OF bapiparex.
ls_parex-structure = 'BAPE_VBAK'.
ls_parex-valuepart1+0(10) = Sales order no
ls_parex-valuepart1+10(XX) = somevalue. <---- Value for custom field no 1
ls_parex-valuepart1+XX(XX) = somevalue. <---- Value for custom field no 2
APPEND ls_parex TO lt_parex .
clear ls_parex.
ls_parex-structure = 'BAPE_VBAKX'.
ls_parex-valuepart1+0(10) = Sales order no
ls_parex-valuepart1+10(1) = 'X'. <--- checkbox mark for custom field no 1
ls_parex-valuepart1+11(1) = 'X'. <--- checkbox mark for custom field no 2
APPEND ls_parex TO lt_parex.
Same pair for VBAKKOZ & VBAKKOZX
Updating custom fields
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = Sales order number
order_header_inx = 'U' <--- U for update
TABLES
extensionin = lt_parex[].
Edited by: nkarwa on Oct 25, 2010 12:39 PM -
Custom fields replication in sales order from CRM to ECC
Hi Experts,
We have added a few custom fields in CRM 7.0 (Ehp1) using AET. The BDoc BUS_TRANS_MSG has been automatically extended with these custom fields.
On ECC side also, same custom fields have been added to VBAK and VBAP, using APPEND STRUCTURE. Fields were added to ADDITIONAL DATA TAB B in VA01 / VA02 transactions.
Our issue is, when a sales order is created in CRM, it is getting replicated on ECC. But, only standard fields are getting replicated. The custom fields that we have added are remaining empty on ECC side.
In CRM --> txn SMW01, we can see that the BDOC is populated with custom fields also.
What is it that we have to do to ensure that custom fields are also replicated to ECC. Do we need to maintain field mapping between CRM and ECC, for custom fields, manually. How and where do we have to maintain the mapping. Also, please let me know the BADIs / exits that need to be implemented to achieve the above functionality
Regards,
ManoharHi Manohar
You can map these custom fields using the badi CRM_DATAEXCHG_BADI. Please see the documentation of the badi in SE18 in your system for further details.
Regards
Gavin -
Dropdown Custom Field in CATS Time Sheet in ESS
I have added a custom field in CAT2 transaction with drop down values from the custom table. When I log on to ESS I was not able to see the dropdown in timesheet for that field. I am able to configure the field to have a search help dialog box.
Let me know how can I configure the field to show dropdown values in time sheet in ESS? Appreciate your replies.
Thank you,
Rohitcheck CL_XSS_CAT_VALUE_HELP*
or
use implicit enhancement of CL_Xss_cat_value_help_general for the purpose
build_f4_help Method in the class CL_XSS_CAT_RFC_COMMAND_TOOLS.
or note 914125 on how to get different helps
The table TCATS_SHLP_ITS also can be explored -
Custom field type - get column name in code
All,
I have a custom field type. In the code, I would like to get the column name that the user input. For example, user creates a new column called "Customer" with my custom field type. How can I get the name "Customer" that the user has
just input?
Thanks.Greetings,
1) Is it possible to map datatypes? i.e.
java.util.Date to the sql timestampThe deploytool creates the mapping based on its introspection of your bean. If your bean is coded to 1.1 then it will create the mapping based on your public field types. If coded to 2.0 then it will be based on your abstract accessors (which should conform to JavaBean conventions). Also, it is better to use java.sql.Timestamp to map to SQL timestamps since most DBEs typically store such data in nanosecond precision which java.util.Date is not equipped to handle. :)
2) Is it possible to map entity bean names and cmp
fields to the exact database tables and column names?Yes. After you assemble your bean in the wizard, return to the 'Entity' tab and click on 'Deployment Settings' (the SDK deploytool exemplifies the distinction between Application Assembler and Deployer roles... ;). In the resulting dialog you can: specify the datasource for your bean ('Database Settings...'); edit the EJB QL for your finder/select methods ('Edit...') if not done so during assembly; and generate ('Generate Default SQL...') and edit the SQL for your particular resource. Letting the tool generate the ("default") SQL is not really very useful if your database schema is already created but it may help save some typing ':) To edit the SQL click on the method for which to edit and you can then edit (for it) in the 'SQL Query:' TextArea.
So far I have seen no evidence of either.I hope this helps.
Many thanks,
TimRegards,
Tony "Vee Schade" Cook
PS... I know this is only meant for development
testing but these features are fairly standard on theActually, that's the RI's secondary purpose; its primary purpose is to provide a reference for spec implementors to compare their product(s) against. ;)
main appservers out there and I wouldn't have thought
it is too difficult to implement in the reference
implementation. And, indeed, so it is implemented... -
Adding a custom field to T510W table
Hi friends
we have a requirement in which we have add ZZTRFGR Pay group to t510w table by appending structure.
Now How can we populate value to it? as the standard V_t510W does not allow to customize it .
so now in the table ZZTRFGR field is remaining blank. They have proposed 3 solutions which one would be the best?
1.SAP created an view V_T510W and created an table maintenance generator with more functionalities like "Delimit","Collapse" and TEXT for each field available in T510w ,for the extra field(ZZTRFGR) to bring we need to build separate module pool program with all features sap created,
2. via LSMW to update it
3. write a ABAP code to update via flat file?
Which one would be easier with less effort??
with regards
SonyHi ,
If you want to add new filed to standard table then there is a method called append structure. By using this method you can handle this..
For more info go through this link:[http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm] -
Custom field F4 help - selected value/index
Hi experts,
We have an F4 help for a custom field in an assignment block and the values are populated using a standard structure currency field (CRMST_PRICINGSET_BTIL-CURRENCY) in the GET_V method.
We have also defined an event handler to capture the selection of the value from F4. But in this event handler, how can we get the value /index of the row selected in the F4 help?
Since it is an F4 help and not a pop-up of type IF_BSP_WD_POPUP, we can't use the get_fired_outbound_plug( ) concept here.
Regards,
NishaHi NishaNC,
If field is already in the structure, just use a check table like field CURRENCY in structure CRMST_PRICINGSET_BTIL.
If not, please check component BT131QI_SLSQ, view Details, context node BTPRICINGSET, field NETPRICE_CURR.
Create the methods and do the same way as methods for field NETPRICE_CURR.
Of course, you need have a CURRENCY field in you structure first(same as structure CRMST_PRICINGSET_BTIL).
For your issue, I think you already have a field in the structure, so just add a check table is OK.
Regards,
Meng
Edited by: Lingxing Meng on Dec 2, 2010 3:27 PM -
LSMW : Idoc method , Business Activities custom fields data upload
Hi guys
I am uploading Business activities using LSMW IDOC method and below message and idoc type
Message type CRMXIF_ORDER_SAVE_M
Basic idoc type : CRMXIF_ORDER_SAVE_M02
Using EEWB I added few fields to business activities , along with the standard fields I want to upload the customer fields also .
I tried to Extend the Basic idoc type CRMXIF_ORDER_SAVE_M02, but it was not allowing me to Extend ( since it is generated basic idoc type ) I tried the other Basic idoc types for Business activities , I got the same problem
the basic idoc type contains only two Segments
E101CRMXIF_CUSTOMER_H_X (parent)
E101CRMXIF_CUSTOMER_H (child)
with out my custom fields
pls help how can i add my custom fields ( added by eewb) to the basic idoc type
for uploading custom fields
thanks in advance
Warm regards
RajasekharYou are going to need to create an enhancement of the standard IDOC type in order to get your custom fields to show. I can't remember the exact procedure, but you will need to create a Z-type based on the existing type in the system. When you generate the z-type the fields will be filled in.
Look at the following thread and it will give the basic steps
How to delete Extention
Good luck,
Stephen
Maybe you are looking for
-
Query for Price difference account when item is not sold but not on stock
Hi Experts! One of my clients accountant requires a report which will help for what to do with the balance of the price difference account. At the and of the year there are some postings on this account, but not every item that hadnt been on stock wh
-
Apple Animation & Major FCP Bugs. Help?!?!
I'm really getting frustrated with Final Cut Pro. I'm a long time Adobe Premiere user on the PC and recently started using a Mac workstation with FCP. It seemed intuative enough but it's been nothing but frustration on what seems to be an extremely s
-
Mac pro run very slow
-
What's the best authentication model for a PRO*C process?
We presently have a system where 5 or so PRO*C-based processes on remote nodes (HP OpenVMS) connect to a database (RH Linux) using Oracle Client and insert data. The current authentication method is for the C based program to read a connection string
-
Performancepoint custom list connection - no data
Hi, I have created a custom list in sharepoint and I want to create a dashboard from it. I have opened up dashboard designer and created a Data connection to my list. I've tested the data source and my connection is successful. When I go to the view