SRM PO CHANGE SMARTFORM

Hi friends,
I’m developing a SRM Purchase Order CHANGE smartform.  The form should only print those line items that got changed (quantity or price or new line item added to PO). Can anyone tell me how to pass only changed datas to smartform. I’m assuming that I’ve copy the std. Form BBP_PO. I will award points to any useful answers
Thanks a lot.
-Nash

Hi John,
As Narendra said that we can get it from CDPOS and as well as CDHDR also.
I have done this type of Form long back, I'll send the code & change naming conventions according to that logic. This helps u a lot really.
-----TO FETCH I OR U REGARDING PO(for chg column)--
    SELECT * INTO TABLE I_CDHDR FROM CDHDR WHERE
                       OBJECTID = W_DATA2-EBELN .
    DESCRIBE TABLE I_CDHDR LINES V_COUNT.
    READ TABLE I_CDHDR INDEX V_COUNT INTO W_CDHDR.
    IF W_CDHDR-CHANGE_IND = 'U'.
      MOVE W_CDHDR-CHANGENR TO V_CHANGE_NR.
      CONCATENATE W_CDHDR-MANDANT W_DATA2-EBELN W_DATA2-EBELP
           INTO GV_TABKEY.
      SELECT SINGLE VALUE_OLD INTO V_OLD FROM CDPOS
                 WHERE OBJECTID = W_DATA2-EBELN AND
                       CHANGENR = V_CHANGE_NR AND
                       TABKEY   = GV_TABKEY AND
                       FNAME    = 'MENGE'.
      SELECT SINGLE VALUE_OLD INTO V_OLD1 FROM CDPOS
                      WHERE OBJECTID = W_DATA2-EBELN AND
                            CHANGENR = V_CHANGE_NR AND
                            TABKEY   = GV_TABKEY AND
                            FNAME    = 'NETWR'.
    ENDIF.
------ WHEN PO IS CHANGE ,TO FILL CHG COLMN DETAILS------------------*
    IF V_OLD IS NOT INITIAL OR V_OLD1 IS NOT INITIAL.
      W_TY_SODATA_TAB1-CHNGIND = 'cur'.
      APPEND W_TY_SODATA_TAB1 TO I_SODATA.
      MOVE V_OLD TO W_TY_SODATA_TAB1-MENGE.
      MOVE V_OLD1 TO W_TY_SODATA_TAB1-NETWR.
      W_TY_SODATA_TAB1-CHNGIND = 'prev'.
    ELSE.
      W_TY_SODATA_TAB1-CHNGIND = 'n/a'.
    ENDIF.
    APPEND W_TY_SODATA_TAB1 TO I_SODATA.
    CLEAR: V_OLD, V_OLD1.
    CLEAR: W_TY_SODATA_TAB1.
  ENDIF.
ENDLOOP.
LOOP AT I_DATA3 INTO W_DATA3.
  READ TABLE I_SODATA INTO W_SODATA WITH KEY
                       MATNR = W_DATA3-MATNR
                       EBELN = W_DATA3-EBELN
                       EBELP = W_DATA3-EBELP
                       CHNGIND = 'prev'.
  IF SY-SUBRC = 0.
    W_DATA3-MENGE = W_DATA3-MENGE.
    W_DATA3-NETWR = W_DATA3-NETWR.
  ENDIF.
  APPEND W_DATA3 TO I_DATA4.
  CLEAR: W_DATA3.
ENDLOOP.
<b><i>if u want the full code let me know I'll send.</i></b>
Thanks,

