Business Process - Sales Process through Distribution point but revenue booked to Manufacturing Profit Center

Dear Expats
Our company now planning to decentralized the sales by introducing Sales distribution Point.
We have three manufacturing plant and every manufacturing plant are individual profit center.
Material is same.
Now company is planning to introducing sales distribution point.
Goods transfer from three manufacturing plant to sales distribution point and sale from the distribution point.
Now our requirement is - revenue will be booked to every manufacturing profit center.
How can we process this business process.
Note : We don't want to create separate material code - manufacturing plant wise.
Regards
Tarek H Chy

Hi 
I have the issue like..
1.  For each line item of the sales order check, whether the profit center is filled or not, if it is not filled then determine the profit center and populate.
2. If material of the line item is "sub component code" of a material that is "Offering component code", then compare the profit centers of line item with the profit center maintained for the material that is offering component code.  If the profit centers are different, replace the sales order line item profit center with the profit center of the offering component code material.
3.  Above activities should happen when the sales order is saved.
can somebody tell me which user exit ?? where coding can be dine.

Similar Messages

  • Difference between business process, sales process and order process

    what is the difference between business process, sales process and order process?

    Dear Gopala,
    business process is a general definition of the process which you have:
    for example, you get an order, you have no goods, but you can produce them, you start an assambly processing, the production order will be created, then the goods will be prepatred, then the delivery will be created, the goods issue booked then your customer gets thwe goods and send the delivery confirmation, you create an invoice etc.etc.
    sales process is a part of  a business process.
    Sales process shows how you sell the goods, there are different sales document  categories to do this: sales orders, contracts, scheduling agreements etc.
    order process is only one of possibilities of the sales process.
    Order process is used if you get really a one-time (or at lease not on a regular basis many times) the simple orders where your customer says what goods he would like to receive and when. Then you create a sales order (in dialog transaction VA01) and can create a delivery. There are different types of sales orders in the standard. The customizing of sales order types is available under the transaction VOV8.
    I hope, this info help you a little bit further to understand SD design.
    Kind regards,
    Akmal Vakhidov
    Development Support SD, SAP

  • Third party sales revenue getting posted to Profit Center valuation in COPA

    Hi,
    We have activate profit center valuation for our operating concern.
    During normal OTC cycle (third party sales), all the data is flowing correctly in legal view for the COPA document
    In profit center valuation, only revenue is flowing and no other values like discounts, standard costs are flowing to Profit center valuation view
    My question why only revenue is flowing and not any other values. Is this way system should behave
    Thanks.

    If you have created new GL Accounts to map the Third party scenario, the pre-requesite is that you might need to create cost elemenet with category 11 or 12.
    Further only assignments are condition types assigned to value fields.
    Check if the billing type is reset under TCode KE4W.

  • Intercompany process-F2 billing document profit center assignment

    Dear SAP friends
    I would really appreciate if somebody could help us identify the following profit center billing document assignment issue.
    We have a intercompany process scenario:
    Company code A, sales organization A, Plant A.
    Company Code B, Sales organization B, Plant B.
    Sales organization A is the sales party which belong to company code A, The goods is delivered from Plant B which belongs to company B. The F2 billing document will be posted to Sales organization A. We have already assigned the profit center C in the material master of all the plants, sales organization level we could think about. During the sales order and delivery creation, the profit center C is automatically determined in the sales order and delivery level. However the profit center C can not be automatically determined in the F2 billing document level.  We understand we could maintain automatic account assignment of revenue elements in CO-profit center accounting area. However this  would be our last choice.
    We have no issues with F2 billing document profit center determination if it’s non-intercompany process. But with the intercompany process, the profit center can not be determined in the F2 billing document level.   Any idea would be greatly appreciated.
    Thanks
    Ning

    Ideally the profit centre from sales order should have been passed to subsequent document & should also be determined in Billing Document. You will have to check with FI consultant the probable reason, as they will be the correct consultant to look into the issue & mend it.
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Distribution Point Migration

    Hello,
    I have 1 primary and 100 secondary site (each secondary having MP and DP role installed). I want to migrate CM2012 share distribution point for 100 secondary site. I have few question in that.
    1.Currently all the secondary contain : more than 250 packages in SMSPKG$ folder and DATAACCESS shared folder. If I convert to shared DP and attach cm2012..How distribution point works. Should I need to distribute 250 package to the shared one or it will
    copy the package from SMSPKG$ folder and store in content lib, or should I redistribute the package to shared DP's? 
    2.Once I convert the share DP it losses 2007 primary communication?
    3.what about the DATAACCESS folder once migrate share DP.. still use old one?

    Hi,
    1. The conversion process will convert all Migrated packages to the new contentlibrary no need to redistribute them.
    2. Yes
    3. From TechNet :
    http://technet.microsoft.com/en-us/library/gg712275.aspx
    "The upgrade process creates a copy of the migrated content that is stored on the distribution point, and then converts this copy to the single instance content store. When Configuration Manager converts a package to the single instance content store, it
    deletes that package from the SMSPKG share on the distribution point computer unless the package has one or more advertisements that are configured to
    Run program from distribution point. "
    Regards,
    Jörgen 
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Is there a way to avoid having a content library on a site server when the Distribution Point role is not installed on that server (disk cost issue)?

    Hello,
    I don't think it is possible, but my goal is to start a discussion about content libraries and maybe suggest something for a future release or version of Configuration Manager.
    Actually, based on Configuration Manager Technet documentation, Configuration Manager creates a content library on each site server and on each distribution point.
    Often, when designing the architecture, people will offload the distribution point role from the site server to an external server (and add the role to other servers too for redundancy). They could also do the same for the Management Point role, but this
    is not related to content library. The idea is to save the site server from having to deal with clients for software distribution (applications, software updates, OS, etc.), this is especially true for organizations having a large number of clients and/or
    primary site servers involved in a hierarchy. Doing so will allow more resources on the site server to deal with the database and also replication in the case of a hierarchy.
    When doing that, you still have to maintain a content library on the site server and the thing is this library will usually become huge, especially for organizations having more than 1000 applications (add also OS images to this). Will the content library
    on the site server become as huge as the one for a distribution point having a copy of all content? I guess the answer is yes.
    I know that Pull distribution points will help offloading the task from the site server to distribute content to distribution points, but, correct me if I'm wrong, you still have to maintain a content library on the site server when using them, and they
    will not make the content library smaller on the site server. Also, I don't like the fact that you lose the rate limits feature with Pull DPs, but this is another story.
    Storage cost is high and in this scenario, it hurts to have to pay this cost for a content library not used by the clients, but only to distribute content to DPs.
    Correct me if I'm wrong, but the key component here is Distribution Manager on the site server; this is the one which has to maintain a content library to do its job.
    It would be nice if we could have a way to elect a specific distribution point (not on the site server) as the Distribution Manager for a site, that main DP would hold a copy of all content by default, but would be used to distribute content to other DPs
    and avoid the content library on the site server. Said differently, the Distribution Manager component would become a site system role that could be transferred outside the site server.
    Tnx for comments, answers or suggestions.
    Patrick

    There is no way to avoid that the contentlib will be placed on the site server.
    I don‘t agree that storage cost is high. It might be true for fast storage, but that‘s not needed for it.
    Torsten Meringer | http://www.mssccmfaq.de

  • Distribution point not installing

    I'm having some issues with a new Distribution point. This is my first Server 2012 R2 distribution point and after installing the roles and features (I believe are required) the distribution point does not install. I can't see anything on the distribution
    point, nor can I see any configuration on the SCCM console. It displays as a site system with a role of Distribution point but distmgr.log does not display any activity except
    Successfully modified DP ["Display=\\DP02.Domain.net\"]MSWNET:["SMS_SITE=CTG"]\\DP02.Domain.net\ Drizzle Role to 1 SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:13 5096 (0x13E8)
    ConfigureDP SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:13 5096 (0x13E8)
    IISPortsList in the SCF is "80,80". SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:13 5096 (0x13E8)
    IISSSLPortsList in the SCF is "443,443". SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:13 5096 (0x13E8)
    IISWebSiteName in the SCF is "". SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:13 5096 (0x13E8)
    IISSSLState in the SCF is 480. SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:13 5096 (0x13E8)
    DP registry settings have been successfully updated on SECROWFIL03.sec.ssegroup.net SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:42 5096 (0x13E8)
    STATMSG: ID=9501 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=\\MP01.Domain.net SITE=CTG PID=5580 TID=5096 GMTDATE=Wed Aug 13 10:20:42.786 2014 ISTR0="["Display=\\DP02.Domain.net\"]MSWNET:["SMS_SITE=CTG"]\\DP02.Domain.net\"
    ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=404 AVAL0="["Display=\\DP02.Domain.net\"]MSWNET:["SMS_SITE=CTG"]\\DP02.Domain.net\" SMS_DISTRIBUTION_MANAGER 13/08/2014
    11:20:42 5096 (0x13E8)
    STATMSG: ID=9503 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=\\MP01.Domain.net SITE=CTG PID=5580 TID=5096 GMTDATE=Wed Aug 13 10:20:42.788 2014 ISTR0="["Display=\\DP02.Domain.net\"]MSWNET:["SMS_SITE=CTG"]\\DP02.Domain.net\"
    ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=404 AVAL0="["Display=\\DP02.Domain.net\"]MSWNET:["SMS_SITE=CTG"]\\DP02.Domain.net\" SMS_DISTRIBUTION_MANAGER 13/08/2014
    11:20:42 5096 (0x13E8)
    ConfigurePXE SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:42 5096 (0x13E8)
    Translated server name SECROWFIL03.sec.ssegroup.net to sec.ssegroup.net\SECROWFIL03.sec.ssegroup.net. SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:43 5096 (0x13E8)
    CWmi::Connect() failed to connect to
    \\DP02.Domain.net\root\SCCMDP. Error = 0x800706BA SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:44 5096 (0x13E8)
    STATMSG: ID=2391 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=\\MP01.Domain.net SITE=CTG PID=5580 TID=5096 GMTDATE=Wed Aug 13 10:20:44.002 2014 ISTR0="["Display=\\DP02.Domain.net\"]MSWNET:["SMS_SITE=CTG"]\\DP02.Domain.net\"
    ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=404 AVAL0="["Display=\\DP02.Domain.net\"]MSWNET:["SMS_SITE=CTG"]\\DP02.Domain.net\" SMS_DISTRIBUTION_MANAGER 13/08/2014
    11:20:44 5096 (0x13E8)
    Failed to connect to DP WMI provider SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:44 5096 (0x13E8)
    CDistributionManager::ConfigurePXE failed; 0x800706ba SMS_DISTRIBUTION_MANAGER 13/08/2014 11:20:44 5096 (0x13E8)
    Any Ideas?
    If anyone has the list of Operating system requirements for a DP running on Server 2012R2 it would be appreciated also.

    I've just tried to reach the admin$ from a remote PC and (from the local server) using PSexec and I can read the admin$ directory without any issues so there is access to the remote DP. I haven't yet looked at the firewall logs but only because
    the firewall ports are already allowing traffic to our other DP's.
    do the firewall rules differ from server 2008, 2012 and 2012R2? (I have previous 2008 and 2012 servers but this is the first R2 server we are setting up as a DP.)
    The firewall rules are the same for 2k8 and 2k12.
    When you reach the admin$ share are you using Psexec as the system account and not your use account ? (-i -s as Torsten mentionned) ?
    Do you have any other firewall maybe between the machine and the site Server ?
    Do you have the SCCMContentLib folder created on the DP ? (On the drive specified in the wizard).
    Benoit Lecours | Blog: System Center Dudes

  • QUERY TO FIND FREE DISKSPACE IN SCCM 2012 DISTRIBUTION POINT

    this is the query to get free disk space on distribution point ,but this is not working for sccm 2012 ,please help
    Select
    Distinct
    SD
    .Name0,
    SR
    .RoleName,
    LD
    .DeviceID0,
    LD
    .FreeSpace0
    * 100
    /  LD.Size0
    'Free Disk Space'
    From
    v_R_System SD
    Join
    v_Gs_Logical_Disk LD on SD.ResourceId
    = LD.ResourceId
    Join
    v_SystemResourceList SR on SD.Netbios_Name0
    = SR.ServerName
    Where
    LD.DriveType0
    = 3
    and
    SR.RoleName
    =
    'SMS Distribution Point'
    ankith

    you're probably getting 0 rows... 
    v_SystemResourceList.ServerName contains the netbios+domain name, while v_Gs_Logical_Disk.Netbios_Name0 only contains the netbios name (no domain), therefore the join doesn't find any matching rows...
    You need to trim the domain name from the field {LEFT(SRL.ServerName,CHARINDEX('.', SRL.ServerName)-1)}
    try this query instead:
    SELECT DISTINCT
    SYS.Name0 As 'Device'
    ,SRL.RoleName As 'Role'
    ,LD.DeviceID0 As 'Disk',LD.FreeSpace0,LD.Size0
    ,LD.FreeSpace0 * 100 / LD.Size0 As 'Free Disk Space'
    FROM
    v_R_System As SYS
    Join v_Gs_Logical_Disk As LD on SYS.ResourceId = LD.ResourceId
    Join v_SystemResourceList As SRL on SYS.Netbios_Name0 = LEFT(SRL.ServerName,CHARINDEX('.', SRL.ServerName)-1)
    WHERE
    LD.DriveType0 = 3
    And SRL.RoleName = 'SMS Distribution Point'
    Additionally, if you notice that the LD.FreeSpace0 field returns NULL, you need to enable the hardware Inventory collection of this information [ client settings > hardware inventory > Logical Disk (SMS_LogicalDisk) > Free Space (MB) ]... Then initiate
    the hardware Inventory cycle action and it should show results...
    I don't have this field inventoried, so I cannot confirm the accuracy of the query...

  • Remove package from Distribution Point

    I have been fighting with an OS deployment for the last day. The log was showing it was unable to find the package p0100001 which was my boot image. I eventually got it working as I failed to configure my boundary correctly. But it got me wondering...
    In SCCM 2007, it was pretty straight forward on how to remove packages from distribution points. But I still can't figure out how to remove a package, specifically a boot image, from a DP. I can view the distribution in the monitoring section and see the
    package successfully deployed, but what if I wanted to remove that boot image from the DP? How is this done. I'm sure it's staring me in the face, but I'm missing it. Thanks!

    I realize this is an old post, but I am dealing with the same issue regarding the removal of deployment package contents from Distribution Points.  After removing a Distribution Point from the Contents Locations tab on one of my Deployment Packages,
    how long does it take for the deployment package to be removed from the distribution point.  I have removed a large deployment package from a distribution point, but am not seeing any increase in the available free space.
    Any help would be appreciated.
    Muskie
    Muskie

  • Deriving profit center during manual bank statement processing (FF67)

    Hi Friends,
    We are using new GL with document splitting and profit center is a mandatory field for us. We have 1 company code and 3 branches which we have created as profit centers. We have one customer which is supplied to by all the 3 branches. Each of the branches does its own billing. The customer however pays a lump-sum amount for all outstanding invoices weekly once. When we create the billing documents we are posting to different profit centers (branch-wise). The following entries get posted:
    In Branch 1
    Customer a/c Dr ----------- PC1
    To Revenue  ---------------- PC1
    In Branch 2
    Customer a/c Dr ----------- PC2
    To Revenue ----------------- PC2
    We receive the payment through wire transfer for both the billing documents. When we post the bank statement manually, the following entries should be created:
    Incoming wire transfer a/c Dr
    To Customer
    Bank main a/c Dr
    To Incoming wire transfer
    However, this is not being posted as SAP is not able to find the profit center.
    When I update a default profit center in FAGL3KEH for the customer reconciliation a/c, the Incoming wire transfer a/c Dr to Customer a/c Cr posting takes place. However, the Bank main a/c Dr to Incoming wire transfer a/c Cr posting is failing with the error "Balancing field profit center not found".
    Any help would be great.
    Thanks,
    Sameer

    Hi Mukhtar,
    The bank GL accounts are assigned to the item category 04000 (Cash Account). The document type BS (bank statement) is assigned to business transaction 0400 (bank account statement) and business transaction variant 0001. The base item category for splitting the business transaction 0400 is 04000. Also, split automatically is ticked. So I think the profit center from the incoming wire transfers a/c (which is posted in posting area 2 in FF67) should be picked up. But instead I am getting profit center error.
    Thanks,
    Sameer

  • Failed to Validate Package on Distribution Point - Straight After Successful Distribution

    Hello,
    I have an updates deployment package which I have sent out to a distribution point and the status reports that the distribution was successful. If however I then do a validation of the same package, or wait for SCCM to do a validation, I get the status that
    it Failed to Validate Package on Distribution Point - the package is either missing or corrupted, please redeploy. If I then redeploy the package it once again goes fine and everything seems good but when another validation takes place I get the
    same error message again.
    The same package is fine on other distribution points and other packages are fine on the distribution point that has the issue.
    Are there are logs that will help me see why SCCM thinks the package is missing or corrupted?
    Thank you for any help.
    Kind Regards,
    Stephen

    Hello,
    Having done a bit more work on this issue I seemed to have managed to get it fixed. It turned out that the issue was due to an incorrect package ini file.
    On the distribution point there is an ini file in the SCCMContentLib/PkgLib directory that has the same name as the distribution package. That ini file is supposed to refernce all the packages that are part of the distribution package but in my
    case the ini file was no longer correct. Since the distribution package had been created and first sent out a number of the updates had expired and so should no longer be sent out to distribution points but for some reason the ini file still contained a reference
    to them so when a validation took place it was complaining that there were package files missing. Deleting the ini file and redistributing the package sorted the problem as the ini file was created once again and this time it only contains references to the
    packages that were actually sent to the distribution point.
    Many thanks for your help.

  • Business Area vs. Profit Center Accounting

    Hi all,
    I have a doubt regarding this issue.
    Our customer is a holding composed by 3 legal entities, each one with its own Balance Sheet. The company produces in such a way that they need to plan production and purchases globally (for the 3 legal entities).
    I searched how to deal with this, and if a create 3 different company codes it is really difficult to plan production and purchases for the 3 company codes globally. The most suitable solution would be to use STO process (stock transfer orders), but the purchases would be done by only one company code and this is not what the customer wants because only this company code would have tax credits.
    I am now thinking about having one company code divided into 3 different business areas or profit centers, but I am not sure which solution will be better, taking into account that each legal entity must submit a separate Balance Sheet. In Sap Help, I found that it is better to have different business areas if each organizational unit must submit external presentatios. But I was told that Profit Center Accounting came to replace Business Area. Is that right? May I use Business Area to do so or Profit Centers ? Which one is the most reccomendable?
    Thanks in advance.
    Regards,
    Florencia.

    hi,
    if u r setting as a business area,still u need to follow the reporting procedures to the local authorities, such as banks,tax,etc. but,if u do it as a profit center,it will come under ur internal entity (controlling), and for the local authorities,ur holding entity will take care of reporting,etc.
    thanks..

  • Vendor Ageing Report Business Area and Profit Center wise

    Dear Experts,
    I have a requirement where user wants a Report for Vendor Ageing Business Area and Profit Center wise.I checked Standard T Codes but the same were Business Area wise but i could'nt find Profit Center wise Report.If their is any standard functionality then please advice.
    We are using SAP ECC 6.0 Classic GL with Spl Purpose Ledger active.Can someone please advice can i derive such a report through Report Painter.If possible please advice in details.
    Your Valuable inputs shall be appreciated....
    Regards
    Rahul

    Hi Durga,
    Can you please elaborate further on the same how you are determining the Report in FBL1N.What are the prerequisited to be taken care of and some further details on the same.
    My Bus Area is not as same as Profit Center eg
    BA          PC
    FXRT     RT0001 / 2 / 3
    TMMG   TM0001/ 2 / 3
    LTOB     LO0001/ 2 / 3
    I checked in my system but we do not have the Program for the following T Codes
    S_PCO_36000218 - Segment Receivables
    S_PCO_36000219 - Segment Payables
    S_AC0_52000887 - Profit Center Receivables
    S_AC0_52000888 - Profit Center Payables
    Regards
    Rahul

  • Profit Center not getting uploaded through BAPI for MM01. Pls help

    Hello all,
                  I am getting an errror while uploading a file through BAPI for MM01 , The error says
    Error:
    Profit center 1000/sslcommon does not exist
    for material: AC2
    *& Report  ZBAPI_DUMMY
    REPORT  ZBAPI_MM01.
    *& Report  ZBAPI2
    TABLES
    FLAGS *
    DATA: F_STOP. " Flag used to stop processing
    DATA DECLARATIONS *
    DATA : V_EMPTY TYPE I, " No. of empty records
    V_TOTAL TYPE I. " Total no. of records.
    STRUCTURES & INTERNAL TABLES
    *--- BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD,  " Header Segment with Control
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2, " Return Parameter
    BAPI_MARDL LIKE BAPI_MARD,
    BAPI_MARDX LIKE BAPI_MARDX.
    *--- Internal table to hold excel file data
    DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    *--- Internal table to hold Matetrial descriptions
    DATA: BEGIN OF IT_MAKT OCCURS 100.
            INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- Internal to hold the records in the text file
    DATA : BEGIN OF IT_DATA OCCURS 100,
    WERKS(4), " Plant
    MTART(4), " Material type
    MATNR(18), " Material number
    MATKL(9) , " Material group
    MBRSH(1), " Industry sector
    MEINS(3), " Base unit of measure
    SPART(2), " Division
    EKGRP(3), " Purchasing group
    PRCTR(10), " Profit Center
    VPRSV(1), " Price control indicator
    BKLAS(4), "Valuation Class
    *stprs(12), " Standard price
    PEINH(3), " Price unit
    SPRAS(2), " Language key
    MAKTX(40), " Material description
    LGORT(4) , " storage location
    DISMM(2) , "MRP TYPE
    VERPR(23), " Moving Average Price
    MTVFP(2) , " Availability Check
    DISLS(2) , "Lot Size
    DISPO(3) , "MRP Controller
    BESKZ(1) , "Procurment Type
    FHORI(3) , "SCHEDMARGIN KEY
    PERKZ(1) , "Period Indicator
    END OF IT_DATA.
    SELECTION SCREEN. *
    SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
    PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY  " Input File
    PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
    PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
    PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
    P_BEGROW TYPE I DEFAULT 2 NO-DISPLAY,
    P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
    P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK SCR1.
    AT SELECTION-SCREEN *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    *--- Validating file
      PERFORM VALIDATE_FILE USING P_FILE.
    START-OF-SELECTION
    START-OF-SELECTION.
    *--- Perform to convert the Excel data into an internal table
      PERFORM CONVERT_XLS_ITAB.
      IF NOT IT_DATA[] IS INITIAL.
    *--- Perform to delete Header lines
        PERFORM DELETE_HEADER_EMPTY_RECS.
      ENDIF.
    END OF SELECTION. *
    END-OF-SELECTION.
    *--- Perform to upload Material Master data
      PERFORM UPLOAD_MATMAS.
    Form : validate_input_file
    Description : To provide F4 help for file if read from PC
    FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = F_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
      ENDIF.
    ENDFORM. " validate_input_file
    *& Form CONVER_XLS_ITAB
    text
    FORM CONVERT_XLS_ITAB.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME    = P_FILE
          I_BEGIN_COL = P_BEGCOL
          I_BEGIN_ROW = P_BEGROW
          I_END_COL   = P_ENDCOL
          I_END_ROW   = P_ENDROW
        TABLES
          INTERN      = IT_INTERN.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *--- Perform to move the data into an internal data
      PERFORM MOVE_DATA.
    ENDFORM. " CONVERT_XLS_ITAB
    *& Form MOVE_DATA
    text
    FORM MOVE_DATA.
      DATA : LV_INDEX TYPE I.
      FIELD-SYMBOLS <FS>  .
    *--- Sorting the internal table
      SORT IT_INTERN BY ROW COL.
      CLEAR IT_INTERN.
      LOOP AT IT_INTERN.
        MOVE IT_INTERN-COL TO LV_INDEX.
    *--- Assigning the each record to an internal table row
        ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS> .
    *--- Asigning the field value to a field symbol
        MOVE IT_INTERN-VALUE TO <FS> .
        AT END OF ROW.
          APPEND IT_DATA.
          CLEAR IT_DATA.
        ENDAT.
      ENDLOOP.
    ENDFORM. " MOVE_DATA
    *& Form DELETE_HEADER_EMPTY_RECS
    To delete the Header and empty records
    FORM DELETE_HEADER_EMPTY_RECS.
      DATA: LV_TABIX LIKE SY-TABIX.
      IF NOT P_HEADER IS INITIAL.
        LOOP AT IT_DATA.
          IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
            DELETE IT_DATA FROM 1 TO P_HEADER.
    P_HEADER = 0.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
      CLEAR IT_DATA.
    *--- To delete the empty lines from internal table
      LOOP AT IT_DATA.
        LV_TABIX = SY-TABIX.
        IF IT_DATA IS INITIAL.
          V_EMPTY = V_EMPTY + 1.
          DELETE IT_DATA INDEX LV_TABIX..
        ENDIF.
      ENDLOOP.
      CLEAR IT_DATA.
    *--- Total no of recs in file
      DESCRIBE TABLE IT_DATA LINES V_TOTAL.
      IF V_TOTAL = 0.
        MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
        F_STOP = 'X'.
        STOP.
      ENDIF.
    ENDFORM. " DELETE_HEADER_EMPTY_RECS
    *& Form UPLOAD_MATMAS
    to upload Material Master data
    FORM UPLOAD_MATMAS .
      LOOP AT IT_DATA.
    Header
        BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
        BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
        BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
        BAPI_HEAD-BASIC_VIEW = 'X'.
        BAPI_HEAD-PURCHASE_VIEW = 'X'.
        BAPI_HEAD-ACCOUNT_VIEW = 'X'.
        BAPI_HEAD-storage_view ='X'.
        bapi_head-mrp_view = 'X'.
        bapi_head-COST_view ='X'.
    Material Description
        REFRESH IT_MAKT.
        IT_MAKT-LANGU = IT_DATA-SPRAS.
        IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
        APPEND IT_MAKT.
    Client Data - Basic
        BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
        BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
       bapi_mara1-unit_of_wt = it_data-gewei.
        BAPI_MARA1-DIVISION = IT_DATA-SPART.
        BAPI_MARAX-MATL_GROUP = 'X'.
        BAPI_MARAX-BASE_UOM = 'X'.
        BAPI_MARAX-UNIT_OF_WT = 'X'.
        BAPI_MARAX-DIVISION = 'X'.
    Plant - Purchasing
        BAPI_MARC1-PLANT = IT_DATA-WERKS.
        BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
        BAPI_MARC1-PROFIT_CTR = IT_DATA-PRCTR.
        BAPI_MARC1-MRP_TYPE = IT_DATA-DISMM.
        BAPI_MARC1-AVAILCHECK = IT_DATA-MTVFP.
        BAPI_MARC1-LOTSIZEKEY = IT_DATA-DISLS.
        BAPI_MARC1-MRP_CTRLER = IT_DATA-DISPO.
        BAPI_MARC1-PROC_TYPE = IT_DATA-BESKZ.
        BAPI_MARC1-SM_KEY = IT_DATA-FHORI.
        BAPI_MARC1-PERIOD_IND = IT_DATA-PERKZ.
        BAPI_MARCX-PLANT = IT_DATA-WERKS.
        BAPI_MARCX-PUR_GROUP = 'X'.
        BAPI_MARCX-AVAILCHECK = 'X'.
        BAPI_MARCX-PROFIT_CTR = 'X'.
        BAPI_MARCX-MRP_TYPE = 'X'.
        BAPI_MARCX-MRP_CTRLER = 'X'.
        BAPI_MARCX-SM_KEY = 'X'.
        BAPI_MARCX-LOTSIZEKEY = 'X'.
       Storage Location.
        BAPI_MARDL-PLANT     = IT_DATA-WERKS.
        BAPI_MARDL-STGE_LOC = IT_DATA-LGORT.
        BAPI_MARDX-PLANT    = IT_DATA-WERKS.
        BAPI_MARDX-STGE_LOC = IT_DATA-LGORT.
    Accounting
        BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
        BAPI_MBEW1-VAL_CLASS = IT_DATA-BKLAS.
        BAPI_MBEW1-MOVING_PR = IT_DATA-VERPR.
       bapi_mbew1-std_price = it_data-stprs.
        BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
        BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEWX-PRICE_CTRL = 'X'.
        BAPI_MBEWX-STD_PRICE = 'X'.
        BAPI_MBEWX-PRICE_UNIT = 'X'.
        BAPI_MBEWX-MOVING_PR = 'X'.
    *--- BAPI to create material
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
        HEADDATA = BAPI_HEAD
        CLIENTDATA = BAPI_MARA1
        CLIENTDATAX = BAPI_MARAX
        PLANTDATA = BAPI_MARC1
        PLANTDATAX = BAPI_MARCX
    FORECASTPARAMETERS =
    FORECASTPARAMETERSX =
    PLANNINGDATA =
    PLANNINGDATAX =
    STORAGELOCATIONDATA = BAPI_MARDL
    STORAGELOCATIONDATAX = BAPI_MARDX
    VALUATIONDATA = BAPI_MBEW1
    VALUATIONDATAX = BAPI_MBEWX
    WAREHOUSENUMBERDATA =
    WAREHOUSENUMBERDATAX =
    SALESDATA = BAPI_MVKE1
    SALESDATAX = BAPI_MVKEX
    STORAGETYPEDATA =
    STORAGETYPEDATAX =
        IMPORTING
        RETURN = BAPI_RETURN
        TABLES
        MATERIALDESCRIPTION = IT_MAKT
    UNITSOFMEASURE =
    UNITSOFMEASUREX =
    INTERNATIONALARTNOS =
    MATERIALLONGTEXT =
    TAXCLASSIFICATIONS =
    RETURNMESSAGES =
    PRTDATA =
    PRTDATAX =
    EXTENSIONIN =
    EXTENSIONINX =
        IF BAPI_RETURN-TYPE = 'E'.
          WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,
    IT_DATA-MATNR.
        ELSEIF BAPI_RETURN-TYPE = 'S'.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT          =
         IMPORTING
           RETURN        = BAPI_RETURN
          WRITE: 'Successfully created material' ,IT_DATA-MATNR.
        ENDIF.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT          =
        IMPORTING
          RETURN        = BAPI_RETURN
      ENDLOOP.
    ENDFORM. " UPLOAD_MATMAS

    the Profit center 1000/sslcommon  not created. first create the profit center and then upload your data.check tcode KE52 for created profit centers...

  • How the profit center wiil detrmine in sales order

    How the Profit center will determine in sales order
    where we will assign profit center to sales org
    is it right that it will determine from Material master
    Thanks and regards
    Kishore

    Kishore,
    Profit center is used for internal controlling purpose. It helps you to analyze clearly the costs and revenues.
    You can create Profit Centers according to product lines and Functions. Before creation of profit center we should do the basic settings you divide your business or company into internal areas of resposibility. You divide your business into profit centers by assigning it to master data like Materials, Projects , Cost centers, sales orders .
    It is necessary to assign to SD sales orders to Profit Centers in order to reflect receivables, sales revenues and sales deductions on profit centers
    The profit center assignment is also passed on from the sales order through the supply chain: sales order --> delivery note --> goods issue --> billing document. This means that the when a goods issue is posted, the corresponding revenue value for the goods is also passed on to the profit center of the sales order.
    Each order item is assigned to a profit center. The system proposes the profit center of the material in the supplying plant as default, you donot assign profit center manually. This default supports both a product‑oriented and geographical division of your organization into profit centers.
    AFter Creation of profit center you will assign sales order to profit center.
    IMG --> Controlling --> Profit Center Acounting > Assignments of A/c assignemnt objects to profit centers>sales orders --> assign sales orders
    The system uses these substitution rules to determine the profit center from sales orders. You also need to activate these substitutions for each individual controlling area
    b. for that we need to activate  the indicator "Ent org active" then we proceed accordingly.
    IMG --> Controlling --> Profit Center Acounting --> Enterprise organization
    c. The system proposes the profit center of the material in the supplying plant as default, you donot assign profit center manually. When you create a sales order item, the default profit center is copied from Material master or Substituioon rule
    IMG --> Controlling --> Profit Center Acounting > Assignments of A/c assignemnt objects to profit centers>sales orders --> Sales orders substituion rules
    Profit center configuration
    It is configured in Controlling:
    IMG --> Controlling --> Profit Center Acounting --> Master Data --> Profit Center
    When you are trying to create a profit center it will ask for Contolling area.
    Please go through the IMG settings and also go throtuh the URL's provided by our friends as a reply.
    Regards
    Sathya

Maybe you are looking for

  • My iTunes wont accept half my songs?

    Recently I got a new computer and did not back up my itunes, ive been trying to put all of my songs onto my new itunes from my iphone by using an extracting tool. i managed to obtain all of the music from my iphone which i was planning to put onto my

  • Xsl problem in weblogic7

    The problem occurs when i try to parse a double value expressed in scientific notaion. e.g. -3.902317E4. <xsl:variable name="temp"> <xsl:value-of select = "tempExpense" disable-output-escaping = "no" /></xsl:variable> <xsl:value-of select = "number($

  • In which J2EE jar file is javax.DataSource jar contained?

    Does anyone know in which J2EE jar file the javax.DataSource class is contained? L.F.

  • Os x 10.5.8 to os x 6

    My wife's 2 year old macbook is on 10.5.8 and the software update does not find 10.6,i have downloaded 10.6.2 from the apple site but cant find 10.6 on there.When i try to open the package it says i need 10.6, what can i do?

  • Sharing the iPhoto Library

    i have read with interest the discussions here regarding the iPhoto Library. I have picked up some good pointers, but none seem to answer my basic dilemma. I share the MacBook with my wife and we have separate user accounts to keep our stuff separate