HI YANN/VADIM...Still having problem in BADIs...please help me out

Hi Yann/Vadim,
Facing a problem in BADI can u please help me out...
I am implementing sourcing dashboard.
I am facing problem while implementing the badi BBP_ECS_PO_OUT_BADI in SRM. and BBP_PO_INBOUND_BADI in R3.
i have written following code in BBP_ECS_PO_OUT_BADI in SRM
method IF_EX_BBP_ECS_PO_OUT_BADI~BBP_B46B_PO_OUTBOUND.
data : ls_item type BBP_PDS_PO_ITEM_D.
data : w_customer_fields type BBPS_IF_CUSTOMER_FIELDS_PI.
move 'POITEM' to w_customer_fields-refobject.
move 'CATALOGID' to w_customer_fields-fieldname.
move ls_item-catalogid to w_customer_fields-container.
append w_customer_fields to ct_bapi_customer_fields.
endmethod.
i have created field zsrmcatalogid field in R3 in EKPO table.and i am now implementing the Badi in R3 for BBP_PO_INBOUND_BADI .....in extended classic scenario.
i have written following code in R3 BADI
method IF_EX_BBP_PO_INBOUND_BADI~BBP_MAP_BEFORE_BAPI.
data : wa_customer_fields type bbps_if_customer_fields,
wa_bapi_te_mepoitem type bapi_te_mepoitem,
wa_bapi_te_mepoitemx type bapi_te_mepoitemx,
wa_extensionin type bapiparex.
data : txt_960(960) type c.
read table bbp_customer_fields into wa_customer_fields with key
refobject = 'POITEM' fieldname = 'CATALOGID'.
if sy-subrc eq 0.
move wa_customer_fields-container TO
wa_bapi_te_mepoitem-zsrmcatalogid.
wa_bapi_te_mepoitemx-zsrmcatalogid = 'X'.
endif.
clear txt_960.
clear wa_extensionin.
write wa_bapi_te_mepoitem to txt_960 left-justified.
wa_extensionin-structure = 'BAPI_TE_MEPOITEM'.
wa_extensionin-valuepart1 = txt_960(240).
wa_extensionin-valuepart2 = txt_960+240(240).
wa_extensionin-valuepart3 = txt_960+480(240).
wa_extensionin-valuepart4 = txt_960+720(240).
append wa_extensionin to bapi_extensionin.
clear txt_960.
clear wa_extensionin.
write wa_bapi_te_mepoitemx to txt_960 left-justified.
wa_extensionin-structure = 'BAPI_TE_MEPOITEMX'.
wa_extensionin-valuepart1 = txt_960(240).
wa_extensionin-valuepart2 = txt_960+240(240).
wa_extensionin-valuepart3 = txt_960+480(240).
wa_extensionin-valuepart4 = txt_960+720(240).
append wa_extensionin to bapi_extensionin.
endmethod.
But its not working...
The PO details are not passed from SRM to R3.......
PLEASE CAN U GIVE ME EXACT CODE FOR CHANGES TO BE MADE IN THIS BADI ..AS IT IS NOT WORKING...
Can anybody help me regarding how to debug the BADI in R3.
Thanks in Advance...

Hi Ravi,
You can transfer the standard SRM catalog ID field to R/3 tracking number field (if not already used for another purpose) in the R/3 PO.
This will avoid to implement the R/3 inbound bapi.
Here is an extract of the code.
The ECS PO badi example was here used to transfer the unlimited delivery flag to R/3 PO for a Z combination of criteria as well as the transfer of <b>catalog ID</b> to <b>tracking number field</b> in R/3 PO :
method IF_EX_BBP_ECS_PO_OUT_BADI~BBP_B46B_PO_OUTBOUND.
update unlimited delivery flag in R3 PO for combination of vendor +
Product Category maintained in the bespoke table ZUD_PC_VNDR ..
  LOOP AT ct_bapi_poitem INTO ls_bapi_poitem.
    lv_tabix = sy-tabix.
    IF ls_bapi_poitem-po_item IS NOT INITIAL.
      READ TABLE it_item INTO ls_item
           WITH KEY number_int = ls_bapi_poitem-po_item
                      del_ind    = ' '.
      IF sy-subrc = 0.
Set Unlimited delivery Flag
        read table li_zud_pc_vndr into ls_zud_pc_vndr
                        with key partner       = ls_partner-PARTNER_ID
                                   category_id = ls_item-category_id.
        if sy-subrc eq 0.
          ls_bapi_poitem-UNLIMITED_DLV = 'X'.
        endif.
