Use BAPI_COSTACTPLN_POSTPRIMCOST

How to use BAPI_COSTACTPLN_POSTPRIMCOST Function?
In test program function works correctly and update cost planning values. But if i try to test function in SE37 transaction - does not. Why???

Hello,
may be it's again the things that Bapi's do not commit a LUW.
In SE37 you have to work with test sequences (Check OSS-Note 420646 - it's about MM-Bapi's, but it's the same effect). Or check OSS-Notes 450442 and 192235.
Regards Wolfgang

Similar Messages

  • Internal orders - Plan Line items are not uploading into SAP!!

    Hi Experts,
    Am uploading the budget values as plan line items of Internal orders(AUFK table) from my Z prog. by using BAPI_COSTACTPLN_POSTPRIMCOST.......in Return table(bapiret2), am not getting any error messages........so, am taking it for granted that, upload is successful.
    But, when I went to KOBP transaction.........I did not see any values for the internal order in question.......but, just now, I uploaded successfullly!!
    Let me know that, Why its happening like that? How to fix it?
    replies appreciated, thanq.

    I've lil doubt if this BAPI really update the internal orders in KOBP transaction.
    However just refer:
    bapi_costactpln_postprimcost
    Use BAPI_COSTACTPLN_POSTPRIMCOST
    And refer relevant OSS which is mentioned in Above threads.

  • KP06 : BAPI_COSTACTPLN_POSTPRIMCOST problem

    Hi,
    I am using BAPI "BAPI_COSTACTPLN_POSTPRIMCOST"  to uploaded Plan fixed cost & actual fixed cost.
    Now i am passing value in BAPI as
    Ex: Plan fixed cost period 1 = 10.
          Plan fixed cost period 2 = 10.
    &   Plan variable cost period 1 = 10.
    final output in KP06 is :
          Plan fixed cost period 1 = 20.
          Plan fixed cost period 2 = 20.
    can any one tell me why this value is summing up.
    please find code below :
    *& Report  ZSOU_TEST
    REPORT  ZSOU_TEST.
    data : HEADERINFO LIKE  BAPIPLNHDR.
    data : INDEXSTRUCTURE like BAPIACPSTRU occurs 0 with header line.
    data : COOBJECT like BAPIPCPOBJ occurs 0 with header line.
    data : PERVALUE like BAPIPCPVAL occurs 0 with header line.
    data : RETURN like BAPIRET2 occurs 0 with header line.
    HEADERINFO-CO_AREA = 'SD00'.
    HEADERINFO-FISC_YEAR = '2008'.
    HEADERINFO-PERIOD_FROM = '001'.
    HEADERINFO-PERIOD_TO = '012'.
    HEADERINFO-VERSION = '0'.
    *HEADERINFO-DOC_HDR_TX
    HEADERINFO-PLAN_CURRTYPE = 'C'.
    INDEXSTRUCTURE-OBJECT_INDEX = '000001'.
    INDEXSTRUCTURE-VALUE_INDEX = '000001'.
    append INDEXSTRUCTURE.
    COOBJECT-OBJECT_INDEX = '000001'.
    COOBJECT-COSTCENTER = 'US00401100'.
    append COOBJECT.
    PERVALUE-VALUE_INDEX = '000001'.
    PERVALUE-COST_ELEM = '501000'.
    *RESOURCE
    *TRANS_CURRENCY_ISO
    *TRANS_CURR
    *UNIT_ISO
    *PERVALUE-UNIT_OF_MEASURE = 'EA'.
    PERVALUE-FIX_VAL_PER01 = '10.00'.
    PERVALUE-FIX_VAL_PER02 = '10.00'.
    *PERVALUE-FIX_VAL_PER03 = '10.00'.
    *PERVALUE-FIX_VAL_PER04 = '10.00'.
    *PERVALUE-FIX_VAL_PER05 = '10.00'.
    *FIX_VAL_PER06
    *FIX_VAL_PER07
    *FIX_VAL_PER08
    *FIX_VAL_PER09
    *FIX_VAL_PER10
    *FIX_VAL_PER11
    *FIX_VAL_PER11
    *FIX_VAL_PER12
    *FIX_VAL_PER13
    *FIX_VAL_PER14
    *FIX_VAL_PER15
    *FIX_VAL_PER16
    PERVALUE-VAR_VAL_PER01 = '10.00'.
    *PERVALUE-VAR_VAL_PER02 = '10.00'.
    *PERVALUE-VAR_VAL_PER03 = '10.00'.
    *VAR_VAL_PER04
    *VAR_VAL_PER05
    *VAR_VAL_PER06
    *VAR_VAL_PER07
    *VAR_VAL_PER08
    *VAR_VAL_PER09
    *VAR_VAL_PER10
    *VAR_VAL_PER11
    *VAR_VAL_PER12
    *VAR_VAL_PER12
    *VAR_VAL_PER13
    *VAR_VAL_PER14
    *VAR_VAL_PER15
    *VAR_VAL_PER16
    *PERVALUE-FIX_QUAN_PER01 = '5.00'.
    *PERVALUE-FIX_QUAN_PER02 = '5.00'.
    *FIX_QUAN_PER03
    *FIX_QUAN_PER04
    *FIX_QUAN_PER05
    *FIX_QUAN_PER06
    *FIX_QUAN_PER07
    *FIX_QUAN_PER08
    *FIX_QUAN_PER09
    *FIX_QUAN_PER10
    *FIX_QUAN_PER11
    *FIX_QUAN_PER12
    *FIX_QUAN_PER13
    *FIX_QUAN_PER13
    *FIX_QUAN_PER14
    *FIX_QUAN_PER15
    *FIX_QUAN_PER16
    *PERVALUE-VAR_QUAN_PER01 = '11.00'.
    *PERVALUE-VAR_QUAN_PER02 = '11.00'.
    *PERVALUE-VAR_QUAN_PER03 = '11.00'.
    *VAR_QUAN_PER04
    *VAR_QUAN_PER05
    *VAR_QUAN_PER06
    *VAR_QUAN_PER07
    *VAR_QUAN_PER08
    *VAR_QUAN_PER09
    *VAR_QUAN_PER10
    *VAR_QUAN_PER11
    *VAR_QUAN_PER12
    *VAR_QUAN_PER13
    *VAR_QUAN_PER14
    *VAR_QUAN_PER15
    *VAR_QUAN_PER16
    *FUND
    *FUNCTION
    *GRANT_NBR
    append PERVALUE.
    *INDEXSTRUCTURE-ATTRIB_INDEX
    CALL FUNCTION 'BAPI_COSTACTPLN_POSTPRIMCOST'
      EXPORTING
        HEADERINFO           = HEADERINFO
       DELTA                = 'X'
      TABLES
        INDEXSTRUCTURE       = INDEXSTRUCTURE
        COOBJECT             = COOBJECT
       PERVALUE             = PERVALUE
      TOTVALUE             =
      CONTRL               =
        RETURN               = RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    write 'done'.           .

    Hello,
    If you use DELTA = 'X' then the BAPI summing up the value.
    Thierry

  • BAPI_COSTACTPLN_POSTPRIMCOST + cosp not updated

    Hi,
    I am using the BAPI_COSTACTPLN_POSTPRIMCOST to post FM data extracted from FMBDT table to COSP table.
    i have no errors in the bapi but no records is created in the COSP table.
    CALL FUNCTION 'BAPI_COSTACTPLN_POSTPRIMCOST'
          EXPORTING
            headerinfo           = ws_headerinfo
      DELTA                = ' '
          TABLES
           indexstructure       = wt_indexstructure
           coobject             = wt_coobject
          pervalue             = wt_pervalue
           totvalue             = wt_totvalue
         contrl               = wt_contrl
            return              = wt_return
    data in my code:
    Header info:
    CO_AREA                                                1000
    FISC_YEAR                                             2010
    PERIOD_FROM                              012
    PERIOD_TO                                             012
    VERSION                                             P10
    DOC_HDR_TX                                       
    PLAN_CURRTYPE                              C
    indexstructure:
                         object_index   value_index     attrib_index
    1     000001         000001          000000
    2     000002         000002          000000
    3     000003         000003          000000
    4     000004         000004          000000
    5     000005         000005          000000
    6     000006             000006         000000
    TOTALVALUE:
                VALUE_INDEX      COST_ELEM        Trans_Currency_iso                                                                    Fix_Value
    1     000001     CAC_TOT          EUR     EUR               15835000.0000-
    2     000002     CAC_TOT          EUR     EUR               104182000.0000-
    3     000003     CAC_TOT          EUR     EUR               306499000.0000-
    4     000004     CAC_TOT          EUR     EUR               28703000.0000-
    5     000005     CAC_TOT          EUR     EUR               27900000.0000-
    6     000006     CAC_TOT          EUR     EUR               33048000.0000-
    Any help?
    If this bapi does not work for my requirement, have you any other solution to psot data from FMBDT (FM) table to COSP (CO) table
    Best regards

    Hi,
    i had an error in the period parameters: it's must be:
    headerinfo-period_from   =       1
    headerinfo-period_to     =      12.
    and the table updated by the bapi  in my case is COSS table and not COSP table
    Best regards

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How can multiple family members use one account?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

  • Iphoto crashing after using mini-dvi to video adapter

    Hi, IPhoto on my Macbook is crashing. I can open it, then as soon as I scroll down it locks up and I have to force quit.
    This started happening right after I used a Mini-DVI to Video Adapter cable to hook my macbook up to my TV. The adapter/s-video connection worked and I was able to see the video on the tv. But iphoto immediately locked up the computer when I went to slide show and now it locks every time I open it.
    Any ideas?
    Thank you:)
    Dorothy

    It means that the issue resides in your existing Library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Using Mini DVI to VGA adapter on MacBook

    I bought the adapter from Apple & hooked up my LCD monitor to the MacBook, but the video I get on the monitor is different that on my laptop. It has an old screen background & the dock but nothing on my desktop shows up. Also, when I'm plugged to the monitor, my dock disappears on the laptop screen. Is there some setting I need to change? It worked fine with my G4 PowerBook.
    Thanks for any help....
    MacBook   Mac OS X (10.4.6)  

    i use the mini dvi-vga adapter in my classroom almost everyday. It sounds like your new monitor is running as a side by side monitor to your display instead of a "replacement" display.
    To get your projector/monitor to basically show whatever is on your macbook screen once you've hooked up press F7....this should make your projector/monitory become your display with your dock & all of your desktop stuff. Your new monitor will completely mirror your display.
    THis should do what you're looking for.

  • Using mini-DVI to VGA adapter to Samsung display

    I have 2009 late model of mac mini, The text on display looks washed out, not clear or sharp at all from day one, I thought it was the old model of monitor, tried the same cable to another monitor on another computer, SAME. so I thought the problem could be the cable or adapter.
    It's hard for me to believe is the signal from computer. I'm using VGA adapter made by Dynex bought from Best Buy.
    Anybody has suggestions?? Thanks

    Yeah, My old Samsung is lcd synmaster 17", bought many years ago at around $1000. Crazy, crazy price looked back. It's fine when I used it on the retired old Dell. It must be the adapter, trying not to buy another VGA adapter, could not image my next lcd will use one, anyway.
    This cable has only 14 pins vs 15 pins on the other cable, not sure if it matters?? Or if Safari has anything to do with it??
    Thank for you reply...

  • Using S-Video w/ the Mini DVI to Video Adapter

    I just purchased a MacBook last week and I also purchased a Mini DVI to Video adapter for it so I can use the built-in DVD player to watch movies on my TV. I have a composite to composite cable and that worked fine when I connected the cable between the Mini DVI to Video Adapter and my TV. However, when I tried to use a S-Video cable and connected that between the Mini DVI to Video Adapter and my TV; then I got no picture at all. All I saw on the TV was a picture of the MAC desktop w/o the dock and the movie or nothing else played at all.
    Is the composite connection a better connection for the MAC, or, are there some settings I need to work with on the MAC to get the S-Video connection to work?

    I managed to figure this one out, by fluke. The MacBook has to be powered on and ready for user input prior to connecting the mini DVI to video adapter with the s video already connected to it, and to the TV. Once I did it this way, it worked fine. I just thought I'd share this.

  • Using a mini-DVI to video adapter

    I have connected the video adapter and everything works fine. I use the internet for my video source and I was just wondering, is it possible to have video playing fullscreen on the tv and have another window open on my desktop that I can work with without disrupting the video from the browser? Every time I watch something I am unable to work on my computer while the video is playing.

    As far as I know, you can't go full screen on one monitor without it interfering with the other. I believe this would require a second video card, which isn't possible for a MacBook.
    ~Lyssa

  • Display problems using mini-dvi to video adapter

    I recently purchased the mini-dvi to video adapter for my powerbook to use my TV as a monitor and to play pictures and videos from the laptop to the TV. I am getting a full color display on the TV, but it's only the screen saver. None of my files, text, or any other desktop folders or menus appear when I open them up on the laptop. The only screen that opens is the display preferences when I open that up, but it's a different set of preferences than what's in my computer's display preferences, as it's header is "NTSC/PAL". But other than that 1 menu, nothing is appearing but the screen saver.

    OK, I discovered that I didn't know what I was doing. With the Mini-DVI to video adapter, you need to use an S-Video cable that plugs into an S-video jack on the TV, and then you need a separate cable to plug into the audio out jack on the MacBook to plug into the TV.
    I think you could also use an S-video to RCA component cable if you have a TV with component video input, but I couldn't get that to work so I went to the s-video to s-video cable.

  • Resolution using Mini-DVI to Video Adapter

    I have a Mini-DVI to Video Adapter that I connect to a television set. When I connect it my resolution drops from 1280x800 on my MacBook to 1024x768 on the television. On the MacBook tech specs screen it says: "Simultaneously supports full native resolution on the built-in display and up to 1920 by 1200 pixels on an external display, both at millions of colours".
    Is it just something that I'll have to live with when switching to the television, or is there any way that I can increase this resolution?

    You can make the TV the main monitor by dragging the menu bar to it in the "Arrangement" pane of "Displays" System Preference, or if you connect the power adapter and an external mouse and keyboard, just close the lid. It will sleep, but will wake when you use the mouse or keyboard.