Similar Messages

  • SRM PO Changes doesnt transfer to R/3 PO

    Hi All,
    SRM 5.0 ECS
    We face an issue sometimes that SRM Po changes doesnt flow in R/3 PO. The bigger issue is we do not see any error in RZ20 nor in BBP_PD.Yes there is a FM at our disposal to push the changes, but just wanted to see the root cause and if anyone has faced a similar case.
    Please throw some light on this!!
    Krishna

    Hi Krishna,
    If you find another one, access the PO through BBP_PD.
    Scroll down to bottom of screen where below the workflow you will see a thing called "Check again"
    click on this and if you scroll down again after screen refresh you may see errors that didn;t appear on the WEBGui.
    Sometimes the DOC_CHECK_BADI can be responsibe for this but either creating or getting rid of errors, you could set BP at beginning of this BADI, then press the Check again button and jump over all the code of the BADI and see if you see any different behaviour.
    Hope this helps,
    Kind Regards,
    Matthew

  • What SRM config changes will need to take place with a change to Plant

    Hi
    Please could you tell me What SRM config changes will need to take place with a change to Plant, Co Code, Purchasing Org, Purchasing Group,
    Cheers
    B

    Yes Disha loads more questions,
    is it simply a GET_LOCATIONS_ that I need to run once all the new plants have been created in R3 or do i need to create the plants in SRM?
    With one Purch org to one co code to one plant how will this effect the workflow start conditions
    How will the be differnt to a on Purchasing Org to many co codes to many plants?
    Any thing else you think that I might need to do with this change
    Thanks
    B

  • Changing smartform from local object to a transport request

    Hi ,
          Can any one please let me know how to change  smartform from local object to a transport request.
    Regards,
    Ashok kumar

    Hi,
    GOTO transaction SMARTFORMS.
    Enter the name of the smartform.
    Then GOTO -> OBJECT DIRECTORY ENTRY.
    There give ur package then it will ask for the request.
    Then create the request.
    Hope it helps u.
    Regards,
    KK

  • SRM PO Change Details

    Hi all,
    I need to display change details in PO using smartforms in SRM.Like if i create a PO and change any item like Qty or delivery date or price of that PO those changes should be shown in PO Output. How can i do this in SRM 5.0?
    I found that BUS2201 can be used to get these details.But how to use this BUS2201.Please help me. This is an urgent issue.
    Regards
    Pavan

    I can see some internal errors in RZ20
    System: ABC
    Context: EBP Procurement Internal (050).
    Object name: Internal
    Short Name: Approval
    Status: Active
    Alert Text:  Function Module BBP_PDH_WFL_PARAM_APPLET_FILL at SWD_API_WORKFLOW_GRAPHIC_GET_X; SY-SUBRC:1
    If i can click on it
    ABC\EBP Procurement Internal(050)\...\Internal\App: No method assigned.
    Any ideas?? Any OSS notes related to this issue would be higly appreciated!!
    Krishna

  • Deadline Notifications - Change Smartform output to simple text

    Hi Gurus,
    SRM 7.0. Deadline notifications are configured for Process Controlled WF and are being generated. However these are generated as Smartform output and when forwarded to Outlook/Lotus Notes email accounts, they come through as a bunch of special characters. Is there any way to generate the notifications as simple text?
    Thanks,
    RM.

    Vipin,
    What encoding settings are you referring to?
    I assume you are referring to the  BAdI - BBP_OUTPUT_CHANGE_SF. I did implement it for changing mail/notification subject. Even that change is not coming through. And I am not  sure which parameter can be set to change the output format.
    I have no issues with the offline approval mail.
    Thanks,
    RM.
    Resolved on my own by debugging. cs_parameters-mail_format should be set to blank (BAdI implementation - BBP_OUTPUT_CHANGE_SF).
    Edited by: Ramki Maley on Nov 24, 2010 4:05 PM

  • Regarding changing smartform LE_SHP_DELNOTE

    Hello experts,
    Avi here ....
       i am  new for smartform developement
            can any one suggest me how to change the system inbuilt smartform       LE_SHP_DELNOTE as it is my requirement..... how to have those privileges to change any system inbuilt form.
    waiting for ur reply 
    Best regards,
    A v I  .

    Check if your data is ok, meaning that you indeed have an address maintained for the ship-to of this delivery.
    Hope it helps,
    Leonardo De Araujo

  • SRM Purchase Order Smartform

    Hi all,
    I am having an issue in SRM 5.0.How to get the Purchase Order Amendment details in SRM Smartforms. In ECC we are using a function module to list the amendment details is there any function module in SRM which can do this. Please help me. This is a very very very urgent issue.
    Sure points will be awarded
    Thx in Adv...........
    Regards
    Pavan Kumar

    never mind, went to wrong thread
    Edited by: Rainer Hübenthal on Mar 17, 2010 12:26 PM

  • SRM PO Changes Error Status - Error in Process (SRM 4.0 and ECC 5.0)

    Hi All,
    I created PO in SRM from Sourcing (Shopping Cart) and it is replicated to Back End (ECC 5.0). But I did not post GR or Invoice Verication with reference to PO.
    When I am trying to change PO in SRM (SRM Webbrowser - Processing PO) like Quantity, I am receiving the PO status as Error in Process.
    Please let me know do I need to configure anything for this issue or need to implement OSS Note/BADI.
    Thanks a lot in advance for helping me.
    Best Regards,
    Sudarsan

    got solution

  • Unable to view the approvers in approval preview at SRM PO change

    Hi,
    We are using SRM 5.0,
    we are picking approvers from ECC and approvers are picked correctly using BBP_WFL_APPROV_BADI and displayed.
    Here the problem is ,  when we change the PO in SRM and check the approval preview before we click order. approval preview is blank and displays as "No approval required".  this is not calling the BADI BBP_WFL_APPROV_BADI when click on approval preview button.
    after PO order the approval preview is displayed correctly.
    Your help is really appreciated.
    Regards
    Kumar

    Hi,
    We are using SRM 5.0,
    we are picking approvers from ECC and approvers are picked correctly using BBP_WFL_APPROV_BADI and displayed.
    Here the problem is ,  when we change the PO in SRM and check the approval preview before we click order. approval preview is blank and displays as "No approval required".  this is not calling the BADI BBP_WFL_APPROV_BADI when click on approval preview button.
    after PO order the approval preview is displayed correctly.
    its really urgent. any help is really appreciated.
    Regards
    Kumar

  • Restrict list of cost ctrs in SRM PO change transaction

    We restrict which cost ctrs users can select when shopping in SRM by maintaining the CNT attribute in PPOMA_BBP. When users then shop they see a drop down list of cost ctrs. When the same user changes a PO in SRM, they do not see a drop-down list of cost ctrs to assign a new PO item to (nor do they see the binoculars to search for a cost ctr). In fact they can simply type any cost ctr - even one that is not in their user attribute in PPOMA_BBP.
    Is there any way to restrict the cost ctrs users can assign when adding a new line to a PO?
    thanks
    Neil
    Edited by: Neil Haywood on Jan 18, 2008 9:51 AM

    Hi Harsha,
    The P.Os that were marked as Transaction completed in SRM system can no longer be changed.
    This means the P.O can not be changed and the same can not be deleted.
    This is the standard SAP SRM functionality.
    1. Please do not use 'Transaction Completed' option to close the P.Os.Instead you can mark the 'No further Confirmations expected' and 'No further Invocies expected' check boxes under statistics tab of P.O item data. This would remove all the commitments against the purchase order item and would enable any Project closure in case Network or WBS is used as Account assignment for this P.O item.
    2. In case the P.O needs to be deleted then use function module BBP_PO_DELETE in backend ECC system to delete SRM (EBP) P.Os in ECC.
    Hope this answers your query and resolves your issues.
    Please let us know in case of any further clarifications.
    Regards,
    Teja

  • Error in Replication of SRM PO change to SUS

    Hello Everyone,
    We are using SRM 5.0 with extended classic scenario.
    We create the PO in SRM and then we transfer this PO to SUS. For the first time it is working fine but anytime you make a change to it the change does not transmit to the SUS portal. Usually we make a change in price.
    This is not happening with every PO but only PO's with certain type of contract .
    So for this issue what should I do?
    Regards,
    Khushbu.

    No replies?..I think the problem is contract. i need help on this..
    Edited by: Khushbu Brahmbhatt on Dec 13, 2010 8:58 PM

  • Change Smartform Language Dynamically

    Hello Guys,
    I got a requirement to display the Smartform text in Russian language from English with the user Login to SAP. I know the way to change the static text with TCode SE63. It also changes the text with user login but what about dynamic text, which we get with our select query in smartform.
    For example: Employee description from KNA1. All the list should automatically changed to the Logged in user language, in my case Russian.
    I have searched on SDN and found only for the static text maintained via Text module or Text element can be converted. Is there any way around, we can achieve this functionality dynamically.
    Regards,
    Chandan

    Hi,
    Check if you have in ADRC the russian info for the Customer .
    To get the data you will need kna1-adrnr .
    This is how it is done here .
    And finally a tip: In the future try to put all your data extraction in the calling program .
    Also note the use of parameter CONTROL_PARAMETERS field LANGU .
    Regards.

  • SRM SUS Change Logo

    Using SRM SUS the portal BSP pages show both an SAP logo in the right upper corner and the text "SAP SRM" in the left upper corner. I have been able to replace the SAP logo with my company's logo, but how can I get rid of the SAP SRM text?
    Any hints and also any other hints as to how the control the size (height/width) of the BSP pages would be great.
    Thanks
    DM

    Looking in SE80 > Package BBP_SUS_UI > BSP Library > BSP Applications > SRMSUS > Controller > main.do
    I do not see any label with the 'SAP SRM' text anywhere, and also not where to change that?

  • SRM 7 - Change portal button name

    Expert's,
    I'm working with SRM 7 ans i'm facing a problem concerning the text of a few standard buttons around the system. I guess that exists a way of changing the attributes ( in my case the name of the buttons) but not by regestering the standard object.
    For example in cFolder's it's possible to edit a XML and change the appearence of the system. Is that possible in SRM ?
    Could you please tell me hoe can i modify a webdynpro in order to change the button labels ?
    Best regards,
    Mário

    Hi Mário,
    For example if you would like to change the field label of the button 'Order' in the SC screen, you could do this in the following way:
    - Right click on the button 'order' in the browser -> more field help
    you'll get this information
    Application: /SAPSRM/WDA_L_FPM_OIF
    Web Dynpro Component: FPM_OIF_COMPONENT
    Window Information: FPM_WINDOW
    View Information: CNR_VIEW
    Configuration ID: /SAPSRM/WDCC_FPM_OIF_SC_PROFNL
    - In the SAP GUI you open in the SE80 transaction the Web Dynpro Component: FPM_OIF_COMPONENT
    - In the component configurator (the option at the button), you open the Configuration /SAPSRM/WDCC_FPM_OIF_SC_PROFNL
    - Doubleclick on the  /SAPSRM/WDCC_FPM_OIF_SC_PROFNL
    - Start configurator
    - Click on 'Change' mode
    - Click on 'Order'
    - There you can change the field label.
    Regards,
    Peter