Set the Dummy catalog.. entry..
        if ls_item-catalogid eq c_dummy.
          ls_bapi_poitem-TRACKINGNO = c_noncat.
        endif.
        ls_bapi_poitem-GR_BASEDIV = ' '.
        modify ct_bapi_poitem from ls_bapi_poitem index lv_tabix
                      transporting UNLIMITED_DLV TRACKINGNO GR_BASEDIV.
      ENDIF. "READ TABLE it_item ..
    ENDIF.   "IF ls_bapi_poitem-po_item ..
  ENDLOOP.   "LOOP AT ct_bapi_poitem ..
endmethod.
Kind regards,
Yann
PS : please do reward helpful answers ))

Similar Messages

  • Mac Book Air sleeps when moved...i don't know whats the problem...please help me out if anyone knows about this...

    Mac Book Air sleeps when moved...i don't know whats the problem...please help me out if anyone knows about this...

    your reed switch for the monitor is defective, it thinks youve shut the lid when you havent
    mechanical fault , contact Apple for service and parts replacement.

  • Still having problem with closing frame---Help me

    How can I make frame closing by clicking with mouse on button 'x' in upper right corner of window?
    When I put this in constructor
    setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    I get error message:
    --------------------Configuration: j2sdk <Default>--------------------
    C:\javafile\Javabyexample\Projekat\Konverzija.java:17: cannot resolve symbol
    symbol : method setDefaultCloseOperation (int)
    location: class Konverzija
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    Help me

    if you just want to close the frame use setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)

  • I am having problem with calls.Please help.

    When I get a call from someone I can't hear him,If I call him still I can't hear him clearly but he can hear me clearly.The call drops very often.What should I do and why is this problem causing?
    Solved!
    Go to Solution.

    Boot in safe mode,see if the same occurs:
    https://talk.sonymobile.com/t5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008#U348008
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • We are having problems sending iMessages we have reset but still having problems. Also Icalls cutting off.

    We are having problems sending IMessages they are not sending have reset but still having problems. Also calls are cutting out or not connecting

    This is a known issue with Apple. I can't sent iMessages either...It' doesn't matter how many times I power down my phone, delete messages or disconnect from wifi...Very frustrating.

  • HOW DO YOU TURN OFF "FIREFOX PREVENTED THIS PAGE FROM AUTOMATICALLY RELOADING". I did the "see Advanced - General - Accessiblity. and still having problems

    HOW DO YOU TURN OFF "FIREFOX PREVENTED THIS PAGE FROM AUTOMATICALLY RELOADING". I did perform the "see Advanced - General - Accessibility. It worked for me and my "user" site (don't know how to say my site) and still having problems with my wife's. I have gone to OPTIONS → GONE TO → ADVANCE and CLICKED THE LINE → ""Warn me when websites try to redirect or reload the page…""
    This did not rememdy the problem. I did try to get on the other site suggested
    http://kb.mozillazine.org/Accessibility.blockautorefresh
    but got a 404 error...
    I have googled the "ff prevented...." and after a number of hours searching I still have not found a fix...
    REALLY HOPE SOMEONE CAN HELP ME....
    JM

    You should still disable this setting:
    *Firefox > Options/Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    What is the value of the <b>accessibility.blockautorefresh</b> pref on the <b>about:config</b> page?
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    If you have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I had already update mi new factory unlocked iPhone 4S to iOS 5.1.1 and I still having problems with "invalid sim". I'm from Argentina and here we don't have official service. PLEASE HELP ME, WHAT CAN I DO??? In Argentina is too expensive an iPhone 4S.

    I had already update mi new factory unlocked iPhone 4S to iOS 5.1.1 and I still having problems with "invalid sim". I'm from Argentina and here we don't have official service. PLEASE HELP ME, WHAT CAN I DO??? In Argentina is too expensive an iPhone 4S. Please I need help to continue believing in Apple. Thanks a lot. If anybody speak spanish better.  

    Was it purchased from an official Apple Store, not a reseller?  Only Apple Stores sell official factory unlocked phones.  The others sell hacked to unlock phones, and the unlocking is unstable.
    Try these steps, as needed:
    1. Reset phone - press both home and on/off buttons for at least 10 seconds until the Apple logo appears.
    2. Settings > General > Reset > Reset Network Settings.
    3. Replace SIM card (and reset network settings again)
    4. Restore Phone in iTunes using a backup
    5. Restore in iTunes as new, without using a backup

  • I use only two channels, have plenty of memory in my hard disk, and external hard drive, no effects, and still having problems with Garage band. Giving messages as you have too many live channels

    I'm frustrated, I am doing everything you recommend, I use only two channels, have plenty of memory in my hard disk, and external hard drive, no effects, and still having problems with Garage band. Giving messages as you ave too many live channels, the disk is slow prepare...can you help?

    Quote from: Richard on 15-November-07, 20:33:05
    tornado2003,
    What you need to do is boot into Safe Mode. Then delete the VGA Drivers.
    After that boot normally and install the latest nVidia ForceWare Drivers
    Take Care,
    Richard
    i guess you missed that:
    Quote from: tornado2003 on 15-November-07, 17:26:52
    ive tryed booting xp in safe mode but it just freezes after it loads up a couple of needed files .
    ive even formatted my hard drive and tryed installing a fresh xp on it but it just keeps locking up when it gets to the "starting windows setup" .(this is just after it loads all the drivers from the xp cd)

  • I am still having problems with my music videos freezing (all purchased from iTunes) since the update.  Have restarted, rebooted etc. and it is worse than before.  Help!  Spent a lot of money on these and they won't play properly.

    I am still having problems with my music videos freezing (all purchased on iTunes) since the update.  The first day of the update, no problems...played 6 hours of music videos and no freezing.  Today...every single video froze!!! So frustrating!  I rebooted, restarted, powered down and no help.   I would appreciate any suggestions.  Thanks.

    I don't know how to do this without using a mouse point.
    This may help, http://www.computerhope.com/issues/ch000542.htm
    As for question #2, you call tell how iTunes is sorting songs by the up or down arrow next to a header name.
    Even the original order that the songs were entered or date added or last played can be sorted.
    Much easier with a mouse or touch pad.

  • HT4906 Both my iPhoto, Aperture and OX is update still having problem asking me to update my iPhoto.

    Both my iPhoto, Aperture and OX is update still having problem asking me to update my iPhoto.

    Make a temporary, backup copy (select the library and type Command+D) if you don't already have a currnet backup of the library and  apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #1, followed by #3 and then #4 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • HT6058 I have updated my I pad dut I'm still having problems my iPad seems to freeze and when I go to put in my pin it take a few seconds before the numbers go in and my games stop and start and stop and start for a bit before they run properly

    I have updated my I pad dut I'm still having problems my iPad seems to freeze and when I go to put in my pin it take a few seconds before the numbers go in and my games stop and start and stop and start for a bit before they run properly

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
     Cheers, Tom

  • Hello, i not long ago purchased light room 5 and it downloaded and was working great! but the my computer crashed and i was unable to retrieve it and i am still having problems! i DO NOT WANT TO PAY AGAIN!IS THERE ANY WAY I CAN GET IT BACK!

    hello, i not long ago purchased light room 5 and it downloaded and was working great! but the my computer crashed and i was unable to retrieve it and i am still having problems! i DO NOT WANT TO PAY AGAIN!IS THERE ANY WAY I CAN GET IT BACK!

    You should be able to download Lightroom 5.4 again, without problems, for free
    From Google, type in
    Lightroom 5.4 download Windows
    or
    Lightroom 5.4 download Mac
    and please don't type in all capitals thank you

  • Hi all, I'm still having problems with my security questions as they were not the ones I answered. Now I'm confused

    Still having problems with my security questions as they were not the ones I answered and now I'm confused.

    Howdy Paul,
    If you are having an issue with your Apple ID security questions, you can reset them using the steps in this article -
    If you forgot the answers to your Apple ID security questions - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • I'm still having problems downloading. Can anybody help? Everytime I try yo download, it's saying my Adobe Flash CS4 won't download.

    I'm still having problems downloading. Can anybody help? Everytime I try yo download, it's saying my Adobe Flash CS4 won't download.

    UP%20%26 COMIN' what specific error message do you receive when you try to download the Creative Suite 4 installation files?  Which Creative Suite 4 title are you downloading?  Are you downloading the installation files from https://helpx.adobe.com/creative-suite/kb/cs4-product-downloads.html?

  • My ipod jumps from one screen / app to another on it's own. Sometimes I can't unlock or even shut off. I've tried the reset, I've tried back up, even tried restoring to factory settings and is still having problem. Any ideas of what I can do.

    My ipod jumps from one screen / app to another on it's own. Sometimes I can't unlock or even shut off. I've tried the reset, I've tried back up, even tried restoring to factory settings and is still having problem. Any ideas of what I can do.

    When you still have the problem after restoring to factory defaults/new iPod then you very likely have a hardware problem and an appointment a th Genius Bar of an Apple store is in order.

Maybe you are looking for