Changed po details

Hi All,
if the po changed, then the details will display in smartform.
like qty, delivery date, etc....
example prg.. (SE 38)
*& Report ZSA124 *
REPORT ZSA124 LINE-SIZE 132 NO STANDARD PAGE HEADING
LINE-COUNT 065(001)
MESSAGE-ID VR.
TABLES: DD04T,
CDHDR,
CDPOS,
DD03L,
DD41V,
T685T,
VBPA,
TPART,
KONVC,
EKKO.
SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE,
XNAME FOR CDHDR-USERNAME,
XEBELN FOR EKKO-EBELN,
XLIFNR FOR EKKO-LIFNR.
SELECTION-SCREEN SKIP.
TEXT-001 - Sorting Sequence
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
SNAME RADIOBUTTON GROUP R1,
SOBID RADIOBUTTON GROUP R1.
SELECTION-SCREEN END OF BLOCK BLK1.
DATA: WFLAG,
WCHANGENR LIKE CDHDR-CHANGENR.
DATA: INDTEXT(60) TYPE C.
DATA: BEGIN OF ICDHDR OCCURS 50.
INCLUDE STRUCTURE CDHDR.
DATA: END OF ICDHDR.
DATA: BEGIN OF ICDSHW OCCURS 50.
INCLUDE STRUCTURE CDSHW.
DATA: END OF ICDSHW.
DATA: BEGIN OF EKKEY,
EBELN LIKE EKET-EBELN,
EBELP LIKE EKET-EBELP,
ETENR LIKE EKET-ETENR,
END OF EKKEY.
DATA: BEGIN OF ITAB OCCURS 50,
BEGIN OF EKKEY,
EBELN LIKE EKET-EBELN,
EBELP LIKE EKET-EBELP,
ETENR LIKE EKET-ETENR,
END OF EKKEY,
CHANGENR LIKE CDHDR-CHANGENR,
UDATE LIKE CDHDR-UDATE,
UTIME LIKE CDHDR-UTIME,
USERNAME LIKE CDHDR-USERNAME,
CHNGIND LIKE CDSHW-CHNGIND,
FTEXT LIKE CDSHW-FTEXT,
OUTLEN LIKE CDSHW-OUTLEN,
F_OLD LIKE CDSHW-F_OLD,
F_NEW LIKE CDSHW-F_NEW,
END OF ITAB.
DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
FIELD-SYMBOLS: <F_OLD>, <F_NEW>.
SELECT * FROM EKKO WHERE EBELN IN XEBELN AND
LIFNR IN XLIFNR.
CLEAR CDHDR.
CLEAR CDPOS.
CDHDR-OBJECTCLAS = 'EINKBELEG'.
CDHDR-OBJECTID = EKKO-EBELN.
PERFORM GETCHGDOCS.
ENDSELECT.
IF SUDATE = 'X'.
SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
EKKEY-ETENR.
ELSEIF SNAME = 'X'.
SORT ITAB BY USERNAME EKKEY-EBELN CHANGENR EKKEY-EBELP
EKKEY-ETENR.
ELSE.
SORT ITAB BY EKKEY-EBELN CHANGENR EKKEY-EBELP EKKEY-ETENR.
ENDIF.
LOOP AT ITAB.
CLEAR: INDTEXT, EKKEY.
CASE ITAB-CHNGIND.
WHEN 'U'.
INDTEXT(50) = ITAB-FTEXT.
INDTEXT+51 = TEXT-020.
CONDENSE INDTEXT.
WHEN 'D'.
INDTEXT = TEXT-021.
WHEN 'E'.
INDTEXT(5) = ITAB-FTEXT.
INDTEXT+51 = TEXT-021.
CONDENSE INDTEXT.
WHEN 'I'.
INDTEXT = TEXT-022.
ENDCASE.
RESERVE 4 LINES.
IF WCHANGENR NE ITAB-CHANGENR.
WCHANGENR = ITAB-CHANGENR.
EKKEY = ITAB-EKKEY.
WRITE:/ ITAB-UDATE UNDER 'Change Date',
ITAB-UTIME UNDER 'Time',
ITAB-USERNAME UNDER 'User Name',
ITAB-EKKEY-EBELN UNDER 'PO No',
ITAB-EKKEY-EBELP UNDER 'Item',
ITAB-EKKEY-ETENR UNDER 'Sch No',
INDTEXT UNDER 'Changes'.
ELSEIF ITAB-EKKEY NE EKKEY.
WRITE:/ ITAB-EKKEY-EBELP UNDER 'Item',
ITAB-EKKEY-ETENR UNDER 'Sch No',
INDTEXT UNDER 'Changes'.
ENDIF.
CASE ITAB-CHNGIND.
WHEN 'U'.
ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
ASSIGN ITAB-F_NEW(ITAB-OUTLEN) TO <F_NEW>.
WRITE: / TEXT-023 UNDER 'Changes',
<F_OLD>.
WRITE: / TEXT-024 UNDER 'Changes',
<F_NEW>.
WHEN 'E'.
ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
WRITE: TEXT-023 UNDER 'Changes',
<F_OLD>.
ENDCASE.
SKIP.
ENDLOOP.
TOP-OF-PAGE.
WRITE:/ SY-DATUM,SY-UZEIT,
50 'P U R C H A S E O R D E R H I S T O R Y',
120 'Page', SY-PAGNO.
WRITE: / SY-REPID,
60 'Purchase Orders Changes'.
SKIP.
ULINE.
IF SUDATE = 'X'.
WRITE:/001 'Change Date',
014 'Time',
024 'User Name',
038 'PO No',
050 'Item',
057 'Sch No',
065 'Changes'.
ELSEIF SOBID = 'X'.
WRITE:/001 'PO No',
013 'Item',
020 'Sch No',
028 'Change Date',
041 'Time',
051 'User Name',
065 'Changes'.
ELSE.
WRITE:/001 'User Name',
015 'Change Date',
028 'Time',
038 'PO No',
050 'Item',
057 'Sch No',
065 'Changes'.
ENDIF.
ULINE.
FORM GETCHGDOCS.
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
DATE_OF_CHANGE = CDHDR-UDATE
OBJECTCLASS = CDHDR-OBJECTCLAS
OBJECTID = CDHDR-OBJECTID
TIME_OF_CHANGE = CDHDR-UTIME
USERNAME = CDHDR-USERNAME
TABLES
I_CDHDR = ICDHDR
EXCEPTIONS
NO_POSITION_FOUND = 1
OTHERS = 2.
CHECK SY-SUBRC EQ 0.
DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
CHECK NOT ICDHDR[] IS INITIAL.
LOOP AT ICDHDR.
CHECK ICDHDR-UDATE IN XUDATE.
CHECK ICDHDR-USERNAME IN XNAME.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING CHANGENUMBER = ICDHDR-CHANGENR
IMPORTING HEADER = CDHDR
TABLES EDITPOS = ICDSHW
EXCEPTIONS NO_POSITION_FOUND = 1
OTHERS = 2.
CHECK SY-SUBRC EQ 0.
LOOP AT ICDSHW.
CHECK ICDSHW-TEXT_CASE EQ SPACE.
MOVE-CORRESPONDING ICDSHW TO ITAB.
MOVE-CORRESPONDING ICDHDR TO ITAB.
MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
APPEND ITAB.
ENDLOOP.
ENDLOOP.
ENDFORM.
in the above program,
get the changed po details..
But i want to display the details in smartform..
Please any one help me...

