Changing Routing operations using FM.

Hi,
Is there any FM available to change the operations in Routing? Please let me know.
With regards,
Sharath Kumar R.

Hello,
Try this sample code which will update the short text of the operation:
REPORT zca02
       NO STANDARD PAGE HEADING LINE-SIZE 255.
INCLUDE bdcrecx1.
PARAMETERS: p_plnnr LIKE rc271-plnnr OBLIGATORY.
PARAMETERS: p_aennr LIKE rc271-aennr OBLIGATORY.
PARAMETERS: p_plnal LIKE rc271-plnal OBLIGATORY.
PARAMETERS: p_vornr LIKE rc27h-vornr OBLIGATORY.
PARAMETERS: p_ltxa1 LIKE plpod-ltxa1 OBLIGATORY.
INITIALIZATION.
  ctu = 'X'.
  ctumode = 'A'.
  cupdate = 'S'.
START-OF-SELECTION.
  PERFORM open_group.
  PERFORM bdc_dynpro      USING 'SAPLCPDI' '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RC271-AENNR'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'RC271-PLNNR'
*                              '001'.
                                p_plnnr.
  PERFORM bdc_field       USING 'RC271-AENNR'
*                              '001'.
                                p_aennr.
  PERFORM bdc_field       USING 'RC271-PLNAL'
*                              '1'.
                                p_plnal.
  PERFORM bdc_dynpro      USING 'SAPLCPDI' '1400'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RC27X-ENTRY_ACT'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=OSEA'.
  PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                '1'.
  PERFORM bdc_dynpro      USING 'SAPLCP02' '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RC27H-VORNR'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=ENT1'.
  PERFORM bdc_field       USING 'RC27H-VORNR'
*                              '0050'.
                                p_vornr.
  PERFORM bdc_dynpro      USING 'SAPLCPDI' '1400'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'PLPOD-VORNR(01)'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=VOD1'.
  PERFORM bdc_field       USING 'RC27X-FLG_SEL(01)'
                                'X'.
  PERFORM bdc_dynpro      USING 'SAPLCPDO' '1200'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=BU'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'PLPOD-LTXA1'.
  PERFORM bdc_field       USING 'PLPOD-LTXA1'
*                              'POS1'.
                                 p_ltxa1.
  PERFORM bdc_transaction USING 'CA02'.
  PERFORM close_group.
Hope this helps you.
Regards, Murugesh AS

