How to use Nast in program

Hello,
        I want to use the attribute OBJKY in NAST.But how do I use the structure NAST in my prgoram.

Hi shah,
Declare tables : nast.
Then data declaration for nast fields.
use p_vbeln in your select statement.
Then,
FORM populate_nast.
  CLEAR: nast-uhrvr ,
         nast-cmfpnr,
         nast-datvr .
  nast-mandt = '320'.
  nast-kappl = 'V3'.
  nast-kschl = 'ZSMT'.
  nast-objky =  p_vbeln.
  nast-ldest = 'LOCL'.
  nast-anzal =  1.
  nast-nacha = '1'.
  nast-vsztp = '4'.
  nast-spras = 'E'.
  nast-vstat = '0'.
  nast-manue = 'X'.
  nast-dimme = ' '.
  nast-erdat = sy-datum.
  nast-eruhr = sy-uzeit.
  nast-usnam = sy-uname.
  nast-tdreceiver = sy-uname.
  CONCATENATE sy-uzeit+2(4) 'PDF' INTO nast-dsnam.
endform.
Revert back if you need any help.
Re,Manas

Similar Messages

  • How to use standard report program [RPR_ABAP_SOURCE_SCAN]

    hi all,
    how to use RPR_ABAP_SOURCE_SCAN report program for checking my program. when i run it its asking me the report name and i gav it but, its showing me the error message as  'ENTER SEARCH STRING' .
    SO I NEED TO KNOW WHERE I DID WRONG.
    thanks in advance,
    suresh babu aluri.

    hi suresh,
    i hav tried that, its working
    enter like this,
    <b>program name : zpy_text</b>
    under search criteria.
    <b>Find string : select</b> 
    "******enter any string that is in that program, usually select will be there, then execute.
    With Regards,
    S.Barani

  • I am a professional photographer of many years standing and at the moment I have a student for 12 months, who I am teaching how to use various Adobe programs, but to introduce her to video editing, I have purchased Adobe Premier Elements 13 which is less

    I am a professional photographer of many years standing and at the moment I have a student for 12 months, who I am teaching how to use various Adobe programs, but to introduce her to video editing, I have purchased Adobe Premier Elements 13 which is less complicated than the Premier Pro that I use. The program works perfectly, except for one thing.... when adding a title to the short video sequence we are working with, if I use a particular font (Metallophile Sp8) which I obtained from my Adobe Typekit, it crashes the program,.... all other fonts work perfectly....can anybody help me please?

    clivephoto
    What computer operating system is your Premiere Elements 13 running on? And what video card/graphics card does this computer use?
    From your description, can I assume that this Mettallophile Sp8 font is being recognized by Premiere Elements 13 to the extent
    that it can be seen and remains seen in Titler's list of font choices - even after the crashes?
    If you opened a new project, imported nothing, and created a text title in the Titler with this Mettallophile Sp8 font, does the program crash?
    Please review the following which discuss fonts and Premiere Elements and determine if anything in it helps.
    Fonts & Crashes with Titler
    Let us start here and then decide what next.
    ATR

  • How to use another java program to stop this running prpgram???

    Dear Sir:
    I have following code and I run it success,
    import java.util.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.*;
    public class CertainAndRepeatTime{
      public static void main(String[] args) throws IOException{
        int delay = 1;
        Timer timer = new Timer();
        ActionListener actionListener = new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
              System.out.println("Hello World Timer");
        System.out.println("What do you want (Certain time or Repeat time)?");
        System.out.print("Please enter \'C\' or \'R\' for that: ");
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String ans = in.readLine();
        System.out.print("Please enter  ans=" + ans  + " IsTrue=  " + (ans.equals("R") || ans.equals("r")) +"\n");
        if (ans.equals("C") || ans.equals("c")){
          //System.out.println("This line is printed only once start...");
          timer.schedule(new TimerTask(){
            public void run(){
              System.out.println("This line is printed only once.");
          },delay,1);
        else if(ans.equals("r") || ans.equals("R")){
            timer.scheduleAtFixedRate(new TimerTask(){
              public void run(){
                System.out.println("This line is printed repeatedly.");
            },delay, 1000);
          while(true){
               //System.out.println("Charles print This line is printed repeatedly.");          
          } //This will make your main thread hang.
        else{
          System.out.println("Invalid Entry.");
          System.exit(0);
        System.exit(0);
    }But I hope to use another java program to stop it when it is running instead of pressing CRTL + C to stop it.
    How to do it??
    Any example??
    Thanks a lot!!

    Sorry, I think i did not express cearly. It is my fault.
    I re-write my requirements again:
    I have
    Class AAA1.java,
    Class AAA2.java,
    Class AAA3.java,
    Class AAA20.java...
    etc
    they all look like the program I posted first time,, once executed, they will run for ever, and they will be stopped until I press CRTL + C;
    Now I hope to use another java class StopProgram.java to stop them 1 by 1 or at once instead of pressing CRTL + C;
    In this case, how to code this StopProgram.java ??
    Thanks

  • What is access sequence tables and how to use them in program?

    hi all, I know a little about SD and access sequence tables, but I get a requriment like this:
    condition type is a paramater
    The condition types allowed in this report are: Note: A list of pre-defined condition types with their corresponding access sequence tables will be defined.
    How can I make it? How can I use it in program to get the price?

    Hi,
    An access sequence is a search strategy with the aid of which the SAP
    System searches for valid condition records of a certain condition type.
    For example, you can stipulate for a price that the SAP System first
    searches for a price for a specific plant, and then for a generally
    applicable price.
    For condition types for which you wish to maintain conditions with their
    own validity period, you must assign an access sequence. With this, you
    define which fields the SAP System checks in searching for a valid
    condition record.
    e.g. When you create condition record (e.g. Purchasing condition record) you enter condition type, system asks you the key combination to enter the entries. These key combinations are nothing but the access sequence. On the basis of combination of condition table it will search record. e.g. when u maintain condition record with acc seq Material/plant combination, it will transfer the same record in PO when u enter same material and plant in the PO.
    Example:
    An access sequence has been assigned to condition type PB00 so that
    prices can be maintained in purchasing info records and contracts.
    No access sequence has been assigned to condition type RC00 because it
    does not have a validity period of its own. In the standard system, it is
    always maintained simultaneously with the price and is valid for the
    period of the price.
    For more help
    http://www.sap-img.com/materials/steps-for-mm-pricing-procedures.htm
    Regards,
    Raj.

  • How to use BAPI in program

    Hi
    i have some data in the Legacy file and i have to update in SAP. For that I have to use BAPI, which is ME_DIRECT_INPUT_SOURCE_LIST  in the program not in LSMW.
    so i have to  use
    Function ME_INITIALIZE_SOURCE_LIST to initialize the structures and tables
    Function ME_DIRECT_INPUT_SOURCE_LIST to enter the data (see data mapping below)
    Function ME_POST_SOURCE_LIST_NEW to save the source list.
    But i don't know how to use this in the program.
    Please help me to solve this problem.

    Please check this FM - IDOC_INPUT_SRCLST, atleast you will one rough idea about mentioned FM's

  • How to use a Matlab Program within Labview

    Hi
    I saw in this forum that many users are using some matlab program
    executed in Labview program. I have actually Labview 7.1 and would like
    to use some of my matlab program in Labview. Is there an easy way to do
    it ?
    Thanks
    Thomas

    The MATLAB Script function is kinda buried in the function palette, and
    can be found under Functions >> Analyze >> Mathematics
    >> Formula.  Unfortunately this feature is not available in
    the LabVIEW Base package.  Hope this helps!
    Andy F.
    National Instruments

  • How to use NAST entry inside a printing program.

    Hi,
         I am writing a program to print an invoice using smartform.
    I am refering NAST-OBJKY to get the invoice No.
    My program throwing syntax error that NAST-OBJKY is unknown.
    But if I copy a standard printing program, and use it different name, there is no error.
    Thank U for Ur time.
    Cheers,
    Sam

    hi
    u r using the correct on but first movethe value to another varable like
    VBRK-VBELN
    USE THIS INCLUDE IN U R PROGRAM <b>RVADTABL</b>
    SAM the reason for u r problem is NAST is not declared in u r program... but in the sandard program they have declared it in the include RVADTABL
    Message was edited by:
            Naresh Reddy

  • Two users on same computer how to use the same program and data

    Two users on one computer how to share a program and it's data

    As Kappy said, each of you should have your own account. By default all programs are installed in the Applications folder so all users on the computer will be able to use the software. With a few restrictions data you want to share between two users can be placed inside the Shared folder - look inside the Users folder for it. Data that gets placed in the Shared folder will retain the owner/creator's rights so if you want other user(s) to be able to do more than open the document you'll need to change the permissions of the file to include that user.

  • How to use SUBROUTINE in ' PROGRAMMING LINES'code of a smartform

    Hi all,
    i used a subroutine (PERFORM statement ) in 'Programming Line' node of a smartform .
    Then i put the 'FORM ENDFORM ' in 'SUBROUTINES' node of GLOBAL data.
    In Programming line i used
       PERFORM READ_TEXT using p_id p_lan p_obj.
    In SUBROUTINE node of GLOBAL data, i used
    FORM READ_TEXT using p_id p_lan p_obj.
    ENDFORM.
    While executing, my control is going to FORM ENDFORM  & i can see the data in the
    table T_TDLINE while my control is inside the FORM ENDFORM.
    When it comes back to my Programming NODE, there is no data in T_TDLINE table.
    can anyone tell me how & where to define this table T_TDLINE so that i can get the data
    in in my coding lines after PERFORM statement.
    ur Idea is highly appreciated. correct answers will be rewarded.
    Thanks
    pabitra

    1. Define a table in the Global Definiation > GLOBAL data:
    T_TDLINE TYPE TTTEXT.
    2. PERFORM READ_TEXT tables T_TDLINE using p_id p_lan p_obj.
    3. FORM READ_TEXT table IT_TDLINE type TTTEXT
    using p_id p_lan p_obj.
    ENDFORM.
    Now, you will be able access your data in T_TDLINE.
    Regards,
    Naimesh Patel

  • How to use module pool program in my custom report?

    Hi,
    I am developing a custom report in abap. I want to fetch data from a standard module pool program.I want output of this standard module pool program to be used in my standad report.Submit cannot be used with module pool programs. How can i do this?Can u please suggest?

    HI friend,
    For this you can directly use the table fields i.e. each and every module pool screen fields will be having the table name along with its fields (which you can see by double clicking the field and selecting technical settings button) and since it is a standard module pool program that will get populated directly. So you can get the screen field values directly from the table. I think this will help. Please try and let us know wheather it is solved.
    Thanks and regards,
    Sri Hari Anand Kumar
    Edited by: srihari.kumar on Apr 6, 2011 3:31 PM

  • Guide on how to use a self programmed BAPI in Visual Composer

    Hi all,
    I am absolutely new to modelling with the Visual Composer, so probably this is a fairly easy question for most of you, but it's driving ME nuts.
    I have a BAPI in my ERP6 system. This BAPI was programmed by some other guy (not working here anymore) and it is used to output some time management data for a user. It expects a personnel number as input and is then supposed to return the amount of time an employee worked that day.
    Now what I need/want to do is this:
    a user logs on to the portal with his user-id and I want to create an iView on the first page that displays his/her remaining time of work for that day.
    All I have is the user-id, from which I need to query the personnel number from infotype105 and then use this number as input for the BAPI - And I want to do this with the Visual Composer!
    Can someone point me to some good documentation how to get started with using a BAPI in Visual Composer?
    I have a sesond problem right now, that has something to do with necessary rights for system connection or system alias - not sure:
    Right now, I can't see any BAPI in my backend-system, because I seem to be mssing the necessary rights to use the system connection I created - although group everyone has read access to the connection an I setup SSO between portal and ERP system.
    So maybe solme of you gurus might be able to point me to some good documentation on these topics, as I'm kinda stuck here
    Greetings,
       Christian

    Hi,
    Yes its very much necessary to do the user mapping untill unless if you did not do the single sign on Trust .
    It is necessary to get the data from the Back end i.e your Ssytem.
    Steps :
    Go to Useradministartion->find your VC user (using which user you are logging to the VC)->CLICK ON MODIFY->Select usermapping Tab->select the System alias ->give the credentials of the System (i.e Back end) then Save.
    After that Check the Connection Test for the Syetm you connected .
    Steps:
    System Administartion->Syste configuration->Visual Composer-> fRight Click on your Backend Sytem->select Connection test->do the connecton test .
    if the results are failed means the usermapping is wrong.
    Regards,
    Govindu

  • How to use 'Submit' for Program rpsinfo (tcode:cn41n)

    Hi Friends,
    CN41N is a Hierarchical report of PS Module. Which displays WBS, Network, Project details in Hierarchical view. I want to store the output of this report in internal table for further processing. For this i am using the following code .
    SUBMIT  rpsinfo
       WITH cn_pspnr-low EQ 'S-0018-01-01-01-01-001'
       EXPORTING LIST TO MEMORY AND RETURN .
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = list_tab
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      DATA: BEGIN OF i_asci OCCURS 0,
           data1(5000) TYPE c,
           END OF i_asci.
      CALL FUNCTION 'LIST_TO_ASCI'
    * EXPORTING
    *   LIST_INDEX               = -1
    *   WITH_LINE_BREAK          = ' '
    * IMPORTING
    *   LIST_STRING_ASCII        =
    *   LIST_DYN_ASCII           =
       TABLES
         listasci                 = i_asci
         listobject               = list_tab
       EXCEPTIONS
         empty_list               = 1
         list_index_invalid       = 2
         OTHERS                   = 3
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    The above code is not working. Output is not going to memory. But this is working with all other reports which are simple ALV Reports. I think since  rpsinfo (tcode:cn41n) is hierarchical report it is not displaying output. Then how do i send the output to the memory. Please suggest the solution.
    Thanks in Advance.
    Mahender.

    if the hierarchical report is displayed using SAP Graphics, then you will never be able to get information from memory because the output is not stored into a SAP list

  • How to use my own program to test my EO, VO

    I've created a small application using BC4J. It's basically 1 EO and 1 VO.
    I've followed the Oracle Jdeveloper handbook and created a java file with a main method to execute and play with my EO/VO.
    my main method is like this:
    public static void main(String[] args)
    new Application1();
    ApplicationModule myAM = Configuration.createRootApplicationModule("mypackage1.Mypackage1Module","Mypackage1ModuleLocal");
    as you can see is dead simple, but it throws an error:
    java.lang.NoSuchMethodError: void oracle.xml.parser.v2.SAXParser.setContentHandler(org.xml.sax.ContentHandler)
         java.util.List oracle.jdeveloper.cm.DefaultConnectionStore.read()
              DefaultConnectionStore.java:182
         void oracle.jdeveloper.cm.ConnectionManager.loadConnectionDescriptors()
              ConnectionManager.java:1223
         oracle.jdeveloper.cm.ConnectionDescriptor oracle.jdeveloper.cm.ConnectionManager.getConnectionDescriptorImpl(java.lang.String)
              ConnectionManager.java:1203
         void oracle.jdeveloper.cm.ConnectionManager.putConnectionDescriptor(java.lang.String, oracle.jdeveloper.cm.ConnectionDescriptor)
              ConnectionManager.java:336
    what is wrong with this. Is there any other way to create a Java file with a main method to test the code?
    this is really frustrating :(

    Please refer to this topic:
    using Configuration.createRootApplicationModule
    sorry about that

  • How to use simple abap program O/P using bsp.

    Hi All,
    I want to know simple BSP program which will call normal abap program. It has to display simple output not in table format.
    Thanks,

    Check the tutorials mentioned in the Wiki. Read the documentation. It is all simple.
    Cheers
    Graham Robbo

Maybe you are looking for