Please advice for the requirement.
Plan 1 - We are thinking to get Log file from both server to analyse Sent data from IBX and received Data in XI.
Plan 2 - To create a interface for receiving Log details from IBX to XI
Plan 1 seems more analysis kind of work which again depends upon comfort of sharing data in the required format by IBX.
Plan 2 have some data challenge.
Please do advice me for the same or something good above this.
Regards,
Ritesh

Similar Messages

  • FM to fill outbound IDOC with change document details.

    Hi ,
    I am working on an enhancement EXIT_SAPLMGMU_001 for an interface to track the changes to the material master.
    Can someone please let me know if there is a FM to populate outbound IDOC with change document details like when a material is
    created /changed. Thanks much.
    Regards,
    Sanjeev
    Edited by: sanjeev.s on Apr 14, 2010 3:32 PM

    Call the function module "MASTER_IDOC_DISTRIBUTE" to create idoc.  Use function module "CHANGEDOCUMENT_READ_HEADERS" to get the change document details.
    Regards
    Vinod

  • Background color change of detail pop up

    Hi,
    Please let me know the solution on how to change the detail pop up backgrond color.
    For more clarity on picture, path is, click on context menu--> details

    I am changing the lightblue  background (#F5F7F9) of the portal by downloading the theme
    and the unzip the portal.zip and then the default.properties:
    parPrtlBodyBackground=\#F5F7F9
    parDocumentBackgroundColor=\#F5F7F9
    Change the values to the required background color.
    Regards,
    Kai

  • Master-detail: check changes in detail when navigation in master

    Dear friends,
    forms 6i oracle 9i.
    I have a master and a detail block, changes in detail block can only be made in a non-database-field.
    For saving a procedure do_save is called where values from non-database-fields are calculated and then put into database field.
    For realizing that any changes where made I created another non-database-field in a control block which is set to 1 in when-validate-item-trigger of detail.non-database-field.
    When closing the form I simply check the status of my control.item und if necessary call the dó_save procedure.
    I now want to have same functionality when navigating through master-block, for example with key-down.
    I tried to use the master on_populate_detail trigger:
    --snip
    do_check_item_changed;
    IF ( (:EVM_A_ARTIKEL.H_MANDANT is not null) or (:EVM_A_ARTIKEL.ABTEILG_ID is not null) or (:EVM_A_ARTIKEL.ARTTYP_ID is not null) or (:EVM_A_ARTIKEL.ARTIKEL_ID is not null) ) THEN
    rel_id := Find_Relation('EVM_A_ARTIKEL.EVM_A_ARTIKEL_EVM_JN_A_L');
    Query_Master_Details(rel_id, 'EVM_JN_A_L');
    --snip
    but at this time the detail block seems to be empty.
    Has anybody an idea where's the right place to put my
    checking procedure?
    Thanks for help
    Silke

    Hallo,
    Do you mean this?
    relation type Join
    detail datablock evm_jn_a_l (this block
    itself is based
    on a join)
    join condition EVM_JN_A_L.H_MANDANT = EVM_A_ARTIKEL.H_MANDANT AND
    EVM_JN_A_L.ABTEILG_ID = EVM_A_ARTIKEL.ABTEILG_ID AND
    EVM_JN_A_L.ARTTYP_ID = EVM_A_ARTIKEL.ARTTYP_ID AND
    EVM_JN_A_L.ARTIKEL_ID = EVM_A_ARTIKEL.ARTIKEL_ID
    behavion when deleting not isolated
    hinder masteless actions no
    coordination no
    automatic query no
    Silke

  • How to change the details ina BPS workflow item

    Hi,
    I'm working in a SAP BW 3.5 environment and I need to change some details in a BPS workflow item. Unfortunately I have never used BPS and am struggling to get to grips with it and also to resolve the issue.
    Can anyone advise on my issue and also offer any advice / documents that cover BW BPS in a 3.5 environment.
    thanks.

    I think I better change my question. Can anyone please provide link(s) / documents where I can quickly pick up the basics of BW 3.5 BPS so I can start looking into the issue I have.

  • Change musics details on Nokia N8

    i just tried to change music details on my Nokia N8 but its look there's no any option capable to change the music detail on the device. 
    is this a problem? or it come from its phone and we cant change anything?? 
    Solved!
    Go to Solution.

    Kejok wrote:
    i just tried to change music details on my Nokia N8 but its look there's no any option capable to change the music detail on the device. 
    is this a problem? or it come from its phone and we cant change anything?? 
    Used own N95 and it did allow the editting song details. But not a full option. Certain info did not change.
    Unfortunately the Symbian Touch OS has no such function which is no biggy. Just make sure the Song detail is correct and as needed before loading to device.
    I find it easier if I create a playlist and then play the choice songs from the list.

  • Change payment details

    I hve a new credit card # so I need to update my subscription but when attempting to do so by following these directions it simply doesnt work.  it redirects me to the main spotify premium page and my only option is to start a new premium account, which it then wont allow me to do becuase i already have an account "Unfortunately, you're ineligible for this offer because you've previously signed up for a Premium trial or subscription." no comination of clicking links, manually entering web address, or going through account details will allow me to get to the change payment details screen. what else should I try? 

    Payment problem
    1. Check if your form of payment is acceptable
    http://support.apple.com/kb/HT5552
    2. Check credit card number
    3. Check security code
    4. Billing Address must be the same as credit card
    5. Check expiry date
    6. Make sure you have sufficient fund

  • Can we change the details of tax deposited in govt.A/c in F16

    Hi Experts....
    Is there any possibility to change the Details of tax deposited into central govt. account after we run the pc00_m40_f24 with opting the Temse files.here i have already generated 4 temSe files.Now i want to change the details which i have given earlier.
    Please advice me to solve the problem.
    Regards,
    sai.

    Hi,
    You can change the length in th eoutput by using
    outputlen in fieldcat.
    You can use like this
    w_fieldcat-outputlen = '20'.
    If you want 20 char lenght in the output.
    I think it is useful for you.

  • ADD or Change Bank Details in the Customer master

    Hello Gurus,
    I am looking for a BAPI or Function Module that will help me to update the Payment Transaction Tab of the customer master that contains the Bank details. I tried using BAPI_BUPA_BANKDETAIL_ADD and BAPI_BUPA_BANKDETAIL_CHANGE, but these are allowed to be used if only Business Partner is created for the payer/customer in SAP R/3.
    For every customer we donot have BP created in R/3, hence the above bapis donot help to meet my requirement.
    Has any of you had this requirement and used any bapi or any other method to add / change bank details.
    Expecting lots of options from you experts,
    Thanks & Regards in advance,
    Casimer

    hi, thnks for the update,
    i have followed as per your guidelines,  but i could not able to generate the report  , i have included the tables  knb1, kna1 and knvv.  and in the list field i have selected all the dialog box  , and in the selection list i am selecting according to the customer account group .
    but i cannot able to excuete the report it says  "no data has been selected"  and it says the following msg
    "When executing a query on the selection screen, no data was found for the criteria you entered. Therefore, no list could be generated."
    is there any problem in choosing the table  should i have to choose according to the  order level , like  General data, company code data, and sales area data   .  
    can u help me on this
    thanks

  • Can't change bank details in fi02

    Hello,
    We have a requirement to change a swift code for a vendor bank account. I changed  the details of the swift code field for the relevant bank account in FI02. Saved the changes. I get a message that indicates that changes have been made. When I check the details in fi02 the changes haven't been updated.
    I can change this field in table BNKA but I would rather not have to do this.
    Am I using the wrong tcode to change bank details?
    Thanks for you help
    Not Happy

    Hi Chintan,
    Thank you for your response
    I took a look at tcode FI12. The bank account in question is not listed there.  We have three bank accounts in there only, which are our bank accounts.  The bank account details that I want to change is a vendor bank account. When I go into tcode Fi02 I can select the bank in question from the list and make the relevant changes, the issue issue is that the changes won't update.
    Not happy

  • BADI to change Item details of MIRO Transaction

    Hi Experts,
    Is there any BADI or User Exits to change Item details like 'Profit Center' in MIRO Transaction. I searched for, but nothing helps.
    Thanks in Advance.

    Hi,
    have a look at this OSS Note (search for BAdIs as of Release 6.00:):
    1156325 - BAdIs in the Logistics Invoice Verification environment
    perhaps you could consider using a substitution instead of a badi.
    Best regards.

  • I have changed my email address so I changed my Apple ID and password.  Just realised haven't changed icloud details and now can't access as don't know password or security questions.  Want to delete and set up on new Apple ID.

    I I have changed my email address so I changed my Apple ID and password.  Just realised haven't changed icloud details and now can't access as don't know password or security questions.  Want to delete and set up on new Apple ID.  Help please???

    In order to change the iCloud ID on your device you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Changed PO details  = Display in smart forms

    Hi All,
    if the po changed, then the details will display in smartform.
    like qty, delivery date, etc....
    example prg.. (SE 38)
    *& Report  ZSA124                                                      *
    REPORT  ZSA124   LINE-SIZE 132 NO STANDARD PAGE HEADING
                     LINE-COUNT 065(001)
                     MESSAGE-ID VR.
    TABLES: DD04T,
            CDHDR,
            CDPOS,
            DD03L,
            DD41V,
            T685T,
            VBPA,
            TPART,
            KONVC,
            EKKO.
    SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE,
                    XNAME  FOR CDHDR-USERNAME,
                    XEBELN FOR EKKO-EBELN,
                    XLIFNR FOR EKKO-LIFNR.
    SELECTION-SCREEN SKIP.
    TEXT-001 - Sorting Sequence
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
                SNAME  RADIOBUTTON GROUP R1,
                SOBID  RADIOBUTTON GROUP R1.
    SELECTION-SCREEN END OF BLOCK BLK1.
    DATA: WFLAG,
          WCHANGENR LIKE CDHDR-CHANGENR.
    DATA: INDTEXT(60) TYPE C.
    DATA: BEGIN OF ICDHDR OCCURS 50.
            INCLUDE STRUCTURE CDHDR.
    DATA: END OF ICDHDR.
    DATA: BEGIN OF ICDSHW OCCURS 50.
            INCLUDE STRUCTURE CDSHW.
    DATA: END OF ICDSHW.
    DATA: BEGIN OF EKKEY,
            EBELN LIKE EKET-EBELN,
            EBELP LIKE EKET-EBELP,
            ETENR LIKE EKET-ETENR,
          END OF EKKEY.
    DATA: BEGIN OF ITAB OCCURS 50,
            BEGIN OF EKKEY,
              EBELN LIKE EKET-EBELN,
              EBELP LIKE EKET-EBELP,
              ETENR LIKE EKET-ETENR,
            END OF EKKEY,
            CHANGENR LIKE CDHDR-CHANGENR,
            UDATE    LIKE CDHDR-UDATE,
            UTIME    LIKE CDHDR-UTIME,
            USERNAME LIKE CDHDR-USERNAME,
            CHNGIND  LIKE CDSHW-CHNGIND,
            FTEXT    LIKE CDSHW-FTEXT,
            OUTLEN   LIKE CDSHW-OUTLEN,
            F_OLD    LIKE CDSHW-F_OLD,
            F_NEW    LIKE CDSHW-F_NEW,
          END OF ITAB.
    DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
    FIELD-SYMBOLS: <F_OLD>, <F_NEW>.
    SELECT * FROM EKKO WHERE EBELN IN XEBELN AND
                             LIFNR IN XLIFNR.
      CLEAR CDHDR.
      CLEAR CDPOS.
      CDHDR-OBJECTCLAS = 'EINKBELEG'.
      CDHDR-OBJECTID   = EKKO-EBELN.
      PERFORM GETCHGDOCS.
    ENDSELECT.
    IF SUDATE = 'X'.
      SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
    ELSEIF SNAME = 'X'.
      SORT ITAB BY USERNAME EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
    ELSE.
      SORT ITAB BY EKKEY-EBELN CHANGENR EKKEY-EBELP EKKEY-ETENR.
    ENDIF.
    LOOP AT ITAB.
      CLEAR: INDTEXT, EKKEY.
      CASE ITAB-CHNGIND.
        WHEN 'U'.
            INDTEXT(50) = ITAB-FTEXT.
            INDTEXT+51  = TEXT-020.
            CONDENSE INDTEXT.
        WHEN 'D'.
            INDTEXT = TEXT-021.
        WHEN 'E'.
            INDTEXT(5) = ITAB-FTEXT.
            INDTEXT+51 = TEXT-021.
            CONDENSE INDTEXT.
          WHEN 'I'.
            INDTEXT = TEXT-022.
        ENDCASE.
        RESERVE 4 LINES.
        IF WCHANGENR NE ITAB-CHANGENR.
          WCHANGENR = ITAB-CHANGENR.
          EKKEY = ITAB-EKKEY.
          WRITE:/ ITAB-UDATE UNDER 'Change Date',
                  ITAB-UTIME UNDER 'Time',
                  ITAB-USERNAME UNDER 'User Name',
                  ITAB-EKKEY-EBELN UNDER 'PO No',
                  ITAB-EKKEY-EBELP UNDER 'Item',
                  ITAB-EKKEY-ETENR UNDER 'Sch No',
                  INDTEXT     UNDER 'Changes'.
        ELSEIF ITAB-EKKEY NE EKKEY.
          WRITE:/ ITAB-EKKEY-EBELP UNDER 'Item',
                  ITAB-EKKEY-ETENR UNDER 'Sch No',
                  INDTEXT     UNDER 'Changes'.
        ENDIF.
        CASE ITAB-CHNGIND.
          WHEN 'U'.
            ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
            ASSIGN ITAB-F_NEW(ITAB-OUTLEN) TO <F_NEW>.
            WRITE: / TEXT-023  UNDER 'Changes',
                     <F_OLD>.
            WRITE: / TEXT-024 UNDER 'Changes',
                     <F_NEW>.
          WHEN 'E'.
            ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
            WRITE: TEXT-023 UNDER 'Changes',
                   <F_OLD>.
        ENDCASE.
        SKIP.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE:/ SY-DATUM,SY-UZEIT,
           50 'P U R C H A S E  O R D E R   H I S T O R Y',
          120 'Page', SY-PAGNO.
    WRITE: / SY-REPID,
             60 'Purchase Orders Changes'.
    SKIP.
    ULINE.
    IF SUDATE = 'X'.
      WRITE:/001 'Change Date',
             014 'Time',
             024 'User Name',
             038 'PO No',
             050 'Item',
             057 'Sch No',
             065 'Changes'.
    ELSEIF SOBID = 'X'.
      WRITE:/001 'PO No',
             013 'Item',
             020 'Sch No',
             028 'Change Date',
             041 'Time',
             051 'User Name',
             065 'Changes'.
    ELSE.
      WRITE:/001 'User Name',
             015 'Change Date',
             028 'Time',
             038 'PO No',
             050 'Item',
             057 'Sch No',
             065 'Changes'.
    ENDIF.
    ULINE.
    FORM GETCHGDOCS.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
           EXPORTING
                DATE_OF_CHANGE    = CDHDR-UDATE
                OBJECTCLASS       = CDHDR-OBJECTCLAS
                OBJECTID          = CDHDR-OBJECTID
                TIME_OF_CHANGE    = CDHDR-UTIME
                USERNAME          = CDHDR-USERNAME
           TABLES
                I_CDHDR           = ICDHDR
           EXCEPTIONS
                NO_POSITION_FOUND = 1
                OTHERS            = 2.
      CHECK SY-SUBRC EQ 0.
      DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
      CHECK NOT ICDHDR[] IS INITIAL.
      LOOP AT ICDHDR.
        CHECK ICDHDR-UDATE IN XUDATE.
        CHECK ICDHDR-USERNAME IN XNAME.
        CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
                     EXPORTING  CHANGENUMBER       = ICDHDR-CHANGENR
                     IMPORTING  HEADER             = CDHDR
                     TABLES     EDITPOS            = ICDSHW
                     EXCEPTIONS NO_POSITION_FOUND  = 1
                                OTHERS             = 2.
        CHECK SY-SUBRC EQ 0.
        LOOP AT ICDSHW.
          CHECK ICDSHW-TEXT_CASE EQ SPACE.
          MOVE-CORRESPONDING ICDSHW TO ITAB.
          MOVE-CORRESPONDING ICDHDR TO ITAB.
          MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
          APPEND ITAB.
        ENDLOOP.
      ENDLOOP.
    ENDFORM.
    in the above program,
                                  get the changed po details..
                 But i want to display the details in smartform..
    Please any one help me...

    hi ,
    inorder to remove print pop up use
    DATA: CPARAM TYPE SSFCTRLOP,
    CONTROL TYPE SSFCTRLOP,
    OUTOP TYPE SSFCOMPOP,
    INPUT TYPE SSFCOMPIN,
    FM_NAME TYPE RS38L_FNAM,
    MY_TABIX TYPE SY-TABIX,
    FM_NAME1 TYPE RS38L_FNAM,
    RESULT TYPE SSFCRESOP.
    CONTROL-NO_DIALOG = 'X'.
    CONTROL-PREVIEW = 'X'.
    CONTROL-NO_OPEN = 'X'.
    CONTROL-NO_CLOSE = 'X'.
    CONTROL-DEVICE = 'PRINTER'.
    OUTOP-TDDEST = 'LP01'.
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
    CONTROL_PARAMETERS = CONTROL
    OUTPUT_OPTIONS = OUTOP
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    EXIT.
    ENDIF.
    **********************call for statement1***************
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZSFORM_STATEMENTF'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FNAME2.
    CALL FUNCTION FNAME2
    EXPORTING
    P_MATNR = MARA-MATNR
    P_WERKS = T001W-WERKS
    P_CHARG = MCH1-CHARG
    IT_FINAL = IT_HEADER
    CONTROL_PARAMETERS = CONTROL.
    CALL FUNCTION 'SSF_CLOSE'
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    in your code.......
    and for having default lines in table....do one thing....
    create a window with same margins as your table display window(main) add template with the same measurements as the table ......and specifi some height.
    so that the window will be exact on the main window with the template on it ....you can observe the difference in display of smartform...by chanign the ht of the template....
    and for the center display of the table values create a paragraph format and apply with center alignement.

  • Changing PO details when posted in closed period

    Hi,
    We are on SBO2007A PL42.
    When we attempt to change details on a purchase order that was posted in a period that is now closed, we are unable to do so.
    There shouldn't be a problem modifying these PO's as they don't affect the general ledger in any way.
    The only way we have found around it is to modify the posting date of the PO and then change the details we want to change.
    Is there any other way to allow us to change the details without changing the posting date?
    Thanks,
    Michael

    This is a problem with authorisations, which is fixed in PL46 of 2007A.
    Try giving authorisation to "update posted AR documents", or to allow to "post to Closing Periods".
    I have found I needed to give both of these to get this to work.
    The other option is to change the date on the PO to a date in an open period.
    These should be able to be updated by superusers?

  • Someone has hacked my icloud account and has changed my details how can I recover it?

    Someone has hacked my icloud account and has changed my details how can I recover it?
    I can not remove my current icloud account to back up my phone some now this person has all my information
    Some one please help???

    Hi i have the same problem exactly someone changed my password and all the other details and now i unable to use my iphone all i need is just any one can reset my i cloud i already has created a new one but i cant delete my old one PLEASE HELP !!

Maybe you are looking for

  • I have an @me account, but can't get iCloud to acknowledge it

    Hello! Somewhere along the line I acquired an @me account. Was it through MobileMe? Maybe. All I know is, it exists, it's already synced to my Apple ID account so I can login to various things via either @mac or @me, using my Apple ID password. Thing

  • Disabling Certificate Validation in SSL Sockets

    I followed the examples on this site. http://javaalmanac.com/egs/javax.net.ssl/TrustAll.html?l=rel I was wondering will this work with SSL Sockets?

  • Compiler Error on Linux for jni.h, any solution?

    Hi all, i am using jni.h file provided by sun to compile my code on linux, but it gives me compile error. though it compiles properly on Windows and AIX. what could be the reason? jni.h:202: error: expected ')' before '*' token jni.h:204: error: expe

  • Trackpad clicking stopped except in lower left corner

    My trackpad started acting crazy, stopped clicking and just went haywire.  Now it clicks only in bottom left of pad.  Whats up with that?

  • DAQ LED blink

    Hello, I am having trouble integrating a few simple LV routines into one. I am using a NI-6221DAQ board in hope generating digital signals to control (pulse) two LEDs. Currently I am able to turn an LED on and off using a boolean button and I have a