Similar Messages

  • Bapi to change Routing Operations

    Hi Gurus,
    Could you please tell me whether this Bapi Can be used to do Mass Change for an operation.
    I have found this Bapi : /SAPMP/BAPI_ROUTING_PROCESS
    But it is throwing exception Routing Entry is missing.
    I have filled only operations table and the importing parameters.
    Do I have to fill any other table.
    Please help me in the same.
    Best Regards,
    Navin Fernandes.

    NAVIN FERNANDES wrote:
    Hi Amber,
    >
    > I have created an LSMW and filled respective values with mapping but it giving me error saying
    > ****************************************************************************
    > "Data Transfer of Routings via Direct Input
    >
    >     Error_di_exp         From    To      Obj   Index       Plnnr
    >
    > E    1     1                             M     0000000001
    >
    > E                           1     1      M     0000000001
    >
    > C\ 045 V
    >    You cannot edit the task list object with activity type V
    > *******************************************************************************
    > Could you please help me in the same.
    > I want to change the standard values in the operation.
    >
    > Best Regards,
    > Navin Fernandes.
    this looks to be a functional error. Can you check again with your functional consultant.

  • Transaction CA02 - change Routing operation Overview

    Hi !
    I need to insert values to column "Unit Quantity" (plpo-vgm04)where the table line is 'SMD' or 'TH_***'. I  need
    to make a massive change for  many record.
    Is in sap a bapi for doing this task ?
    thanks
    moshe

    I am unable to find out the CAPP knowledge button in CA02 but find rest of three fields which you need to know see as given below
    KAP_ARBPL
    FLG_CAPO
    Above two field is coming in header details of particular routing (CA01, 02, 03)there is 6 views of header data
    Task list.
    Production line.
    General data.
    Parameters for dynamic modification /inspection points.
    Further QM data.
    Administrative data .
    Work center for capacity planning
       A work center which should be considered a "critical work center" (bottleneck work center) according to capacity leveling using a planned order.
    As per above view you will get KAP_ARBPL- Work center for capacity planning in General data view as a Planning work center.
    FLG_CAPO-Recalculate standard values at order creation you will get this field in general data view just below of planning work center as a CAPP order and its indicating that, at the time of order creation, standard values are recalculated using CAPP depending on their order category.
    P3007-RUZUS you will find this field in CR01, 02, 03 there is also 6 views for particular work center as below.
    Basic data
    Default values
    Capadities.
    Scheduling
    Costing
    Technical data and you will get P3007-RUZUS in this view as Rnd. & add.val. This specifies the rounding categories and the additional values to be taken into account when standard values are calculated for an operation.
       You can use this key you can assign a rounding category and an additional value percentage to each of the standard values in a work center.
    Regards

  • Creating Routings Operations using BAPI_ROUTING_CREATE

    Hello,
    I am creating Routing operations using BAPI_ROUTING_CREATE. The parameters which I am using are:
    PROFILE
    TASK
    MAT_ALLOC
    OPERATIONS.
    The group counter and group are given internal number assignment.
    In my case for 1 material number plant combination only 1 task exist. This can be considered as Header record. For this Header record there are multiple operations. My program calls BAPI only When any combination of MATNR or WERKS changes in MAT_ALLOC. It works fine for 1 operation but fails incase of multiple operations. The error is routing material assignment does not exist. I have checked for all madatory parameters in FM documentation. The BAPI when executed independently works fine but in program it fails.File format is
    Mat. No. Plant Key Date Status Usage Operation Number Work center Control Key Description val unit.
    I am calling BAPI only when Mat no or plant changes.Unitl then I append the data in internal tables.
    Passing the data in this format every operation is given Mat No and Plant, then y it is giving error routing material assignment does not exist.
    Please help in this regard.
    Thanks
    Khushboo

    Well actually that´s almost exactly what my task is as well.
    So what i do is:
    - reading the headdata of the given routing (the one which is to be copied)
    - reading the positiondata of the given routing (the one which is to be copied)
    then calling the BAPI_ROUTING_CREATE while exporting the headdata and the positiondata to the BAPI.
    It works perfect for the routing itself, but the BAPI doesnt create any operations while it displays a sucess message and NO errormessages.

  • BAPI to change routing CA02

    Hi,
    I've been going through the forums and I still cannot find a bapi to change routing (CA02). Do you know any bapi or function module that i can use to change routing. Please help.
    Regards,
    April

    Hi,
        there is no bapi for changing Routing, instead use
    BAPI_ROUTING_CREATE Creation of a routing
    BAPI_ROUTING_EXISTENCE_CHECK Check whether routing exists
    Regards

  • Upload Multiple Operation using BAPI_ROUTING_CREATE

    Sir,
    I have to upload routing operation using this BAPI_ROUTING_CREATE. I have created a upload program for that.
    I have collect the data in Task, material and Operation table. They have multiple line item against One Material.
    but after executing this bapi gives this type of error.
    E
    Create task list: Consistency check was not successful
    A
    For further processing, the routing entry is missing.
    So Please Guide me how to do this.
    Data :
    Multiple Operation have One Material.
    Thanks!
    Ram

    Well actually that´s almost exactly what my task is as well.
    So what i do is:
    - reading the headdata of the given routing (the one which is to be copied)
    - reading the positiondata of the given routing (the one which is to be copied)
    then calling the BAPI_ROUTING_CREATE while exporting the headdata and the positiondata to the BAPI.
    It works perfect for the routing itself, but the BAPI doesnt create any operations while it displays a sucess message and NO errormessages.

  • Since I changed the operating system Windows 7 32bit to 64bit I can not use Firefox browser unless change the browser to safe mode.

    Since I changed the operating system Windows 7 32bit to 64bit I can not use Firefox browser unless change the browser to safe mode.When i start it the browser is not open and appears a message
    Mozilla Crash Reporter
    == Crash ID(s) ==
    20100611143157
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)

    the 20100611143157 is an update which won't instal automatically on my notebook

  • Can we change the bound location of an operator using OMB?

    Hi,
    I'm trying to change the location of an table operator using the following code:
    OMBALTER MAPPING 'MAP_NAME' MODIFY OPERATOR 'TABLE_TEST' SET PROPERTIES (database_link) VALUES ('PROJECT1/SOURCE1/TEMP_TABLE3')
    OMBCOMMIT
    OMBPlus tells me that the command ran successfully. But if i take a look on the design center, the change didn't occur. The old location for the operator remains.
    Am i using the right property type? database_link?
    Thank You!
    Filipe

    What you've run only change the link location. It doesn't change the bound location.
    I've write an OMB scripts to automate the changing of bound location within different project .
    set OMBPROMPT ON
    OMBDCC
    OMBCC '/'
    set projects [OMBLIST PROJECTS]
    puts -nonewline "Please enter the Project Name ($projects): "
    gets stdin projectName
    set path [lindex [OMBDCC] 1]
    OMBCC '$projectName'
    set modules [OMBLIST ORACLE_MODULES]
    puts -nonewline "Please enter the Module Name ($modules): "
    gets stdin moduleName
    puts "================"
    puts "Finding on Module $moduleName"
    set path [lindex [OMBDCC] 1]
    set no_mod 1
    OMBCC '$path/$moduleName'
    set no_map 1
    puts "Find $moduleName"
    foreach mapname [OMBLIST MAPPINGS] {
    foreach klname [OMBRETRIEVE MAPPING '$mapname' GET OPERATORS] {
    set bname [lindex [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$klname' GET BOUND_OBJECT] 1]
    set oname [lindex [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$klname' GET BOUND_OBJECT] 0]
    # PTI_DW_TST is the name of project orig bound
    # PTI_DW is the name of project destination bound
    set result [regexp {^(/PTI_DW_TST)+} $bname match]
    if { $result == 1 } {
    set myresult [regsub {^(/PTI_DW_TST)+} $bname "/PTI_DW" new_bname]
    #puts "$klname ($oname) : $bname => $new_bname"
    OMBRECONCILE $oname '$new_bname' TO MAPPING '$mapname' OPERATOR '$klname' USE (RECONCILE_STRATEGY 'REPLACE', MATCHING_STRATEGY 'MATCH_BY_OBJECT_NAME')
    puts "Reconcile Mapping $mapname change $bname to $new_bname for operator $klname with type $oname"
    incr no_map
    OMBCC '/'

  • Must I change router's ip if I use vpn---RV110W

    Hi there:
    The ip of my RV110W is 192.168.1.2. Now I'm adding a row in vpn clinet setting table.When I put the save button the page shows"in order to ensure proper functionality.the router need to change its ip address to 10.x.x.1". So. I need to konw Must I change router's ip to 10.x.x.1 in order to use VPN? it's very Inconvenient cuz my devices are all set to 192.168.1.x range.

    Hello, 
    Im sorry you are having issues with your device.
    You are right, the router will force you to change the IP address when you try to date a new VPN user, if it is still using the 192.168.1.X IP address, this is to prevent issues when people is connecting remotely as that subnet is the most used one and if somebody tries to connect remotely while using the subnet 192.168.1.X then the connection will be rejected.
    Now, you don't really have to change it if you don't want to (I wouldn't advice it as the feature is there for a reason and most likely you will have issues with users connection from the same subnet). 
    What you can do is to change the IP address to whatever you like, create all the VPN users and then change the IP address back to what you want to, this way you fool the router and you can keep your current IP address (again, this is not recommended)
    I hope this was help helpful, please let us know.

  • When to install InDesign it says that I am using an operating systam that InDesign nolonger suppor. It is windows XP What shuld I do as I can not change the operating system?

    when to install InDesign it says that I am using an operating systam that InDesign nolonger suppor. It is windows XP What shuld I do as I can not change the operating system?

    Please answer the question: Will you need to share files with people who have current versions of InDesign?

  • Change UoM of on routing operations.

    Hi PP Experts,
    Please someone help me on my problem regarding changing UoM on routing operation. I have to change or convert the labor time and machine time from CTS (cents of second) to S(second). How can i change that and i have to consider the impact on report such as routing check, standard time checking report and finacial cost.
    Thanks for your help.
    Edited by: yatch0325 on Oct 13, 2010 7:58 AM

    Hi,
    1. In the routing change the UOM for standard value to S and eneter the calculated machine time in S.
    2.Change the Base qty and the operation unit.
    3.Activity type and the cost needs to be checked.
    Thanks,
    nandha
    Edited by: S.Nandakumar on Oct 13, 2010 8:25 AM

  • Hello guys! I have a problem. I bought my iphone 5 from Bulgaria with contract from Globul operator, but i change my operator and i want to use my iphone with other chip, but i can't. I go to the office to Globul operator but they told me it's locked

    Hello guys! I have a problem. I bought my iphone 5 from Bulgaria with contract from Globul operator, but i change my operator and i want to use my iphone with other chip, but i can't. I go to the office of Globul operator but they told me it's locked with us, they told me your contract with us must be finish and after that. And can i have a chance to unlocked my iphone before.

    No. Since Globul is one holding the lock and they told you only after your contract expires then there is no way to get it unlocked.

  • Facing problem during uploadation of Routing data using CA01-BDC - URGENT

    Dear All,
    When I am trying to upload Routing data using CA01 in the Table Control scenario, then I am facing problem as my last 2 records are not getting uploaded from my Test file.
    For example, I am having 47 records in my Test File and after setting ‘Default size’ parameters (to avoid screen resolution problem)
    I have 15 table control line items data per page. The Page down logic ('=P+') is working fine, but my below BDC code failed to take
    the remainder last 2 records from the Test File.
    Analysis: When I am running my “Call Transaction” bdc in foreground, then the 1st page down occurs after 15th record, 2nd page down occurs after 29th record( as in Table Control 1st page’s 15th record is coming on the Top of 2nd page). 3rd page down occurs after 43rd record
    (as 2nd page’s 29th record is coming on the top of 3rd page). In the 4th Table Control Page 43rd record of previous page is coming on top, and then it’s taking 44th & 45th records from the Test File and then it is triggering SAVE (=BU). Thus, our last 2 records
    (i.e. 46th, 47th record) are not getting uploaded in the routing screen from our Test File.
    If anybody has encountered this scenario previously, please help me URGENTLY in fixing the bugs here. It’s VERY, VERY URGENT…
    FYI. For others 45 successful records already uploaded, all the screen fields values are coming properly in the routing screen, and here there is no issue.
    Thanks very much…
    Thanks & Regards
    Sudipta – Project Lead
    Volvo Client Location
    I am pasting my BDC source code below:
    REPORT ZRT1_UPLOAD_CA01_F
                           NO STANDARD PAGE HEADING
                           LINE-SIZE 255.
                            I N C L U D E S                              *
    Include for Data Declarations
    INCLUDE zrout_top.
    Include for Forms
    INCLUDE zrout_form.
    INCLUDE zrout_include_f_ca01.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    Attaching F4 help with filename
      PERFORM F1001_GET_F4.
               S T A R T   -   O F  -  S E L E C T I O N                 *
    START-OF-SELECTION.
    Perform to read the input file
      PERFORM f_read_file.
    Perform to fill the BDC data
      PERFORM f_fill_bdctab.
                   E N D   -   O F  -  S E L E C T I O N                 *
    END-OF-SELECTION.
      FREE: i_bdcdata,
            i_messtab,
            i_record.
    x----
    *&  Include           ZROUT_TOP                                        *
                      D A T A B A S E    T A B L E S                     *
    TABLES: t100.          "Messages
                    D A T A    D E C L A R A T I O N S                   *
    T A B L E    T Y P E S *****************************
    For input data
    TYPES: BEGIN OF ty_record,
            matnr(18),  "Material Number
            werks(4),   "Plant
            verwe(3),   "Usage
            statu(3),   "Status
            arbpl(8),   "Work Center
            steus(4),   "Control Key
            ltxa1(40),  "Description of Operation
            bmsch(13),  "Base Quantity
            meinh(3),   "Unit of Measure
            vgw01(11),  "Machine
            vge01(3),   "Unit of measure of activity
          END OF ty_record.
    I N T E R N A L    T A B L E S ***********************
    Internal Table for input file name
    DATA: i_file_tab  TYPE STANDARD TABLE OF sdokpath   INITIAL SIZE 0.
    Internal Table for BDC Data
    DATA: i_bdcdata   TYPE STANDARD TABLE OF bdcdata    INITIAL SIZE 0.
    Internal Table for BDC Messages
    DATA: i_messtab   TYPE STANDARD TABLE OF bdcmsgcoll INITIAL SIZE 0.
    Internal Table for Input file
    DATA: i_record TYPE STANDARD TABLE OF ty_record INITIAL SIZE 0.
    W O R K      A R E A S *************************
    Work Area for input file name
    DATA: wa_file_tab LIKE sdokpath.
    Work Area for BDC Data
    DATA: wa_bdcdata LIKE bdcdata.
    Work Area for BDC Messages
    DATA: wa_messtab LIKE bdcmsgcoll.
    Work Area for Input file
    DATA: wa_record TYPE ty_record.
    V A R I A B L E S ****************************
    DATA: v_filename TYPE string,
          v_fnam(40) TYPE c.
    DATA: wa_opt TYPE ctu_params.
    C O N S T A N T S ***************************
    CONSTANTS: c_werks TYPE rc27m-werks VALUE 'tp',
               c_steus TYPE plpod-steus VALUE 'PP01'.
    *Selection Screen.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS:
              Input file name
                P_FILE TYPE rlgrap-filename OBLIGATORY. " DEFAULT 'C:\'.
    SELECTION-SCREEN END OF BLOCK B1.
    x----
    *&  Include           ZROUT_FORM                                       *
    *&      Form  f_fill_bdctab
          Form to fill the BDC Data
    FORM f_fill_bdctab.
      TABLES mapl.          "Assignment of Task Lists to Materials
      DATA: l_cnt_item(3)  TYPE n VALUE 1.    "Line item counter
      DATA: first(3)  TYPE n VALUE 16.    "Line item counter
      DATA: next(3)  TYPE n .    "Line item counter
      DATA: lin(3) TYPE n .    "Line item counter
      DATA: l_v_bmsch(13),   "Base qty
            l_v_meinh(3),    "Unit of Measure
            l_v_vgw01(11),   "Machine
            l_v_vgw02(11),   "Labour
            l_v_vge01(3).    "Unit of measure of activity
      DATA l_v_nextline TYPE sy-tabix.
      DATA wa_temp TYPE ty_record.
        Initialize Counter
          l_cnt_item = 1.
      SORT i_record BY matnr.
      LOOP AT i_record INTO wa_record.
    AT NEW matnr.
        REFRESH: i_bdcdata,
                 i_messtab.
        SET PARAMETER ID 'PLN' FIELD space.
        SET PARAMETER ID 'PAL' FIELD space.
        PERFORM f_bdc_dynpro      USING 'SAPLCPDI' '1010'.
        PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
      Material Number
        PERFORM f_bdc_field       USING 'RC27M-MATNR'
                                        wa_record-matnr.
       Plant
        PERFORM f_bdc_field       USING 'RC27M-WERKS'
                                        c_werks.
        PERFORM f_bdc_field       USING 'RC271-PLNNR'
      Check if routing already exits for the material
        SELECT * FROM mapl
                      INTO mapl
                                WHERE matnr EQ wa_record-matnr
                                  AND werks EQ c_werks
                                  AND plnty EQ 'N'.
          IF sy-subrc EQ 0.
            PERFORM f_bdc_dynpro      USING 'SAPLCPDI' '1200'.
            PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                            '=ANLG  '.
          ENDIF.
        ENDSELECT.
        perform f_bdc_dynpro      USING 'SAPLCPDA' '1200'.
        perform f_bdc_field       USING 'BDC_OKCODE'
                                  '=VOUE'.
    Group Counter
        perform f_bdc_field       USING 'PLKOD-PLNAL'
      Usage
        PERFORM f_bdc_field       USING 'PLKOD-VERWE'
                                        '1'.
      Status
        PERFORM f_bdc_field       USING 'PLKOD-STATU'
                                        '4'.
    ENDAT.
        PERFORM f_bdc_dynpro      USING 'SAPLCPDI' '1400'.
      Check if page is full
        IF l_cnt_item EQ '16'.
        Page down
          PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                               '=P+'.
          l_cnt_item = 1.
    ELSE.
    PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    ENDIF.
       CLEAR v_fnam.
      Populate item level details
    Work Center
        CONCATENATE 'PLPOD-ARBPL(' l_cnt_item ')' INTO v_fnam.
        PERFORM f_bdc_field       USING v_fnam
                                        wa_record-arbpl.
      Control Key
        CONCATENATE 'PLPOD-STEUS(' l_cnt_item ')' INTO v_fnam.
        PERFORM f_bdc_field       USING v_fnam
                                        c_steus.
      Description of Operation
        CONCATENATE 'PLPOD-LTXA1(' l_cnt_item ')' INTO v_fnam.
        PERFORM f_bdc_field       USING v_fnam
                                        wa_record-ltxa1.
      Base Quantity
        CONCATENATE 'PLPOD-BMSCH(' l_cnt_item ')' INTO v_fnam.
        PERFORM f_bdc_field       USING v_fnam
                                        wa_record-bmsch.
      Unit of Measure
        CONCATENATE 'PLPOD-MEINH(' l_cnt_item ')' INTO v_fnam.
        PERFORM f_bdc_field       USING v_fnam
                                        wa_record-meinh.
      Machine
        CONCATENATE 'PLPOD-VGW01(' l_cnt_item ')' INTO v_fnam.
        PERFORM f_bdc_field       USING v_fnam
                                        wa_record-vgw01.
      Labour
       CONCATENATE 'PLPOD-VGW02(' l_cnt_item ')' INTO v_fnam.
       PERFORM f_bdc_field       USING v_fnam
                                       wa_record-vgw02.
      Unit of measure of activity
        CONCATENATE 'PLPOD-VGE01(' l_cnt_item ')' INTO v_fnam.
        PERFORM f_bdc_field       USING v_fnam
                                        wa_record-vge01.
          l_cnt_item = l_cnt_item + 1.
       CLEAR wa_record.
    AT END OF matnr.
         PERFORM f_bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
          PERFORM f_bdc_field         USING 'BDC_OKCODE'
                                  '=BU'.
         wa_opt-DISMODE = 'A'.
         wa_opt-DEFSIZE = 'X'.
         wa_opt-UPDMODE = 'S'.
        PERFORM f_bdc_transaction USING 'CA01'.
       Initialize Counter
         l_cnt_item = 1.
    ENDAT.
      ENDLOOP.
    ENDFORM.                    " f_fill_bdctab
    x----
    *&  Include           ZROUT_INCLUDE_F_CA01                             *
    *&      Form  f_read_file
          Form to read the file from presentation server
    FORM f_read_file .
    To get the file name
      DATA l_v_file TYPE string.
    l_v_file = P_FILE.
    CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                = l_v_file
            filetype                = 'ASC'
            has_field_separator     = 'X'
          TABLES
            data_tab                = i_record
          EXCEPTIONS
            file_open_error         = 1
            file_read_error         = 2
            no_batch                = 3
            gui_refuse_filetransfer = 4
            invalid_type            = 5
            no_authority            = 6
            unknown_error           = 7
            bad_data_format         = 8
            header_not_allowed      = 9
            separator_not_allowed   = 10
            header_too_long         = 11
            unknown_dp_error        = 12
            access_denied           = 13
            dp_out_of_memory        = 14
            disk_full               = 15
            dp_timeout              = 16
            OTHERS                  = 17.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    ENDIF.
    ENDFORM.                    " f_read_file
    *&      Form  f_bdc_dynpro
          Form to populate BDC Tab for new screen
         -->fp_program   Screen program name
         -->fp_dynpro    Screen Number
           Start new screen                                              *
    FORM f_bdc_dynpro USING fp_program fp_dynpro.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = fp_program.
      wa_bdcdata-dynpro   = fp_dynpro.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO i_bdcdata.
    ENDFORM.                    "f_bdc_dynpro
    *&      Form  f_bdc_field
           Insert field                                                  *
    FORM f_bdc_field USING fp_fnam fp_fval.
      IF NOT fp_fval IS INITIAL.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam = fp_fnam.
        wa_bdcdata-fval = fp_fval.
        APPEND wa_bdcdata TO i_bdcdata.
      ENDIF.
    ENDFORM.                    "f_bdc_field
    *&      Form  f_bdc_transaction
          Call transaction and error handling
         -->fp_tcode   Transaction code
    FORM f_bdc_transaction  USING fp_tcode.
      DATA: l_mstring(480),
            l_color         TYPE i,
            l_mode          TYPE c.
      REFRESH i_messtab.
    CALL TRANSACTION fp_tcode USING i_bdcdata
                       OPTIONS FROM wa_opt
                       MESSAGES INTO i_messtab.
    Messages during upload
      LOOP AT i_messtab INTO wa_messtab.
        CASE wa_messtab-msgtyp.
          WHEN 'S'.
            l_color = 5.
          WHEN 'E'.
            l_color = 6.
          WHEN 'W'.
            l_color = 3.
        ENDCASE.
        FORMAT COLOR = l_color.
        SELECT SINGLE * FROM t100 WHERE sprsl = wa_messtab-msgspra
                                  AND   arbgb = wa_messtab-msgid
                                  AND   msgnr = wa_messtab-msgnr.
        IF sy-subrc = 0.
          l_mstring = t100-text.
          IF l_mstring CS '&1'.
            REPLACE '&1' WITH wa_messtab-msgv1 INTO l_mstring.
            REPLACE '&2' WITH wa_messtab-msgv2 INTO l_mstring.
            REPLACE '&3' WITH wa_messtab-msgv3 INTO l_mstring.
            REPLACE '&4' WITH wa_messtab-msgv4 INTO l_mstring.
          ELSE.
            REPLACE '&' WITH wa_messtab-msgv1 INTO l_mstring.
            REPLACE '&' WITH wa_messtab-msgv2 INTO l_mstring.
            REPLACE '&' WITH wa_messtab-msgv3 INTO l_mstring.
            REPLACE '&' WITH wa_messtab-msgv4 INTO l_mstring.
          ENDIF.
          CONDENSE l_mstring.
          WRITE: / wa_messtab-msgtyp, l_mstring(250).
        ELSE.
          WRITE: / wa_messtab.
        ENDIF.
        FORMAT COLOR OFF.
      ENDLOOP.
      SKIP.
    ENDFORM.                    " f_bdc_transaction
    FORM F1001_GET_F4.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                PROGRAM_NAME  = SY-REPID
                DYNPRO_NUMBER = SY-DYNNR
                FIELD_NAME    = P_FILE
           CHANGING
                FILE_NAME     = P_FILE
           EXCEPTIONS
                MASK_TOO_LONG = 1
                OTHERS        = 2.
      IF SY-SUBRC <> 0.
      File is not selected
       MESSAGE I000 WITH TEXT-M01.
      ENDIF.
    ENDFORM.                    " F1001_GET_F4

    Sudipta,
    Would request you to post this to ABAP-Forum for Immediate response.
    I had this problem, but the ABAP guy did something to correct this...it was more of screen resoultion difference between the recorded system and uploading system. Please try to use the same system which was used to record and try.
    Regards,
    Prasobh

  • Text of Std. Text Key in Routing operation

    Hi friends,
    I am facing a problem in the operation in Routing.
    I have defined a standard text key in CA10. If I assign the standard key in the Default tab in Work center and select the Work center in routing against the particular operation, the std. text key is coming automatically BUT the text in the std. text key is not getting displayed in the Description section against the operation.
    But if I do not assign the std. text key in the work center and manually select the std. text key in the operation..... the text maintained in the std. text key, is getting displayed in the Description section against the operation.
    I failed to make out the reason for this difference. If the std. text key maintained in the WC is getting picked up along with the WC in the opration then why the text is not getting dispalyed in the DESCRIPTION section ?
    secondly, There is no where, where  the text of the Work Center ( name of the WC) is getting reflected against the operation.
    Is there any report where we can get the description of the WC or that of the Std. text key against the operation ?
    Kindly help.
    Regards,
    Abhra Bose

    Abhra,
    >
    > I have defined a standard text key in CA10. If I assign the standard key in the Default tab in Work center and select the Work center in routing against the particular operation, the std. text key is coming automatically BUT the text in the std. text key is not getting displayed in the Description section against the operation.
    >
    > But if I do not assign the std. text key in the work center and manually select the std. text key in the operation..... the text maintained in the std. text key, is getting displayed in the Description section against the operation.
    >
    Its a simple problem you have maintained the standard text key and its description, but not the long text. All that you need to do is in CA10 transaction enter the standard text key and click the pencil like Icon for change, then in the next screen which appears like a word pad maintain the text which you want to appear in the operation description when used.
    Example:
    Standard Text Key:
    XXXXXXX - Turning Operation
    Turning operation using CNC Machine.
    Hope this helps....
    Regards,
    Prasobh

  • Cascaded routers: no internet access when second router not use NAT

    Cascaded routers: no internet access when second router not use NAT
    Here is my setup:
    [pre]
    WAN
    |
    | 74.96.170.x (WAN IP)         |
    | Router1(Verizon FiOS Router) |
    | Model: MI424WR-GEN2 (Rev F)  |
    | Firmware: 20.21.0.2          |
    | Def router: 74.96.170.1      |
    | 192.168.1.1 (Local IP)       |
    |
    |  192.168.1.22 (WAN IP)   |
    |  Router2(Linksys)        |
    |  Model: WRT54GL v1.1     |
    |  Firmware: v4.30.16      |
    |  Def Router: 192.168.1.1 |
    |  192.168.2.1 (Local IP)  |
    |
    | Computer 192.168.2.160   |
    | Def Router: 192.168.2.1  |
    "q.route" 120L, 4441C written
    [m.wang@m-wang-ltm2:/Users/m.wang/m/Network]
    $ more q.route 
    Cascaded routers: no internet access when second router not use NAT
    Here is my setup:
    [pre]
    WAN 

    | 74.96.170.x (WAN IP)         | 
    | Router1(Verizon FiOS Router) | 
    | Model: MI424WR-GEN2 (Rev F)  | 
    | Firmware: 20.21.0.2          |
    | Def router: 74.96.170.1      |
    | 192.168.1.1 (Local IP)       | 
    |
    |  192.168.1.22 (WAN IP)   | 
    |  Router2(Linksys)        | 
    |  Model: WRT54GL v1.1     |
    |  Firmware: v4.30.16      |
    |  Def Router: 192.168.1.1 |
    |  192.168.2.1 (Local IP)  |
    |
    | Computer 192.168.2.160   | 
    | Def Router: 192.168.2.1  | 
    | NO iptables, basic setup |
    [/pre]
    On computer, I have:
    [pre]
    # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    default         192.168.2.1     0.0.0.0         UG    2      0        0 enp2s0
    loopback        localhost       255.0.0.0       UG    0      0        0 lo
    192.168.2.0     *               255.255.255.0   U     0      0        0 enp2s0
    [/pre]
    On Router2, I have:
    [pre]
    Routing Table Entry List
    Destination LAN IP | Subnet Mask   | Gateway   | Hop Count | Interface
    192.168.2.0          255.255.255.0   0.0.0.0     1           LAN & Wireless
    192.168.1.0          255.255.255.0   0.0.0.0     1           WAN (Internet)
    0.0.0.0              0.0.0.0         192.168.1.1 1           WAN (Internet)
    [/pre]
    Router2's Operating Mode is Gateway. On Router1, I have: 
    [pre]
    [Router1] Routing Table
    Name                  Destination Gateway      Netmask       Metric   Status
    Network (Home/Office) 192.168.2.0 192.168.1.22 255.255.255.0 0        Applied 
    Network (Home/Office) 192.168.1.0 192.168.1.1  255.255.255.0 0        Applied 
    Routing Protocol: Internet Group Management Protocol (IGMP)
    Default Gateway: 74.96.170.1
    [/pre]
    On computer, I can run tcptraceroute to yahoo.com OK:
    [pre]
    # tcptraceroute yahoo.com
    Selected device enp2s0, address 192.168.2.160, port 46596 for outgoing packets
    Tracing the path to yahoo.com (206.190.36.45) on TCP port 80 (http), 30 hops max
     1  192.168.2.1  0.610 ms  0.729 ms  0.735 ms
     2  192.168.1.1  1.843 ms  1.378 ms  1.363 ms
     3  l100.washdc-vfttp-107.verizon-gni.net (96.241.146.1)  13.620 ms * *
    ... /* It reached the destination. */
    [/pre]
    I want to change Router2's Operating Mode from "Gateway" to "Router" because I
    want to turn off NAT on Router2 so that I can access all computers attached to
    Router2 by their individual IP instead of using port forwarding at Router2.
    The problem is after the mode change from "Gateway" to "Router", and regardless
    whether I disable RIP or enable RIP, and on what interfaces it is enabled, computer
    192.168.2.160 does not have internet connection. 
    Observations:
    [0] INTRAnet works as I can reach computer 192.168.2.160 from computer behind Router1
    192.168.1.x and vice versa.
    [1] ping and traceroute *work* on Router2 itself using the built-in dianostic tool.
    [2] nslookup on computer 192.168.2.160 always works on new lookup. It uses
    192.168.2.1 as the resolver.
    [3] tcptraceroute stops after step 2:
    [pre]
    # tcptraceroute yahoo.com
    Selected device enp2s0, address 192.168.2.160, port 45999 for outgoing packets
    Tracing the path to yahoo.com (98.139.183.24) on TCP port 80 (http), 30 hops max
     1  192.168.2.1  2.553 ms  0.534 ms  0.638 ms
     2  192.168.1.1  1.342 ms  0.964 ms  0.867 ms
     3  * * *
    [/pre]
    [4] tcpdump shows that computer 192.168.2.160 tries to reach out and nothing is returned:
    [pre]
    13:34:03.172828 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    13:34:06.175786 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    13:34:09.178804 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    [/pre]
    This is not expected because NAT to internet should still be done by Router1, no? Computer
    behind Router1 with IP 192.168.1.x has internet connection.
    [5] It looks like I cannot change the Routing Table Entry on Router2. I do not think I need to change anything,
    just an observation.
    [6] If I use LAN to LAN connection, then both intranet and internet works. [The internet IP of Router2 can be
    anything not in the same subnet of the Router1, and DHCP on the local side should be disabled to avoid conflict
    with the the DHCP on Router1].

    I have a question. Unfortunately in order to ask my question, I have to have a lengthy description of my setup. Basically, I have a second Linksys router in "router" operating mode with NAT disabled connected to the Verizon router, and I have a computer which is in a different subnet (192.168.2.x) behind the Linksys router. This computer can communicate with computers behind Verizon router in subnet (192.168.1.x), but cannot reach internet. This is a simplified version of my question, full details are in the original post.
    If I setup the Linksys router in "gateway" operating mode, which means with NAT enabled, then both intranet and internet works, but there is no easy way to setup port forwarding for 10 compueters in 192.168.2.x network to communicate with 10 computers in 192.168.1.x network.
    If I setup the Linksys router in a LAN to LAN configuration with Verizon routers, but this way all computers are in the same subnet, I want them to be in different subnet for access control and things like that.
    I hope this makes things a little clear.
    Thanks.

Maybe you are looking for

  • Issue with Calendar not syncing with iPhone 3g

    Issue with Calendar not syncing with iPhone 3g. Solution Create backup of your entire mailbox before starting (THIS IS IMPORTANT) Create offline folder (.pst file) Check windows help on how to do this for your version. Open folders view on Outlook Ri

  • Issue: Password needed - networking

    Hi, I'm not sure if this is the proper place in the forums for this question, but here goes anyway: We have a Windows Server 2003 set up to host an applet program over the internet. This applet is designed to access and display a certain type of file

  • Installation Problem InDesign CS6   installation not possible less I close the ShellExtLoader

    solution i found quit SugarSync You just needed to quit it , install and restart Sugarsync.

  • Shared device discovery

    After switching from a Linksys AP to a Time Capsule (in AP mode) it seems Lion is having a slower time finding my local computers and listing them in the Shared section on the sidebar. My MacBook is the only Apple computer, the rest are Windows (XP,

  • HT201272 missing purchases

    I am missing multiple purchases from the download section of past purchases. I can see the purchase date and other information in my account information through itunes. I want to be able to download all of my past purchases not just a few. Why are so