Code for populating the field
Hi,
can any one help me out for populating the appended field to data source.
<u><b>My requirement:</b></u> I have enhanced the data source 2lis_11_vahdr by appending the field zzmatnr in to its extract structure, Now i want to populate this field from the field available in the MARC table. so can any one help me out the whole code for this?
apart from this i have one another question that is if i append this field to the communication structure( like mcvbak, mcvbap... etc) then how we will populate this field.
and what is the exact difference between appending the field to the extract structure and appending the field to the communication structure.
Thanks
1)Just a sample code to add old material code(zzoldmatno) to the data source
'2LIS_02_S012'.
The function module is EXIT_SAPLRSAP_001.
You have write the code in the include zxrsau01.
when '2LIS_02_S012' .
data : it_s012biws like s012biws .
tables : mara .
loop at c_t_data into it_s012biws .
l_tabix = sy-tabix.
select single bismt from mara into mara-bismt where matnr =
it_s012biws-matnr.
if sy-subrc = 0.
it_s012biws-zzoldmatno = mara-bismt .
endif.
clear mara-bismt .
modify c_t_data from it_s012biws index l_tabix.
endloop.
2) Replicate the datasource.
3) Now with the above code datasource R/3 part is finished.To receive the new column at the BW end you have to add a column to your ODS or infocube as well to the communication structure(say ZOLDMAT in my case) and map the new field(ZZOLDMATNO) to the field (ZOLDMAT).
4) Activate the Transfer Rule.
Hope this helps.
Regs
Gopi.
Similar Messages
-
T code for editing the field in Sales Order
Dear All,
I want to change some field in sales order (display to editable)...
Please suggest me..........
Regards
Lallan....Dear,
I hope it will reach your req:
Same post.....
Sales Order editing fields
Sap help.
http://help.sap.com/saphelp_47x200/helpdata/en/7d/f63a0d015111d396480000e82de14a/frameset.htm
How to do this process with screen shots..
http://www.mortenhjorthnielsen.dk/Security/transactionvariants.htm
Regards
Chandra -
Code for reading particular fields from the file placed in application
hi,
code for reading particular fields from the file placed in application server in to the internal table.Hi,
Use the GUI_UPLOAD FM to upload the File into ur Internal Table.
DATA : FILE_TABLE TYPE FILE_TABLE OCCURS 0,
fwa TYPE FILE_TABLE,
FILENAME TYPE STRING,
RC TYPE I.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE = 'Open File'
DEFAULT_EXTENSION =
DEFAULT_FILENAME =
FILE_FILTER =
INITIAL_DIRECTORY =
MULTISELECTION =
WITH_ENCODING =
CHANGING
FILE_TABLE = FILE_TABLE
RC = RC
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE FILE_TABLE INDEX 1 into fwa.
FILENAME = fwa-FILENAME.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
FILETYPE = 'DAT'
IMPORTING
FILELENGTH =
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
OTHERS = 6 .
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Balakumar.G
Reward Points if helpful. -
Need Code for FM for extracting the fields in view!
Hi,
can any one here pls give me the sample code for the function module, extracting all the fields in view ?
Thanks,
RaviNo No,
I need to append two more fields other than the fields existing in View.and for that i need to create FM as per the requirement. they do not want view in the data source definition any more.
now i want a sample code for Building the FM code
Hope i am clear this time
Thanks,
Ravi -
BADI / USER-EXIT FOR DEFAULTING THE FIELD VTTK-TNDR_ACTC IN TCODE VT01N
Hi,
I require a BADI / USER-EXIT for defaulting the field VTTK-TNDR_ACTC(Currency of Actual Shipment costs) to 'EUR' in transaction VT01N(Shipment Transaction) .
Please could anyone help me with this .
Regards,
Sushanth H.S.Hi!
User Exits in Transportation
In Transportation, there are enhancements that you can use with transaction CMOD.
For a detailed description of the individual enhancements, see the documentation on the individual enhancements or function modules in transaction SMOD.
You can display all enhancements that are available for the area of transportation by choosing F4 in the Enhancement field. Enter V56* in the Enhancement field and choose Execute. Enter V54* to get a list of all enhancements for the area of shipment cost processing.
Business Add-Ins in the transports
Business add-ins (BADIs) are predefined user exits. They enable businesses, partners, and customers to add additional softward to the SAP source code. The linkup of SAP's New Dimension Products, such as APO and BW, to the standard system is thus possible.
Customer-specific functions can be executed before the save time and after the database update.
The following methods are available for the BADI with the definition name 'BADI_LE_SHIPMENT':
AT_SAVE: BADI is called up at the time of the save. Checks and return to dialog are possible.
BEFORE:_UPDATE: BADI is called up right before the data is saved to the database, that is, when all the data is available (for example, internal ly assigned shipment number).
IN_UPDATE: BADI is called up after the database update.
Standard Settings
Creating a BADI method:
Call up transaction SE19. Enter a name of your choice. Choose "create" and in the dialog box enter the definition name 'BADI_LE_SHIPMENT'. Afterwards, enter a short text for implementation. Save the BADI.
On the tab page 'Interface', choose the method for implementation by double-clicking on it. Now you can enter your customer-specific program code. Save and activate the code. You can acess the transmission parameters entered in the BADI definition. With the method ***_AT_SAVE you can initiate the exception ERROR_WITH_MESSAGE (description 'An error message has occurred' ) if you wish to return to the dialog.
Afterwards, go to the heading and activate the interface.
Regards
Tamá -
MIGO t code for Material Slip field , i want to add F4 values
Hai in MIGO t code for Material Slip field , i want to add F4 values, cna u give me details procedure.
thanks in advanceCreate a search help via SE11. The help documents should walk you through the process. When you get to a point where you need more information - post another question.
I haven't added a search help for the material slip field, but someone else might have. -
UDF for Checking the field value
Hi
I want to check the whether the fiels conatins any value or not in mapping ... if not i want to raise the exception using the UDF
DO any one have sample code for writing the UDF
SVHi SV
what is your requirement first that should br clear.
i am giving you two UDF
1) i have written this uDF for string and comparing the field value XYZ
2) i am entering a string and its returning aa string which starts from the index of your input fixed length
int len = a.length();
String res = "";
String temp = "";
if ( len >= 10)
temp = a.substring(0,10);
if ( temp.equals("XYZ"))
res = temp;
else
res = "";
return res;
=======================================
String fixed = "ABCD";
String res = "";
int index = -1;
index = a.indexOf(fixed);
if (index == -1)
res = "NO INDEX FOUND";// or if u wanna set it as null res = "";
else
res = b.substring(index4,index12);
return res;
===
hope these may solve your problem
Thanks
Sandeep sharma
If helpful reward points -
How to auto populating the field in MS crm
How to auto populating the field in MS crm
Hi,
To populate URL of account based on account name please refer this link.
If you are asking about the address auto populate/complete refer this link
To Retrieve from other entity and populate the fields, for example on entering the account name in opportunity form the fields from account form like Sector, Region can be retrieved and can be auto populated in opportunity form using Odata as follows.
Call the function getAccountDetails in onchange event of Companyname. Do not forget to add Jquery and Json in libraries.
function getAccountDetails() {
var companyName = Xrm.Page.getAttribute("customerid").getValue();
if ((companyName != null)) {
var companyNameValue = companyName[0].name;
var companyNameID = companyName[0].id;
var serverUrl = Xrm.Page.context.getServerUrl();
//The XRM OData end-point
var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
var odataSetName = "AccountSet";
var odataSelect = serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "(guid'" + companyNameID + "')";
//alert(odataSelect);
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
datatype: "json",
url: odataSelect,
beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Accept", "application/json"); },
success: function (data, textStatus, XmlHttpRequest) {
var result_account = data.d;
var name;
var Id;
var entityType;
//replace the fields with the fields on your entity
Xrm.Page.getAttribute("new_sector").setValue(result_account.new_Sector.Value);
Xrm.Page.getAttribute("new_region").setValue(result_account.new_Region.Value);
error: function (XmlHttpRequest, textStatus, errorThrown) { alert('OData Select Failed: ' + odataSelect); }
Also as another option if you donot wat the java script then you can go for a workflow to poplate, please refer this link: https://www.powerobjects.com/blog/2013/11/25/retrieving-data-from-a-related-entity-crm-2013/
Regards, Rekha.J -
T.code for check the Total SRS
pls tell me t.code for match the SRS (stock requitions slip)from store or production ?
Thanks
Rekha SharmaU can check in MB25 or in MB51.
-
Wanted to update the software now available, but it is asking for a pass code. As far as I remember in didn't put in any pass code , how do I settle this issue . Earlier updates were asking Apple ID but pass code for updating the new soft ware not known.
Hello Kewal,
Thank you for the details of the issue you are experiencing when trying to perform an update. I recommend trying to update using iTunes, and as always, it is a good idea to make a backup first.
iOS: Back up and restore your iOS device with iCloud or iTunes
http://support.apple.com/kb/ht1766
Update your iPhone, iPad, or iPod touch
http://support.apple.com/kb/ht4623
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Transaction code for checking the capacity of a job
Hi,
Can anybody tell me if there is a transaction code for viewing the capacity of Job.
Thanks and regards,
Avinash.SHi Avinash,
I am not geeting what you want normally CM01 for w/c vise Load you can use.
Pls elaborate yr problem a little bit.
Umesh -
How can we write the code for opening the command prompt and closing the
how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)
rakeshsikha wrote:
how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)? -
T-Code for changing the default Exchange Rate reference for creating PO?
Dear All,
Can somebody kindly give me the T-Code for changing the default
Exchange Rate reference for creating PO? Is there a Step by Step
procedure before changing the default exchange rate?
Thank you in advance.
Regards,
GopeshHi
There is not such Tcode to change the default exchange rate from the PO.
If you want you can confugure the exchange rate in the following path in the IMG,
SPRO>MM>LIV>Incoming Invoice>Configure How Exchange Rate Differences Are Treated
Hope it helps you.
Cheers
Umakanth -
T.Code for checking the total value of a material
Hi Experts,
Can anybody tel me the T.code for checking the total value of a material which is procured in a specified period?
Thanks in advance
ChannaRefer Tcode ME80FN click on Change Veiw & select Purchase Order History with this you can get PO-GRN-INVOICE Qty & Value details
Last button on Application tool Bar it is in line of filter, total etc icons
Also check below reports :
MC$G - PURCHIS: Material PurchVal Selection
MC$0 - PURCHIS: PurchGrp PurchVal Selection
MC$< - PURCHIS: MatGrp PurchVal Selection
MC$4 - PURCHIS: Vendor PurchVal Selection -
What is the transaction code for see the Web Services available in SAP
Hi
I came to know that SAP has provided its own webservices... I need some information on that... If any one has documentation on that can u please send it to me... My ID is <b>[email protected]</b>.
What is the trasaction code for see the web services available in SAP.... Can any one help.. Please its urgent
Best Regards
Ravi Shankar B
Message was edited by:
RaviShankar BHi,
you can find Web Services (Enterprise Services) in the Enterprise Services Workplace (ES Workplace). The ES Workplace allows you to explore, test, and use enterprise services to make enterprise SOA tangible. Here, you will find all of the currently productized enterprise services by SAP.
Best Regards,
Boris Mueller
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/esa/esapreview">ES Workplace at SDN</a>
<a href="http://esapreview.sap.com:82/socoview(bD1kZSZjPTgwMCZkPW1pbg==)/flddisplay.asp">ES Workplace</a>
Maybe you are looking for
-
Credit block order which is release once
hi gurus My requirement is ____ my Clint release order form credit block and give a credit note.But again they want to block that order for credit. Means they create order,delivery,billing and release the order from credit block.But now they again w
-
Payment reversal with a closed payment lot
Hi to all, We want to reverse a payment that was done in the wrong company code. Usually we can reverse payment documents using FP08. But this mistake was noticed today (monday) but the payment was done last friday. How can we reverse this document?
-
Can I sync an iPhone 3GS with an ipad 2?
How do I sync an iphone 3GS with an iPad 2?
-
SMD agent communication channel
Hi All, I am configuring SMD for our landscape. I have successfully installed Wily Introscope Enterprise Manager 7.2 on our solution manager system. from what i understand i need to install SMD agent in satellite system to connect to SMD server in So
-
I am trying to Download ID (free trial)...
I am trying to Download ID (free trial). When I click on "download" my PhotoShop program opens and nothing happens. Can anyone give me advice on how to download the InDesign free trial?