C-Code based on a VI

Hi,
I"m new in LabView and I have a general Question.
Can I design a VI and generate C-Code based on this VI?
My aim is to generate C-Code and implement it on a MicroControler.
Which NI Tools do I have to use?
LabView / LabWindows / LabView Embedded Module?
Thanks a lot,
Thomas

Sure you can generate C code based on a VI....
Just not automatically...
LabVIEW code is compiled code. You can't translate it into C automatically. You will need to rewrite the code yourself in C.
Of course, the question to ask is: why do you need to generate C code from the LabVIEW code? If it works in LabVIEW, what's to gain?

Similar Messages

  • Creation of Ship tp party code based on Address in BAPI_SALESORDER_CREATEFR

    Hi Experts,
    Scenario is read external file as input to create SO in ECC .
    I am using the BAPI_SALESORDER_CREATEFROMDAT2 for creating sales order. In VA01, Ship to party and sold to party needs to be passed  in header level . But the problem is that I am unable to send the Ship to party Code , but i can send only the address of ship to party .
    1. How can get the  Ship to party code based on the address ?
    2. Which BAPI filed to update the Ship to party address ?
    Kindly help me out.
    Thanks.,
    V.Rangarajan

    Hi Vijay
    I think if you mean Address as ADRNR, then what you can do is
    1. Go to KNA1 and from ADRNR no get the Ship-to-party number.
    2. When you get the Number Call your mentioned bapi and in Tables parameter 'ORDER_PARTNERS'  pass the values of ship-to-party and sold-to-party in field 'PARTN_NUMB', update the field PARTN_ROLE with assigned Partner Function.

  • UDF For Retrieving the Tax Code based on PO

    Hi all,
    Mine is a file to Idoc scenario.
    I wrote a FM to retrieve the Tax Code based on PO .
    Created the udf which directly gets the Taxcode from the r/3 with out importing in to the imported objects,is this correct i never tried this before.
    Find the UDF for the Same.
    final String    CHANNEL_NAME = "GeneratedReceiverChannel_RFC",
         VALNOTFOUND = "VALUE_NOT_FOUND",
         SAPRFCNS = "urn:sap-com:document:sap:rfc:functions",
         TAG_FM = "Z_P_INT012_RFC_LOOKUP",
         TAG_TAX_CODE = "T_TAX_CODE",
         TAG_TAX_CODE_P = "TAX_CODE";
    AbstractTrace trace = container.getTrace();
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = null;
              factory.setNamespaceAware(false);
              factory.setValidating(false);
              try {
                   builder = factory.newDocumentBuilder();
              } catch (Exception e) {
                   trace.addWarning("Error creating DocumentBuilder - " + e.getMessage());
              Document docReq = null;
              try {
                   // Building up RFC Request Document
                   docReq = builder.newDocument();
                   Node root = docReq.appendChild(docReq.createElementNS(SAPRFCNS, TAG_FM));
                   Node nodeTbOpt = root.appendChild(docReq.createElement(TAG_TAX_CODE));
                   for (int i = 0; i < pernr.length; i++) {
                        Node nodeTbOptItem = nodeTbOpt.appendChild(docReq.createElement("item"));
                        nodeTbOptItem.appendChild(docReq.createElement(TAG_TAX_CODE_P)).appendChild(docReq.createTextNode(TAX_CODE<i>));
              } catch (Exception e) {
                   trace.addWarning("Error while building RFC Request  - " + e);
              trace.addInfo("RFC Request XML: " + docReq.toString());
                                                    //trace.addWarning("RFC Request XML: " + docReq.toString());
              // Lookup
              Payload load = null;
              try {
                   Channel channel = LookupService.getChannel(receiver[0], CHANNEL_NAME);
                   RfcAccessor accessor = LookupService.getRfcAccessor(channel);
                   InputStream is = new ByteArrayInputStream(docReq.toString().getBytes());
                   XmlPayload payload = LookupService.getXmlPayload(is);
                   load = accessor.call(payload);
              } catch (LookupException e) {
                   trace.addWarning("Error during lookup - " + e);
              // Parsing RFC Response Document
              Document docRsp = null;
              try {
                   docRsp = builder.parse(load.getContent());
              } catch (Exception e) {
                   trace.addWarning("Error when parsing RFC Response - " + e.getMessage());
              trace.addInfo("RFC Response XML: " + docRsp.toString());
                                                    //trace.addWarning("RFC Response XML: " + docRsp.toString());
              try {
                   NodeList res = docRsp.getElementsByTagName("item");
                   for(int i=0;i<res.getLength();i++){
                        NodeList itemNodes = res.item(i).getChildNodes();
                        Map itemMap = new HashMap();
                        for(int j=0;j<itemNodes.getLength();j++){
                             itemMap.put(itemNodes.item(j).getNodeName(), itemNodes.item(j).getFirstChild().getNodeValue());
                        rows.add(itemMap);
                                                            catch (Exception e) {
                   trace.addWarning("Result value not found in DOM - " + e);
                   result.addValue("true");
    Error:
    16:24:08 Start of test
    Source code has syntax error:  /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors  Source code has syntax error:  /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors
    16:24:11 End of test.

    Hi Potharaju,
    Why don't you try this, that really works:
    If you are using PI 7.1:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/frameset.htm
    If you are using XI 3.0, PI 7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    Try with these.
    Regards,
    Juan

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • Change company code based on profit center at line item level in FB50

    Hi All,
    Following is my requirement, would be thankful if anyone can provide inputs on the same.
    When posting documents through FB50, In line item table control company code column gets un-editable ones correct entries are entered for that line. But after this if we want to change the profit center which belongs to different company code system throws error and makes company code column un-editable. In this situation there is no option left for user to correct the values unless he deletes the current line and creates a new one.
    Here can we make the company code field always editable?
    If not can we update the company code based on the profit center entered on that line item?
    I looked for exits but couldn't find any, validation and substitution are also not working because error message thrown by SAP is getting triggered before the substitution or validation code is executed.
    Please drop in your comments/inputs.
    Thanks in advance.
    Lucky.

    Transaction Code - FB50                     G/L Acct Pstg: Single Screen Trans.
    Exit Name           Description
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    No of Exits:         14
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • T-code based iviews in HTML format

    Hi,
    Please do let me know how to dispaly the t-code based iviews in HTML format through portal.Actually we need to dispaly some ABAP reports through portal in SRM.Should the reports be first converted to HTML format.
    Also,we need to create the PO field as hyperlink which should take the supplier to a particulatr PO as and when he clicks on it.Can this(hyperlink)  be done in portal.
    Thanks in Advance,
    Manu

    Hi Manu,
    In order to display the iviews in HTML format you need to enable the ITS services from your SAP System first of all.
    You can do so by following these steps:
    Step 1.
    1.Configure the Rz10 profile parameters for the host name and the port no.
    2.Check that parameters appearing in the SE80 settings and ITS Server settings.
    After activating ITS Services these steps more needs to be done to make them usable.
    1. Go to SE80-Edit ITS Service SYSTEM-> Publish it completely.
    2. Go to SE80-Edit ITS Service SHUFFLER-> Publish it completely.
    3. Go to SE80-Edit ITS Service WEBGUI-> Publish it completely.
    4. Go to SE38-Run the Program W3_PUBLISH_SERVICES and publish all the webservices.
    From transaction SICF now you need to enable the services.
    1.Go to sap/bc/gui activate the complete node.
    2.Go to sap/bc/icf activate the complete node.
    3.Go to sap/bc/ping activate the complete node.
    4.Go to sap/public/bc activate the complete node.
    Now give the ITS parameters in the system you created and create a SAP Transaction Iview. inside its property editor choose the option SAPGUI for HTML.
    Hope I am able to answer your question.
    Regards,
    Atul Shrivastava
    PS:Award points for helpful answer.

  • T.Code based on Language

    HI all
         my requirement  is
               I have to create a t.code based on language, I mean when ever a user logged in with language EN i have to change the t.code appearance.
    Please shoot back your suggestions
    Thanks
    Srikanth.n

    Hi Arman,
    Time to raise such concerns with SAP support .
    There is many ways, indirect one to do so, for eg, when a user locks, and hits a code ZMB5B not MB5B which should be locked or not be assigned to users, then the code check the permit time table and user list. This code will we for a new screen(eg screen Zee), which will then permit to displays MB5B program to the user if he passes Zee screen.
    Regards,

  • Switch to "Source Code-Based" mode in class builder

    hi,
    while doing the tutorial
    http://help.sap.com/saphelp_nwpi71/helpdata/en/67/6b5bbb681e4f10b44bc2d6c4167b02/content.htm
    i came across the step,
    ... Switch to Source Code-Based mode , in the class builder,
    but in my workbench it is not available.
    i searched on sdn, and saw the link
    [Settings of the Class Builder|http://help.sap.com/saphelp_nwpi71/helpdata/en/67/6b5bbb681e4f10b44bc2d6c4167b02/content.htm]
    it shows there must be an option for
    Source Code-Based Class Builder  -  If you choose this option, the system opens the Source Code-Based Class Builder by default.
    but in my system, i can see all other options in the Utilities->Settings-Classbuider page, except the option of Source Code-Based Class Builder
    could this be related to my permissions or our version of sap system.
    madhu_1980

    [ABAP documentation indicates it is available as of 7.0 ehp 2|http://help.sap.com/abapdocu_70/en/ABENNEWS-710-TOOLS.htm#!ABAP_MODIFICATION_2@2@]

  • Transport  of code based security

    Hello,
    we have WAS 6.40 and we have a lot of differents views in the key storage services, and also a lot of entries in everyone. We granted the domains to every different view and entry, so we have a lot of rules of code based security with differents domains-views-entries.
    The problem is that we want to transport that configuration of code security of the WAS 6.40 from our development enviroment to production enviroment and we don't want to recreate by hand all the code based security, because is a lot of work. Anybody knows how to transport the assigned code domains of every view to the production system? When we save the view, the code domains isn't saved in the file.
    Thanks a lot,
    Daniel Sutil

    Yes, your main security is based on Enterprise groups. This way if something changes on SAP end, group disapears etc.. Your BO security is intact.
    As sub members of Enterprise group SAP group/role will inherit all the parent security.
    On deleting the groups, I think you have to unmap them from SAP page in Authentication.....  Haven't played with that part much, sorry.

  • How to find the list of  transaction code based on a  field ?

    Hi  Gurus
    I have a unique requirement.We are adding a  new field into our system and want to know which all t-code  contains that field ?  So that we can update the  user training manual. Can some one tell me the ways and means of  finding the list of all the t-code ( or where used e.g functional area ) based on  " a field" ?
    Thanks in advance
    SN

    Hi,
    1. Tcode KS02.
    2. click on the text "Cost Center"
    3. hit F1
    4. Click on the technical information
    5. in the next screen double click on Field name :KOSTL
    6. Select the row for the component KOSTL
    7. Click on the display list
    8. In the next screen, in the object name:KBAS
    Drilldown to transactions.
    Here you get a complete list of the transactions.
    Hope its useful.
    thanks.

  • Project code based  Sales Order and Purchase Order - Item wise Report

    Dear all,
    Scenario:
    We are doing business based on Projects.  So, for every Sales , Project code is created and Sales order is booked with Project code and subsequently Purchase Order is booked with Project code. (Note:Some cases, few items might not be purchased since stock is available.)
    We want report like
    SO Project code
    SO Posting date
    SO Sales Employee
    SO Customer Name
    SO Item code
    SO Quantity
    SO Unit price
    SO Row Total
    PO Project code
    PO Posting date
    PO Sales Employee
    PO Customer Name
    PO Item code
    PO Quantity
    PO Unit price
    PO Row Total
    *SO line item and PO line item for same project should be parallel , that is important and challenge (certain cases, item in SO might not be in PO, for such cases Blank field should appear for PO Item code.)
    Thanks in advance,
    Regards,
    Dwarak.

    Hi Dwarak.......
    Your Report is right but a small change you have to make Left join RDR1 with POR1........
    Try this.......
    SELECT T0.PrjCode, T1.Project, T0.PrjName, T1.DocNum, T1.DocDate, T1.CardName, T2.ItemCode, T2.Dscription, T2.Quantity, T2.Price, T2.LineTotal, T3.Project, T4.ItemCode, T4.Dscription, T4.Quantity, T4.Price, T4.LineTotal FROM OPRJ T0 INNER JOIN ORDR T1 ON T0.PrjCode = T1.Project INNER JOIN RDR1 T2 ON T1.DocEntry = T2.DocEntry LEFT JOIN OPOR T3 ON T0.PrjCode = T3.Project LEFT OUTER JOIN POR1 T4 ON T3.DocEntry = T4.DocEntry AND T2.ITEMCODE = T4.ITEMCODE INNER JOIN OITM T5 ON T2.ItemCode = T5.ItemCode WHERE T0.PrjCode ='[%0]' AND
    T5.ItmsGrpCod in ('108', '110') GROUP BY T0.PrjCode, T1.Project, T0.PrjName, T1.DocNum, T1.DocDate, T1.CardName, T2.ItemCode, T2.Dscription, T2.Quantity, T2.Price, T2.LineTotal, T3.Project, T4.ItemCode, T4.Dscription, T4.Quantity, T4.Price, T4.LineTotal
    Regards,
    Rahul

  • Restricting few FI T-codes based on company code

    I was able to restrict some FI transactions based on the Company code by giving relevant values for Organization levels.  However I could not restrict the following three T-codes:
    FBV3                       Display
    F.81                       Reverse Accrual/Deferral Document
    S_ALR_87012342     Gaps in Document Number Assignment
    Pls suggest.

    Vamsi,
    I think you do not want to allow to see the some FI user these Tcodes data for specific companies.
    I think you have assigned more then one role to user and mentined 3 Tcodes are coming from multiple roles and the user buffer is having multiple entry for the . If this is the case please keep these Tcodes in one role only and restrict the user only in F_BKPF_BUK BUKRS.
    If only one role is assigned to you then assigned the required company codes at Orgranisation Level only and it will populated at Authorisation Object F_BKPF_BUK BUKRS for company codes.
    I would advise you not to modify the SAP standard object in SU24 because it can distrub the Standard Auth. Object.
    Hope this will help.
    Lokendra

  • Accounting for code based  consumable material in SAP

    Hi Experts,
    Just a scenario I want to discuss with You all:
    Earlier were using  non-stock items (no material code,only text to procure materials) and projects were consuming it. Now, we are going to use material codes to procure non-stock items which now have master code for it now the requirement for this process is as below.
    At the time of GRN system pick project G/L(Profit and loss account G/L ) with account assignment S (or Q ) and respective WBS
    While transferring  the left over project qty to another project ,accounting document is to be created .
    Warehouse want to track to moved  quantity as well  from project to project and to own stock .
    considering these requirement  i m working on two logic.
    Logic 1 .
    I configured the material as value based material  so that while doing GRN  project WBS  is debiting
    and after consumption  of partial material quantity,  I am transferring the remaining cost of project to another project by  t-code KB61N or KB11N  where cost is moving from project to project .
    now to show quantity movement  i am developing one report which can show the quantity based on moved Price lets  say if unit prince is 10 and 200 cost is transferring from project to project  means 20 qty is moving  in customized report .
    Logic 2
    With the help of BADI or some development a virtual storage location  will be created on MIGO screen 
    and material will be fetched in this virtual storage location while doing GRN as a referance purpose
    and the same location to be used during transferring material from project to project
    let me know how far this logic and requirement is correct to code the consumable material and it  is  going to be  codified for reporting purpose .
    your earliest response will be appreciable .
    Thanks in advance .

    Hi Jurgan  ,
    scenario is like ,
    earlier for these material , material record was not existing
    but now business  want to create material  master for such consumable material for tracking purpose
    and these codified material is to procured under WBC and profit and loss account G/L not inventory G/L (balance sheet G/l )
    and to pick profit loss G/L  i made material as valuate material only  so that can populate accounting document while transferring value from project to project via  KB61N or KB11N
    now what value is transferring from project to project that will be picked in terms of quantity (unit value conversion to quantity )  in customized report
    hope scenario is clear now ..let me know if any query you have  to give your valuable inputs
    Thanks

  • Java code based on a javascript variable

    Hi,
    Based on click of a either linkA or linkB I set a javscript variable (say vA or vB).
    After this I reload the browser.
    My page on the browser in a jsp which gets texts from a properties file (say prop.properties).
    But now based on vA or vB I wish to load vAprop.properties or vBprop.properties.
    I know I cannot access javascript variables in Java code. Please let me know a work around for this.
    I need it very badly.
    Thanks in advance.

    Have your javaScript open the link with a parameter
    yourFile.jsp?param=A
    yourFile.jsp?param=B
    in your JSP do a
    request.getParameter("param");
    You can also use javaScript to post the values if you dont want them to appear in the URL.

Maybe you are looking for