Maybe you are looking for

  • Accounts on 2 computers

    I have 2 computers with separate accounts for email (primary and sub account). Verizon FIOS made recent changes with email.  Now my emails have jumped to the other computer with the sub-account. How do I get me emails back on my computer in my primar

  • Populating item with pl/sql function body

    Hi, I want to populate a "Display as text (saves state)" item with the difference of 2 other items. The source of my item is: - Only when current... - PL/SQL Function body - Source expression: DECLARE v_diff NUMBER; BEGIN v_diff := :P1_AUFWAND_TOTAL

  • Credit Mgmt Report Needed -Urgent

    Hi, I need this report urgently, can anyone help me out in the same :- Fields Of The Report a) Sr. No. b) Business Area c) Sales Representative d) Customer Code e) Customer Name f) Sale Order Number g) Qty h) Delivery No. i) Invoice No. j) Invoice Am

  • 3G speed fast then 20 minutes later slow

    Any experience this? After a reboot of my iPhone 3G screams. I get 700kbs downloads. If I then try to use 3G data approx. 20 minutes later, 3G data speeds are down to 20kbs if at all. I can restore the fast speed by toggling the 3G radio in the netwo

  • PASE Tags & Photoshop Browser Keywords

    I would like to know if anybody knows if there is the possibility of compatability between the keywords in Photoshop Browser (CS) and the tags in Photoshop Album Starter Edition 3.0 (currently unlocked)? I have created a graphics library in PS and ha