CJ20N Project Activity Level Actual Dates Auto-Populating

Greetings All,
I have a question with regards to t-code CJ20N.  Looking at the Activity level of a project, under the dates tab is a field for actual start (AFVGD-ISDD) and actual finish dates (AFVGD-IEDD).  They are auto populating and we are not sure why.  We do not want these fields to be auto populated.  They are messing up resource allocation via CMP3 for us. 
I have been looking around and have not been able to find any information on this.  Any help is appreitated. 
Thanks all!

Hi,
Goto tcode OPST...and there is a check box propose date....
I think if you can uncheck this....w'ld solve ur problem.
Regards
Abhinay

Similar Messages

  • Create BW activity (trans crmd_order) - Actual date not populated

    Hi,
    I am new to CRM, any advice is appreciated.
    We are creating a BW Activity. On the initial screen there are 2 drop downs on 'Dates' i.e. 'Planned' and 'Actual'. When selecting 'Planned' the default dates and times, set up in config, appear (these are current date and time). However, with 'Actual' no dates or times appear yet the config is the same as for 'Planned'.
    Regards,
    Warren.

    Hi Boris,
    Have you check if there is certain Rule set on Actual Date (in date profile
    configuration - SPRO) ? try to remove the rule.
    If there is no rule, that means, this process done by standard SAP mechanism.
    There are several ways to trick this, one is use Action Profile with Action Definition
    where schedule and start condition => User status = Completed. The action then
    call method which replacing actual date with current (or whatever date you want).
    The other way is still using Date Rule, for this you need to define on how this
    Actual date should be produced the date (may be from creation date, or any logic)
    hope this helps.
    Gun.

  • Activity milestone actual date replacing schedule date

    Hi,
    The last few years we have been using activity milestones. These milestones are offset from the early start date of the activity. We manually add the actual date and the schedule date would remain the same. We recently added some hot packs and now when the user puts in the actual date it also replaces the schedule date with the actual date. Reading throught some of the OSS notes it sounds like this is the way it works and the way it was working before the hot packs may have been wrong. I was just wondering if anyone really knows how the milestone schedule date and actual dates are suppose to work. We prefer that the schedule date remains the schedule date and not revert to the actual date. Any info would be appreciated.

    SAP stated that once the actual date is input then the schedule date would change to the actual date. They said this is how it is suppose to work but if we wanted to leave the sched date alone then there was a note we could put in the system. We did this and it works like we want.

  • Additional Column in CJ20N at activity level

    Hi Experts
    The requirment is to add a new column for material price in the right hand side screen in CJ20N, when we select any activity in CJ20N and try to attach material component .
    The new column (material price) should be next to the requirment quantity column, it will pick the price from material master and will display it.
    This is a development thing ,but i want to know whether is it possible and what FM or user exit can be used.
    Thanks
    DHRUV

    Hi DHRUV,
    The table of CJ20N is not a ALV table, which allow you hide or dispay the selecte column.
    So if you would like an additional one, you need enhance the codes. But actually the column price is avialble in tab ' purchase'.
    The sequence of the column can be changed and save, to do it please use the icon 'configuration' at the right corner of the table.
    Kind regards,
    Zhenbo

  • Actual dates should not impact the Network scheduled dates

    Hi
    I have planned schdeuled dates (Early/latest).
    When i am confirming the activity the actual dates get updated
    When i schedule the network the scheduled planned dates are recalulated
    This should not happen for this client i am working for
    The requirement is that the Planned Scheduled should remain fixed and
    should only change if duration, relationship etc changes.
    I have tried different option to solve this but still no clue
    Adjust basic date 1, 2, 3 option
    Shift Order
    No date Update - this seems to work but not visible in CN22/CN25/CJ20n
    Kindly highlight if any of you have come with similar requirement & provided solution to it
    Either thru standard functionality, configuration or any development
    Cheers

    Hi Manoj,
    I had the same requirement and able to achieve it by std. settings. Keep in mind that the planned dates wil get changed when you do the final confirmation. You should have the control on the planned dates until the activity get Fianlly confirmed.
    psconsultant

  • Scheduling after entering Actual dates

    Dear Members,
    I have a scenario where I want to reschedule the project after entering actual dates for the activity.
    Lets say,
    An activity was planned for Duration : 8 Days and work : 64 Hrs  (Capacity is 8 hrs/day)
    20.05.2009 to 28.05.2009
    Now I am confirming the activity for the first time after say 4 days work :
    20.05.2009 to 24.05.2009
    but the work done is only 16 hrs.
    Now the remaining work is 48 hrs in only 4 days.
    Requirement is that... scheduling should shift the dates of the activity according to capacity and remaining work.
    48 hrs can be completed in 6 days... so the finish date of activity should be increased by 2 days... from 28.05.2009 to 30.05.2009.
    I hope I have put my requirement in a meaningful way... please help me on this...
    (I know that instead of increasing the dates and delaying the project, it is recommended to overload the capacity and finish the activity withing the planned duration.. but I cant increase the capacity...)

    Dear Amol,
    I have come across the same business requirement in one of the project implementation.
    So I had given a logic to my ABAPer to calculate the forecast duration and automatically bring the value in the internal activity screen.
    The user exit used was CONFPS04, there is an include available where you can out the code for this enhancement.
    Hence, whenever you will do the confirmation, as per the calculation you have given in your example, system will calculate & update the forecast duration field. Now, everytime you will do the scheduling, on the basis of the value in the forecast duration, system will schedule the project.
    Regards,
    Vikas D.

  • CJ20N, auto-defaulted storage location at activity level

    Hi all,
    we have this problem at CJ20N (PS) screen.
    At activity level, componenent overview, if user keys in the material no, a storage location is auto-defaulted
    later we found out that if the material is extended to only 1 storage location,  the storage will be auto-defaulted at componenet overwview, is there any setting to prevent the auto-defaulted storage .. pls advice

    Hi,
    Carry out these IMG steps:
    SPRO 
    Logistic Execution 
    Basic Shipping Functions
    Shipping Point and Goods Receiving Point Determination
    Set Up Storage-Location Dependent Shipping Point Determination
    Assign Shipping Points According to Storage Location,,,,,,,,
    Put in your combination of Shipping Conditions / Loading Group/ Plant/ Storage Location/ Proposed shipping point
    Next time you create a Delivery document,, the system will pick up the above values from the Material/Customer master records and propose a Storage Location at line item number.
    I just tried it and it works, let me know if this works.
    Cheers,
    Mohammed
    Edited by: Mohammed Raheel on Jun 5, 2009 1:09 PM
    Edited by: Mohammed Raheel on Jun 5, 2009 1:11 PM

  • Long Text at Activity Level in CJ20N

    Hi all,
    So, I have a typical newbie question. But somehow Im unable to find an answer to this query even by searching.
    I need to print the Long Text Tab at the Activity Level (not at Project/WBS/Network level)  in CJ20N using the Read_Text Function Module.
    Just need info on what's the ID, Object, Name etc.
    pk

    Dzed,
    Thanks for that valuable tip. That was exactly what i was looking for.
    But unfortunately, my internal table is not getting updated even though im able to input the right parameters to the Function Module.
    Here's what I've done:
    DATA: BEGIN OF ist_lines OCCURS 0.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF ist_lines.
    select mandt
           aufpl
           aplzl
           ltxa1
           vornr
           objnr
           projn
           from afvc into corresponding fields of table ist_afvc
           for all entries in ist_prps
           where projn = ist_prps-pspnr.
    loop at ist_afvc into wa_afvc.
    concatenate wa_afvc-mandt wa_afvc-aufpl wa_afvc-aplzl into wa_afvc-con3.
    modify ist_afvc from wa_afvc.
    endloop.
    break br_abap1.
    loop at ist_afvc into wa_afvc.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = 'AVOT'
        LANGUAGE                      = 'E'
        NAME                          = 'WA_AFVC-CON3'
        OBJECT                        = 'AUFK'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      TABLES
        LINES                         = ist_lines
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endloop.
    Im able to pass the right value for the variable 'WA_AFVC-CON3', but unfortunately the Internal table is not updated.
    I know Im missing something here, but obviously Im too blind to notice that.
    pk

  • Finish date cannot be set at project definiton level

    Dear Experts,
    On creating a project from a simulation, we need to copy some date constraints from the simulation into the new project. One of this is the finish constraint at project definition level.
    While we got all of the other dates to be copied correctly, the finish constraint is not getting correctly populated by using DPR_ATTRIBUTES exit.
    Do you have any other ideas on why is this happening for this specific attribute or how can we fill it in?
    Thanks in advance!
    Neil
    Edit: It seems like the BADI is not working fine for the Project Definition attributes. Has any of you experienced the same issue?
    Edited by: Neil Billqvist on Apr 13, 2011 9:45 AM

    Solved by applying SAP note

  • Planned and Actual costs at the Activity level

    Hi all,
          Can you tell me if there is a R/3 report which lists out the planned and actual costs for a project and displays it for each network and activity? I want these values at the activity level.
          I found a report which lists out these values for each network, but I cannot drilldown to the activity level. Please help.
    Thanks,
    Satyajit.

    Hi,
    There is setting in network type. Please go through transaction OPUV  i.e.
    Change view- Network type paramaeters : overview " Overview.
    Uner Network type parameters there is one radio button in front of ActvtyAcctAssgn. Just activate it.
    Hope this helps.
    Regards
    Tushar

  • How to do budgeting at activity level and WBS element level in project syst

    Dear GURU's,
    Can any one please suggest me how to do budgeting at activity level and WBS element level in project systems, friends please I required set by step process.
    I need how to do this configuration to map this scenario.
    Regards,
    Bhanu

    Hi Bhanu,
    Use this link :
    http://help.sap.com/saphelp_45b/helpdata/en/86/98853478616434e10000009b38f83b/frameset.htm
    after page opens , click on BUDGET MANAGEMENT , There you will find each and every step you want .
    Thanks ,
    Dhruv Kumar Malhotra

  • Commitments at activity level in report S_ALR_87013533 - Plan/Actual/Commit

    Hi All,
    When i executed the report S_ALR_87013533 - Plan/Actual/Commitment/Rem.Plan/Assigned, the commitments are shown at WBS level but not at activity level. Is there any setting required to see the commitments at the activity level?
    Where as the planned costs are shown against the activity in the same report.
    Please suggest the required settings if any?
    Regards,
    Ramana.

    HI Rifaee/Martina,
    In CJI5 the line items are shown under the WBS. But i would like to see the line items in the report.
    Even after running the report cjen the database is not updated for line itemwise commitment in the report.
    How to assign the PR/PO as account assignments to activity? Where do i need to do this setting? Please inform.
    Regards,
    Ramana

  • Auto release of Invoicing plan item when milestone actual date is entered

    Hi all,
    I wonder if anyone can help me on this.  I have configured the system to automatically release an invoicing plan in a PO once the milestone attached to that invoicing plan is confirmed in the project by entering the actual date.  For some reason though, when trying to enter the invoice for this item in MIRO, the amount from the invoicing plan is not copied.  The amount only gets copied if you enter the PO in change mode after confirmation of milestone, display the invoice plan for each item then save before exitting.  It is only after this that the block on the item is removed.  Is this supposed to be so?  I would have thought immediately after confirmation of milestone by indication of actual date, the block on the invoicing plan will be immediately be removed so the invoice can immediately copy the amounts from the PO?  Any ideas how to achieve this?  (GR is not a part of the process).

    Hi,
    Go through this link. Might be helpful.
    http://wiki.sdn.sap.com/wiki/display/HOME/InvoicingPlanin+SAP
    You can also search for related content in the forum. You will find a lot of threads related to this.
    Regards,
    Gokul

  • CJ20N - project structure and data import

    Hello dear SAP specialists,
    Does anybody ever created a ABAP program to import project structure and populate it with data?
    I'm trying to start with something or get a working program to import some projects with data.
    Actually the program should use BAPI_PROJECT_MAINTAIN to create WBS and GUI_UPLOAD to read a text (cvs) file (LSMW can not be used:)
    Sincerely,
    Me

    Hi,
    Exactly!
    See you have so many tables in that BAPI, now all the data you have in your flat file you have to map to these tables.
    Below is a code...similarly you'll have to do
    TYPE-POOLS: truxs.
    *                           T Y P E S
    TYPES: BEGIN OF t_master_data,
              MATERIAL                      Type  MATNR ,
              IND_SECTOR                    Type  MBRSH ,
              MATL_TYPE                     Type  MTART ,
              PLANT                         Type  WERKS ,
              STGE_LOC                      Type  LGORT_D ,
              MATL_DESC                     Type  MAKTX ,
              BASE_UOM                      Type  MEINS ,
              MATL_GROUP                    Type  MATKL ,
              DIVISION                      Type  SPART ,
              ITEM_CAT                      Type  MTPOS_MARA  ,
              GROSS_WT                      Type  BRGEW ,
              UNIT_OF_WT                    Type  GEWEI ,
              NET_WEIGHT                    Type  NTGEW ,
              VOLUME                        Type  VOLUM ,
              SIZE_DIM                      Type  GROES ,
              BASIC_MATL                    Type  WRKST ,
              DOCUMENT                      Type  DZEINR  ,
              DOC_VERS                      Type  DZEIVR  ,
              PO_UNIT                       Type  BSTME ,
              PUR_GROUP                     Type  EKGRP ,
              AUTO_P_ORD                    Type  KAUTB ,
              "BATCH_MGMT Type  XCHPF ,
              PUR_VALKEY                    Type  EKWSL ,
              "GR_PR_TIME Type  WEBAZ ,
              COMM_CODE                     Type  STAWN ,
              COUNTRYORI                    Type  HERKL ,
              MRP_TYPE                      Type  DISMM ,
              REORDER_PT                    Type  MINBE ,
              MRP_CTRLER                    Type  DISPO ,
              LOTSIZEKEY                    Type  DISLS ,
              MINLOTSIZE                    Type  BSTMI ,
              MAXLOTSIZE                    Type  BSTMA ,
              FIXED_LOT                     Type  BSTFE ,
              MAX_STOCK                     Type  MABST ,
              ROUND_VAL                     Type  BSTRF ,
              PROC_TYPE                     Type  BESKZ ,
              SPPROCTYPE                    Type  SOBSL ,
              ISS_ST_LOC                    Type  LGPRO ,
              SLOC_EXPRC                    Type  LGFSB ,
              PLND_DELRY                    Type  PLIFZ ,
              GR_PR_TIME                    Type  WEBAZ ,
              SM_KEY                        Type  FHORI ,
              SAFETY_STK                    Type  EISBE ,
              PLNG_PLANT                    Type  PRWRK ,
              AVAILCHECK                    Type  MTVFP ,
              DEP_REQ_ID                    Type  SBDKZ ,
              ISSUE_UNIT                    Type  AUSME ,
              STGE_BIN                      Type  LGPBE ,
              BATCH_MGMT                    Type  XCHPF ,
              STGEPERIOD                    Type  MAXLZ ,
              STGE_PD_UN                    Type  LZEIH ,
              MINREMLIFE                    Type  MHDRZ ,
              SHELF_LIFE                    Type  MHDHB ,
              PERIOD_IND_EXPIRATION_DATE    Type  DATTP ,
              ROUND_UP_RULE_EXPIRATION_DATE Type  RDMHD ,
              STOR_PCT                      Type  MHDLP ,
              QM_AUTHGRP                    Type  QMATAUTH  ,
              QM_PROCMNT                    Type  QMPUR ,
              CTRL_KEY                      Type  SSQSS ,
    *           Type  ART ,
    *           Type  AKTIV ,
              VAL_CAT                       Type  BWTTY_D ,
              VAL_CLASS                     Type  BKLAS ,
              PRICE_CTRL                    Type  VPRSV ,
    * NEW ADDITION
              STD_PRICE                     Type  STPRS,
              PRICE_UNIT                    Type  PEINH ,
              MOVING_PR                     Type  VERPR ,
              QTY_STRUCT                    Type  CK_EKALREL  ,
              ORIG_GROUP                    Type  HRKFT ,
              ORIG_MAT                      Type  HKMAT ,
              VARIANCE_KEY                  Type  AWSLS ,
              PROFIT_CTR                    Type  PRCTR ,
              LANGU                         Type SPRAS,
           END OF t_master_data.
    *                  I N T E R N A L   T A B L E S
    DATA:
    *     Internal table of type t_master_data
          ist_master_data TYPE TABLE OF t_master_data,
    *     Internal table of type BAPIMATHEAD
          ist_headdata    TYPE TABLE OF BAPIMATHEAD,
    *     Internal table of type BAPI_MAKT
          ist_mat_desc    TYPE TABLE OF BAPI_MAKT,
    *     Internal table of type BAPI_MAKT
          ist_uom         TYPE TABLE OF BAPI_MARM,
    *     Internal table of type BAPI_MAKTX
          ist_uom_x       TYPE TABLE OF BAPI_MARMX.
    *                   G L O B A L   V A R I A B L E S
    DATA:
          it_num     TYPE num10,
    *     Global variable of type truxs_t_text_data
          it_raw     TYPE truxs_t_text_data.
    *                       W O R K   A R E A S
    DATA:
    *     Work area of type t_master_data
          wa_master_data                TYPE t_master_data,
    *     Work area of type bapimathead
          wa_bapimathead                TYPE BAPIMATHEAD,
    *     Work area of type bapi_mara
          wa_client_data                TYPE BAPI_MARA,
    *     Work area of type bapi_marax
          wa_client_data_x              TYPE  BAPI_MARAX,
    *     Work area of type bapi_marc
          wa_plant_data                 TYPE BAPI_MARC,
    *     Work area of type bapi_marcx
          wa_plant_data_x               TYPE BAPI_MARCX,
    *     Work area of type bapi_mard
          wa_storage_location_data      TYPE BAPI_MARD,
    *     Work area of type bapi_mardx
          wa_storage_location_data_x    TYPE BAPI_MARDX,
    *     Work area of type bapi_mbew
          wa_valuation_data             TYPE BAPI_MBEW,
    *     Work area of type bapi_mbewx
          wa_valuation_data_x           TYPE BAPI_MBEWX,
    *     Work area of type bapi_mard
          wa_mat_desc                   TYPE BAPI_MAKT,
    *     Work area of type bapi_marm
          wa_uom                        TYPE BAPI_MARM,
    *     Work area of type bapi_marmx
          wa_uom_x                      TYPE BAPI_MARMX,
    *     Work area of type mbapi_mpgd
          wa_planning_data              TYPE BAPI_MPGD,
    *     Work area of type mbapi_mpgdx
          wa_planning_data_x            TYPE BAPI_MPGDX,
    *     Work area of type mbapi_mpgd
          wa_return                     TYPE BAPIRET2.
    *                          P A R A M E T E R S
    PARAMETERS:
    *     Parameter of type rlgrap-filename
          p_file TYPE  rlgrap-filename.
    *               A T   S E L E C T I O N   S C R E E N
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *                S T A R T - O F - S E L E C T I O N.
    START-OF-SELECTION.
    * To upload data from flat file
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_line_header        = 'X'
          i_tab_raw_data       = it_raw       " WORK TABLE
          i_filename           = p_file
        TABLES
          i_tab_converted_data = ist_master_data[]  "ACTUAL DATA
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      IF sy-subrc = 0.
        LOOP AT ist_master_data INTO wa_master_data.
          it_num = wa_master_data-PROFIT_CTR.
          wa_master_data-PROFIT_CTR = it_num.
          MOVE-CORRESPONDING wa_master_data to wa_bapimathead.
          MOVE-CORRESPONDING wa_master_data to wa_client_data.
          wa_client_data_x-MATL_GROUP = 'X'.
          wa_client_data_x-BASE_UOM = 'X'.
          wa_client_data_x-PO_UNIT = 'X'.
          wa_client_data_x-DOCUMENT = 'X'.
          wa_client_data_x-SIZE_DIM = 'X'.
          wa_client_data_x-BASIC_MATL = 'X'.
          wa_client_data_x-PUR_VALKEY = 'X'.
          wa_client_data_x-NET_WEIGHT = 'X'.
          wa_client_data_x-UNIT_OF_WT = 'X'.
          wa_client_data_x-DIVISION = 'X'.
          wa_client_data_x-BATCH_MGMT = 'X'.
          wa_client_data_x-QM_PROCMNT = 'X'.
          wa_client_data_x-MINREMLIFE = 'X'.
          wa_client_data_x-SHELF_LIFE = 'X'.
          wa_client_data_x-STOR_PCT = 'X'.
          wa_client_data_x-ROUND_UP_RULE_EXPIRATION_DATE = 'X'.
          wa_client_data_x-PERIOD_IND_EXPIRATION_DATE = 'X'.
          wa_client_data_x-ITEM_CAT = 'X'.
          MOVE-CORRESPONDING wa_master_data to wa_plant_data.
          wa_plant_data_x-PLANT  = wa_master_data-plant.
          wa_plant_data_x-PUR_GROUP = 'X'.
          wa_plant_data_x-ISSUE_UNIT = 'X'.
          wa_plant_data_x-MRP_TYPE = 'X'.
          wa_plant_data_x-MRP_CTRLER = 'X'.
          wa_plant_data_x-PLND_DELRY = 'X'.
          wa_plant_data_x-GR_PR_TIME = 'X'.
          wa_plant_data_x-LOTSIZEKEY = 'X'.
          wa_plant_data_x-PROC_TYPE = 'X'.
          wa_plant_data_x-SPPROCTYPE = 'X'.
          wa_plant_data_x-SAFETY_STK = 'X'.
          wa_plant_data_x-MINLOTSIZE = 'X'.
          wa_plant_data_x-MAXLOTSIZE = 'X'.
          wa_plant_data_x-FIXED_LOT = 'X'.
          wa_plant_data_x-ROUND_VAL = 'X'.
          wa_plant_data_x-MAX_STOCK = 'X'.
          wa_plant_data_x-DEP_REQ_ID = 'X'.
          wa_plant_data_x-SM_KEY = 'X'.
          wa_plant_data_x-STGEPERIOD = 'X'.
          wa_plant_data_x-STGE_PD_UN = 'X'.
          wa_plant_data_x-CTRL_KEY = 'X'.
          wa_plant_data_x-BATCH_MGMT = 'X'.
          wa_plant_data_x-AVAILCHECK = 'X'.
          wa_plant_data_x-AUTO_P_ORD = 'X'.
          wa_plant_data_x-COMM_CODE = 'X'.
          wa_plant_data_x-COUNTRYORI = 'X'.
          wa_plant_data_x-PROFIT_CTR = 'X'.
          wa_plant_data_x-ISS_ST_LOC = 'X'.
          wa_plant_data_x-VARIANCE_KEY = 'X'.
          wa_plant_data_x-SLOC_EXPRC = 'X'.
          wa_plant_data_x-QM_AUTHGRP = 'X'.
          MOVE-CORRESPONDING wa_master_data to wa_planning_data.
          wa_planning_data_x-PLANT = wa_master_data-plant.
          wa_planning_data_x-PLNG_PLANT = 'X'.
          MOVE-CORRESPONDING wa_master_data to wa_storage_location_data.
          wa_storage_location_data_X-PLANT = wa_master_data-plant.
          wa_storage_location_data_X-STGE_LOC = wa_master_data-stge_loc.
          wa_storage_location_data_X-STGE_BIN = 'X'.
          MOVE-CORRESPONDING wa_master_data to wa_valuation_data.
          wa_valuation_data-VAL_AREA = '1000'.
          wa_valuation_data_X-VAL_AREA = '1000'.
          wa_valuation_data_X-PRICE_CTRL = 'X'.
          wa_valuation_data_X-MOVING_PR  = 'X'.
          wa_valuation_data_X-PRICE_UNIT = 'X'.
          wa_valuation_data_X-STD_PRICE = 'X'.
          wa_valuation_data_X-VAL_CLASS = 'X'.
          wa_valuation_data_X-ORIG_GROUP = 'X'.
          wa_valuation_data_X-QTY_STRUCT = 'X'.
          wa_valuation_data_X-ORIG_MAT = 'X'.
          MOVE-CORRESPONDING wa_master_data to wa_mat_desc.
          APPEND wa_mat_desc to ist_mat_desc.
          IF wa_master_data-PRICE_CTRL = 'S' AND wa_master_data-STD_PRICE IS INITIAL.
            WRITE:/ 'Standard Price not maintained for material ',wa_master_data-MATERIAL.
          ELSE.
            CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
              EXPORTING
                HEADDATA             = wa_bapimathead
                CLIENTDATA           = wa_client_data
                CLIENTDATAX          = wa_client_data_x
                PLANTDATA            = wa_plant_data
                PLANTDATAX           = wa_plant_data_X
                PLANNINGDATA         = wa_planning_data
                PLANNINGDATAX        = wa_planning_data_x
                STORAGELOCATIONDATA  = wa_storage_location_data
                STORAGELOCATIONDATAX = wa_storage_location_data_x
                VALUATIONDATA        = wa_valuation_data
                VALUATIONDATAX       = wa_valuation_data_x
              IMPORTING
                RETURN               = wa_return
              TABLES
                MATERIALDESCRIPTION  = ist_mat_desc.
            Write:/ wa_return-message.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
            Clear: wa_bapimathead
             ,wa_client_data
             ,wa_client_data_x
             ,wa_plant_data
            ,wa_plant_data_X
            ,wa_planning_data
             ,wa_planning_data_x
            ,wa_storage_location_data
             ,wa_storage_location_data_x
             ,wa_valuation_data
           ,wa_valuation_data_x.
          ENDIF.
          REFRESH ist_mat_desc.
        ENDLOOP.
      ELSE.
        Write:/ text-001.
      ENDIF.
    In the above code note how i have taken the same names for the fields in internal table as they are in the BAPI so that the mapping of data becomes easier, since i use MOVE CORRESPONDING.
    Regards,
    Shraddha
    Edited by: shraddha85 on Jan 31, 2011 9:49 AM

  • User exit for actual dates in CJ20N

    I have a req,  When i start any activity i enter date in user field in actual dates as displayed in below pic
    Now when i enter date in user field it should be copied to actual  start date field in dates tab as shown in below pic
    Kindly suggest the user exit needed for it
    Best Regards,
    Nitesh H Panchal

    Hi Nilesh,
    Try this with Substitution & Validation rule.
    You want AFVGD-ISDD should have same detail as of AFVGD-USR08.
    However with the help ABAPer you can achieve this easily.
    Regards,
    Pranav