Maybe you are looking for

  • Ios update issue

    i had to connect to itunes to do the latest ios update on my iphone it came up that a restore had to be done before hand so i did that and now my phone has had to be fully re-set up again the issue is that it wont let me activate my phone again wit m

  • Sga_target_size and sga_max_size

    I noticed our production Oracle Instance sga_target_size configuration might not utilize the host resource very well. The Solaris host has 32G physical memory, it is dedicated host for Oracle Instance, only one instance is running on there, but both

  • Displaying BLOB.

    Hi all, I want to create blob column to save my images in to display it later on in the report ,so i did the following Create directory first .... CREATE OR REPLACE DIRECTORY images AS 'C:\'; ============================================ create the ta

  • Photoshop CC 15.2 update fails

    I get the error when  trying to update PS CC 15.2 over a 15.0 version : 10/13/14 17:07:48:271 | [FATAL] |  | OOBE | DE |  |  |  | 5968 | DS003: Installer package might be corrupt. Re-download the installer and try again. (Cannot extract 'C:\Users\Dom

  • System don't leave 'on idle'

    Hi! I have i iMac that i would like to run as a Kiosk with Safari. Got i all set up via parental controls but there is one thing left; I would like to close all Safari windows and tabs and reopen the home page, after 5 min of inactivity (idle). This