Maybe you are looking for

  • 401 Unauthorized after too many tables in AXL SQL Query

    Hi... I have an app that sends several AXL calls. All work fine with the exception of one accessing MGCP data via the AXL SQL QUERY command. I have found that if I only do a couple of tables it works fine, but if I had in more than 3 I get a 401 unau

  • No services to start

    I'm an undergrad student attempting to install PeopleSoft for a class. I'm using a laptop, Win7 Pro x64, as the "client," or developer station. I'm trying to install Oracle DB 11gR2 on said client, and can't get it working. Apparently I'm having uniq

  • Best practices for 40 MB limit?

    I use Catalyst a lot for prototyping and adding visual elements during the development process. Now, for the first time, a designer has given me a PSD file of an entire application design. I'd like to load it into Catalyst, as advertised! But the fil

  • Role Import in CUP

    Hi There are two options of choosing the source system for role import in CUP 1. Back end system 2. ERM I am facing problems in importing roles in CUP from ERM. The system shows a successful import but the number of roles imported are Zero. However i

  • Power Map Won't Remain Installed

    Trying to install Power Map on my Lenovo Carbon X1 Windows 8.1(for 64 bit Excel). Each time I start Excel I'm required to go to COM ADD-INS to get Power Map to show up in the ribbon. Then when it is in the ribbon, I get an error. I've un and reinstal