Returns not create customer credit

An shipment went to customer and we invoiced customer.  Customer then returned the entire shipment back so we created a return to put the serialized items back into inventory.  However, I noticed that the return does not appear anywhere in the customer's account balance which still shows only the invoice.  must we create a credit memo as well? 
I think this is covered in the online training, but I went through that months ago.

Hi,
If you had invoiced the customer there was no need to create a return. Basing a Credit Note on the Invoice would have been enough. It would have done the stock movement and the balance adjustment. It would also have closed of the Invoice which I presume is now still open.
Base the Credit Note on the return, then manually reconcile the Credit with the Invoice.
Hope it helps.
Jesper

Similar Messages

  • MDM Business Partner 5.5 Not Creating Customer Master in SAP ECC

    Hi,
      I am importing Business Partner into ECC from MDM using XI with BP Business Content. This is done using proxy.
      The business partner is created sucessfully but the customer master table KNA1, KNB1 is not being populated.
       Does anyone experienced this before? Or has a solution for this?

    I am not creating customer in ECC. I am creating Business Partner,  this is because we are using IS-U which uses the BP instead of the Customer Master.
    So we are using the MDM BuPa to ABAP BuPa mapping.
    The thing about this is, when we run the transaction BP to create Business Partner, it automatically creates a mirror KNA1 record to match the business partner. But through MDM-XI proxy, it is not creating the record.

  • CME not creating custom SEP MacAddress .cnf.xml files, using XMLDefault.cnf.xml for phones

    Hello, I have CME 8.6 installed on two 2851s and before going into production, I am testing a few phones.
    One of my 2851's is creating cnf.xml files for each phone using SEP<Mac address>.cnf.xml and the other one will not and the phones keep booting up with XMLDefault.cnf.xml.
    I've looked at both configurations and I can't see what the difference is. Other than not being able to create the SEP<MacAddress>.cnf.xml files, the phones appear to be loading up fine. 
    One difference I see is the "its" directory is located on system: on the one that creates the cnf files, and the "its" directory is located in flash on the one that doesn't, although I don't know how that matters.
    Below is the one that doesn't create the SEP<MACADDRESS>.cnf.xml files for phones:
    Current configuration : 2657 bytes
    ! Last configuration change at 02:12:45 UTC Wed Oct 8 2014
    version 15.1
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname RtrPod2
    boot-start-marker
    boot-end-marker
    no aaa new-model
    no network-clock-participate wic 3
    crypto pki token default removal timeout 0
    dot11 syslog
    ip source-route
    ip cef
    ip dhcp excluded-address 20.0.30.0 20.0.30.10
    ip dhcp excluded-address 20.0.10.0 20.0.10.10
    ip dhcp pool Data
     network 20.0.10.0 255.255.255.0
     default-router 20.0.10.254
     option 150 ip 20.0.30.254
    ip dhcp pool Voice
     network 20.0.30.0 255.255.255.0
     default-router 20.0.30.254
     option 150 ip 20.0.30.254
     dns-server 8.8.8.8
    no ipv6 cef
    multilink bundle-name authenticated
    voice-card 0
    license udi pid CISCO2851 sn FTX1331AJQ1
    username cisco privilege 15 password 0 cisco
    redundancy
    controller T1 0/3/0
    controller T1 0/3/1
    interface Loopback0
     no ip address
    interface GigabitEthernet0/0
     no ip address
     duplex auto
     speed auto
    interface GigabitEthernet0/0.10
     encapsulation dot1Q 10
     ip address 20.0.10.254 255.255.255.0
    interface GigabitEthernet0/0.30
     encapsulation dot1Q 30
     ip address 20.0.30.254 255.255.255.0
    interface GigabitEthernet0/1
     ip address 192.168.5.232 255.255.255.0
     duplex auto
     speed auto
    interface Serial0/0/0
     no ip address
     shutdown
     clock rate 2000000
    interface Serial0/0/1
     ip address 200.2.0.1 255.255.255.0
    ip forward-protocol nd
    no ip http server
    no ip http secure-server
    tftp-server flash:cmterm-7940-7960-sccp.8-1-2.cop.sgn alias cmterm-7940-7960-sccp.8-1-2
    tftp-server flash:/Ringtones/DistinctiveRingList.xml alias DistinctiveRingList.xml
    tftp-server flash:/Ringtones/Ringlist.xml alias Ringlist.xml
    tftp-server flash:P00308010200.bin
    tftp-server flash:P00308010200.loads
    tftp-server flash:P00308010200.sb2
    tftp-server flash:P00308010200.sbn
    control-plane
    mgcp profile default
    telephony-service
     no auto-reg-ephone
     max-ephones 110
     max-dn 288
     ip source-address 20.0.30.254 port 2000
     system message Branch System
     load 7960-7940 P00308010200
     max-conferences 8 gain -6
     transfer-system full-consult
     create cnf-files version-stamp Jan 01 2002 00:00:00
    ephone-dn  1  dual-line
     number 2000
     label Phil Davis
     description Branch Office
    ephone  1
     device-security-mode none
     mac-address 0009.E89D.0B4F
     username "cisco" password cisco
     button  1:1
    line con 0
    line aux 0
    line vty 0 4
     login local
     transport input all
    line vty 5 15
     login local
     transport input all
    scheduler allocate 20000 1000
    end

    Hello, and thanks for the good advice. I did try and added the cnf perphone command and ran no create cnf-files and then create cnf-files, but unfortunately its still not making them.
    Also, from the other few CME installations I've seen, all of the information is in flash, but for some reason when I xtracted the tar for this CME, it's showing up in system: ? Could that be a problem?  Here is what I see:
    CompactFlash directory:
    File  Length   Name/status
      1   67922508  c2800nm-adventerprisek9-mz.151-4.M8.bin
      2   85149696  cme-full-8.0.0.1.tar
      3   2942935  apps11.8-5-3TH1-6.sbn
      4   503269   cnu11.8-5-3TH1-6.sbn
      5   2104751  cvm11sccp.8-5-3TH1-6.sbn
      6   340615   dsp11.8-5-3TH1-6.sbn
      7   1616686  jar11sccp.8-5-3TH1-6.sbn
      8   670      SCCP11.8-5-3S.loads
      9   674      term06.default.loads
     10   674      term11.default.loads
     11   1916     MISCH-1.3.3.SBN
     12   900      CP7921G-1.3.3.LOADS
     13   900      CP7925G-1.3.3.LOADS
     14   674      term42.default.loads
     15   674      term62.default.loads
     16   670      SCCP42.8-5-3S.loads
     17   655      term31.default.loads
     18   654      term41.default.loads
     19   654      term45.default.loads
     20   654      term61.default.loads
     21   654      term65.default.loads
     22   654      term70.default.loads
     23   654      term71.default.loads
     24   654      term75.default.loads
     25   651      SCCP31.8-5-3S.loads
     26   650      SCCP41.8-5-3S.loads
     27   650      SCCP45.8-5-3S.loads
     28   650      SCCP70.8-5-3S.loads
     29   650      SCCP75.8-5-3S.loads
     30   61       SCCP69xx.8-5-3-0.loads
     31   131470   Desktops/320x212x12/CampusNight.png
     32   80565    Desktops/320x212x12/CiscoFountain.png
     33   8156     Desktops/320x212x12/CiscoLogo.png
     34   138278   Desktops/320x212x12/FOUNTAIN.PNG
     35   740      Desktops/320x212x12/LIST.XML
     36   109076   Desktops/320x212x12/MorroRock.png
     37   108087   Desktops/320x212x12/NantucketFlowers.png
     38   10820    Desktops/320x212x12/TN-CampusNight.png
     39   9657     Desktops/320x212x12/TN-CiscoFountain.png
     40   2089     Desktops/320x212x12/TN-CiscoLogo.png
     41   7953     Desktops/320x212x12/TN-Fountain.png
     42   7274     Desktops/320x212x12/TN-MorroRock.png
     43   9933     Desktops/320x212x12/TN-NantucketFlowers.png
     44   740      Desktops/320x212x16/LIST.XML
     45   740      Desktops/320x216x16/LIST.XML
     46   8224     Ringtones/Analog1.raw
     47   8307     Ringtones/Analog2.raw
     48   5280     Ringtones/AreYouThere.raw
     49   5040     Ringtones/AreYouThereF.raw
     50   8206     Ringtones/Bass.raw
     51   12240    Ringtones/CallBack.raw
     52   16066    Ringtones/Chime.raw
     53   8160     Ringtones/Classic1.raw
     54   16080    Ringtones/Classic2.raw
     55   10800    Ringtones/ClockShop.raw
     56   2823     Ringtones/DistinctiveRingList.xml
     57   9665     Ringtones/Drums1.raw
     58   13610    Ringtones/Drums2.raw
     59   15928    Ringtones/FilmScore.raw
     60   16244    Ringtones/HarpSynth.raw
     61   8245     Ringtones/Jamaica.raw
     62   16127    Ringtones/KotoEffect.raw
     63   12776    Ringtones/MusicBox.raw
     64   8223     Ringtones/Piano1.raw
     65   15422    Ringtones/Piano2.raw
     66   9360     Ringtones/Pop.raw
     67   7200     Ringtones/Pulse1.raw
     68   4000     Ringtones/Ring1.raw
     69   4000     Ringtones/Ring2.raw
     70   4000     Ringtones/Ring3.raw
     71   4000     Ringtones/Ring4.raw
     72   4000     Ringtones/Ring5.raw
     73   4000     Ringtones/Ring6.raw
     74   4088     Ringtones/Ring7.raw
     75   495      Ringtones/Ringlist.xml
     76   10858    Ringtones/Sax1.raw
     77   14233    Ringtones/Sax2.raw
     78   16100    Ringtones/Vibe.raw
     79   8095286  apps37sccp.1-3-4-0.bin
     80   2942935  apps31.8-5-3TH1-6.sbn
     81   2935993  apps42.8-5-3TH1-6.sbn
     82   2935993  apps45.8-5-3TH1-6.sbn
     83   2935993  apps75.8-5-3TH1-6.sbn
     84   2933329  apps41.8-5-3TH1-6.sbn
     85   2933329  apps70.8-5-3TH1-6.sbn
     86   2599169  APPSH-1.3.3.SBN
     87   2591877  APPS-1.3.3.SBN
     88   2118620  SYSH-1.3.3.SBN
     89   2103754  cvm70sccp.8-5-3TH1-6.sbn  [invalid checksum]
     90   2101414  cvm41sccp.8-5-3TH1-6.sbn  [invalid checksum]
     91   2100804  cvm45sccp.8-5-3TH1-6.sbn  [invalid checksum]
     92   2100554  cvm75sccp.8-5-3TH1-6.sbn  [invalid checksum]
     93   2100286  cvm31sccp.8-5-3TH1-6.sbn  [invalid checksum]
     94   2099070  cvm42sccp.8-5-3TH1-6.sbn  [invalid checksum]
     95   2083047  SYS-1.3.3.SBN  [invalid checksum]
     96   1939872  WLANH-1.3.3.SBN  [invalid checksum]
     97   1906272  SCCP69xx.8-5-3-0.zz  [invalid checksum]
     98   1892036  GUIH-1.3.3.SBN  [invalid checksum]
     99   1887312  jar75sccp.8-5-3TH1-6.sbn  [invalid checksum]
     100   1882934  jar45sccp.8-5-3TH1-6.sbn  [invalid checksum]
     101   1848343  GUI-1.3.3.SBN  [invalid checksum]
     102   1828410  jar70sccp.8-5-3TH1-6.sbn  [invalid checksum]
     103   1756328  jar42sccp.8-5-3TH1-6.sbn  [invalid checksum]
     104   1628021  jar41sccp.8-5-3TH1-6.sbn  [invalid checksum]
     105   1616425  jar31sccp.8-5-3TH1-6.sbn  [invalid checksum]
     106   1379535  WLAN-1.3.3.SBN  [invalid checksum]
     107   939293   TNUXH-1.3.3.SBN  [invalid checksum]
     108   896477   TNUX-1.3.3.SBN  [invalid checksum]
     109   537925   dsp41.8-5-3TH1-6.sbn  [invalid checksum]
     110   537925   dsp70.8-5-3TH1-6.sbn  [invalid checksum]
     111   524969   cnu45.8-5-3TH1-6.sbn  [invalid checksum]
     112   524917   cnu42.8-5-3TH1-6.sbn  [invalid checksum]
     113   524876   cnu75.8-5-3TH1-6.sbn  [invalid checksum]
     114   503753   cnu31.8-5-3TH1-6.sbn  [invalid checksum]
     115   500084   cnu70.8-5-3TH1-6.sbn  [invalid checksum]
     116   499644   cnu41.8-5-3TH1-6.sbn  [invalid checksum]
     117   496521   music-on-hold.au  [invalid checksum]
     118   340615   dsp31.8-5-3TH1-6.sbn  [invalid checksum]
     119   340615   dsp42.8-5-3TH1-6.sbn  [invalid checksum]
     120   340615   dsp45.8-5-3TH1-6.sbn  [invalid checksum]
     121   340615   dsp75.8-5-3TH1-6.sbn  [invalid checksum]
     122   264368   DSP69xx.0-0-0-3.zz  [invalid checksum]
     123   165355   B016-1-0-3.SBN  [invalid checksum]
     124   146463   B015-1-0-3.SBN  [invalid checksum]
     125   44896    BOOT69xx.0-0-0-14.zz  [invalid checksum]
     126   11601    CME-8-0-Full-Readme-v.1.0.txt  [invalid checksum]
     127   5134     7970-71-75-Background-readme-v1.txt  [invalid checksum]
     128   1916     MISC-1.3.3.SBN  [invalid checksum]
     129   4118     GUI/admin_user.html  [invalid checksum]
     130   677820   GUI/admin_user.js  [invalid checksum]
     131   1029     GUI/CiscoLogo.gif  [invalid checksum]
     132   639      GUI/CME_GUI_README.TXT  [invalid checksum]
     133   953      GUI/Delete.gif  [invalid checksum]
     134   16344    GUI/DOM.JS  [invalid checksum]
     135   864      GUI/downarrow.gif  [invalid checksum]
     136   6315     GUI/ephone_admin.html  [invalid checksum]
     137   4558     GUI/LOGOHOME.GIF  [invalid checksum]
     138   3978     GUI/normal_user.html  [invalid checksum]
     139   78428    GUI/normal_user.js  [invalid checksum]
     140   1347     GUI/Plus.gif  [invalid checksum]
     141   843      GUI/SXICONAD.GIF  [invalid checksum]
     142   174      GUI/Tab.gif  [invalid checksum]
     143   2496     GUI/telephony_service.html  [invalid checksum]
     144   870      GUI/UPARROW.GIF  [invalid checksum]
     145   10230    GUI/xml-test.html  [invalid checksum]
     146   3412     GUI/xml.template  [invalid checksum]
     147   12       OS79XX.txt
     148   130552   P00308010200.bin
     149   461      P00308010200.loads
     150   708448   P00308010200.sb2
     151   130956   P00308010200.sbn
     152   703535   cmterm-7940-7960-sccp.8-1-2.cop.sgn
    [239789964 bytes used, 281983088 available, 521773052 total]
    509544K bytes of ATA CompactFlash (Read/Write)
    RtrPod2#show telephony-service tftp-bindings
    tftp-server system:/its/united_states/7960-tones.xml alias United_States/7960-tones.xml
    tftp-server system:/its/united_states/7960-font.xml alias English_United_States/7960-font.xml
    tftp-server system:/its/united_states/7960-font.xml alias English_United_States/7920-font.xml
    tftp-server system:/its/united_states/7960-dictionary.xml alias English_United_States/7960-dictionary.xml
    tftp-server system:/its/united_states/7960-kate.xml alias English_United_States/7960-kate.xml
    tftp-server system:/its/united_states/7960-kate.xml alias English_United_States/7920-kate.xml
    tftp-server system:/its/united_states/SCCP-dictionary.xml alias English_United_States/SCCP-dictionary.xml
    tftp-server system:/its/SEPDEFAULT.cnf alias SEPDefault.cnf
    tftp-server system:/its/vrf1/XMLDefault.cnf.xml alias XMLDefault.cnf.xml

  • FD32 - Customer credit, Issue with mass update of "TITLE OF NOTE" field

    Hi All,
    we have requirement for mass upload of credit master records. I am facing an issue with creation/populating of Title of note field. When we go directly to FD32 transaction we have a button "Services for Object" near tiltle of second screen of FD32 through which we can create a title of note (SOOD-OBJDES) but when we go to FD32 through SHDB for BDC recording, that option is not found.
    Any idea on how to handle mass update for that field?
    Dhareppa

    Hi,
      You can use function module 'SGOS_NOTE_CREATE'. to create a note after you create customer credit limit through SHDB for BDC recording. It is going to be a separate program.
      Function Module Parameters:
      IS_OBJECT-OBJKEY = customer no + credit control  area. --> ex. 20000000140001
      IS_OBJECT-OBJTYPE = BUS1010
      IP_TITLE = Your title
      IT_CONTENT = your note content.
    Cheers,
    Chaiphon

  • Creating Custom Fields on Ad-Hoc Issues in GRC PC

    Hello All -
    We have a requirement to create a custom field on ad-hoc issues in GRC Process Control 10.1.  I have created custom fields on test plans and controls previously, but have not created custom fields on ad-hoc issues.  I have not been able to find any SAP documentation that states whether or not custom fields can be created for ad-hoc issues.  Has anyone done this?  If yes, can you please share any documentation on how to create these custom fields for ad-hoc issues?  Thanks in advance!

    Hi Taylor,
    Procedure to add a Customer Defined Field (CDF) in any screen of Process control is same. You only need to change is..object name. Did you refer to the below SAP Note  which helps to define CDF?
    1655539 - Add user-defined fields
    If not, please review this and add the custom field in adhoc issue page. You can also review the below SAP Notes which has the latest fixes for this area once you are able to manage the CDF in the page.
    1934382
    1928603
    1924077
    Thanks & Regards
    Neeraj

  • Credit note should be issued to newly created customer

    Hello Gurus,
    I need to issue a rebate credit note for  2013 – Jan-Aug   1200746,44 INR
    Agreement 70 was created for customer 4000240- Royal plastic (Royal group) this customer was sold to Melton group as per 01.09.2013 – new account 4000488 with new name as Melton plastic was created.
    The old account 4000240 has been marked for deletion.
    Now I need to create a credit note for the customer, but it has to be issued to new customer account 4000488.
    Now client wants to make sure that the credit note will be booked in a way that the credit amount it related to rebates and not revenues.
    Can you please advise how to handle this ?
    Regards
    Soumendu

    HI,
    you can achive this by assigning customer account to different credit risc class in credit master data.
    The risc class triggers system behaviour/response for credit risc management (what is checked during credit management process, what happens if the check is fullfilled,...).
    Best regards, Christian

  • Corrupt Credit Note created via DI API

    Hello,
    when i try to create a credit note via di api i get the error message "one of the base documents has been closed", even if the source document is not closed. But this is not the main problem. After this i have a corrupt credit memo in my system, that means a credit memo with out any detail lines. The error occurs only on one customer systems, on a lot of other systems the creation of credit notes works fine. Had anybody the same effect or clue what causes this problem.
    Regards

    Hello we found the problem, i can reproduce it on a belgium database.
    I want you to inform about a critical error in the SBO_SP_TransactionNotification.
    If you check the line data of a document and send an error for this data the front end works fine. But if you use the DI-API the header data of document will be saved and the lines will be not saved.
    if @object_type in ('14','19') and @transaction_type = 'A'
    begin
    declare @corrCRD as varchar(8)
    if @object_type = '14'
    set @corrCRD = (select distinct(correction) from ovtg where code in (select vatgroup from RIN1 where docentry = @list_of_cols_val_tab_del) and correction = 'N')
    else if @object_type = '19'
    set @corrCRD = (select distinct(correction) from ovtg where code in (select vatgroup from RPC1 where docentry = @list_of_cols_val_tab_del) and correction = 'N')
    if @corrCRD = 'N'
    begin
    set @error = 1
    set @error_message = 'You have entered a regular VAT Code on the document, this is not allowed'
    end
    end

  • How to create a Credit Note to the client for purchasing of an Asset last y

    Hi,
    I have an issue in Asset Accounting as it showed bellow:
    Assets depreciation start date is 1st October 2007.
    We have run the depreciation up to November 2007.
    Than we sold the asset in December.
    However, after the end closed year 2007, client returned the asset in 1 st January 2008.
    So i need to create a Credit Note to the client for purchasing of an Asset last year, but we don't know how to create it?
    We thinks that correct movement should be debit in extraordinary cost / profits account, debit in asset account, credit in accumulated depreciation account and credit in client account.
    Plz help. I will assign full points for any useful answer.
    Thanks
    Edited by: Ricardo Pedro Rodrigues Ferrão on Dec 20, 2007 10:09 AM

    How did you sell the asset?
    You can just reverse the sale transaction by going to transaction AB08.
    Hopefull this may work for you.
    Regards,

  • Accounting No not Created For Sales Orders when Processed thru Credit cards

    Hi Experts,
    I was able to successfully post FI document through Billing document in SD.
    The Problem is encountered when a Sales Order is created
    for Credit Card customers.
    When the sales order is created the credit card information we are prompted with an error message Payment terms is a required field for G/L Acc so and so...
    The payment terms field in the posting key 01 is marked required and the same field for the reconcilation account is optional. However this config has not created any problem for the Non credit card sales orders.
    If any one has faced the same problem. Please help me out in this issue.
    Thanks,
    Chaitanya

    Hi Friends,
    Please refer SAP OSS Note 119047.
    In the OSS Note they have mentioned..
    Pass the payment terms to the field
    xaccit-zterm = '0001'. in the User Exit.
    Program : LV60BF0C,
    Customer Function '002'.
    Include File ZXVVFU02.
    SE 37:- EXIT_SAPLV60B_002
    Still I don't understand why SAP doesn't support payment terms for Credit Card. But when a Sales Order is  created without credit card the field xaccit-zterm  has a value.
    Thanks,
    Chaitanya K

  • System is not blocking Customer at creating Sales order - Urgent

    Hello all,
    Our user has created a sales order for 1,040,000.00  PKR for advance payment- cheque payment term. There is not payment against customer in fbl5n but system is not blocking sales order.Customer credit limit is zero. Any idea that why this is happening??

    hi,
    we had a similar req we handled it using delivery level blocks and restricted the authorisation to remove the block to certain users. incase you are not doin this follow this path. imglog executionshippingdeliveries-define reasons. assign this block to the order. also you will ahve to put teh block in cust master too.
    saurabh

  • File to IDOC scenario: Create customer master and then return customer no

    Hi all.
    I have a scenario to pass xml file to sap XI to generate IDOC to create customer master in SAP. My problem is that I need to return customer no. created in SAP from IDOC. Is there any solution to do this? Someone told me that BPM could be used for doing this but I don't know the steps.I have no problem in create customer master in SAP. My only problem is how to return customer no.  Any help would be appreciate. Thank you.
    Best Regards,
    Pavin

    >>u can use synch-Asynch bridge using BPM
    This can not be done via sync-async bridge.There are 2 reasons for this
    1.He has file adapter as sender and that doesn't support synchronous scenarios.
    2.He has standard IDOC as receiver.there is no way you can fetch customer# from IDOC without writing a custom program,Thats why i said he need to either use RFC/Proxy or do some custom development.
    Thanx
    Aamir

  • Wrong taxes while issueing credit note to customer

    Hi,
    We are using FB75 to create credit note to customer as we charged excess amount in original service tax bill through oversight.
    Invoice details are as below.
    Basic Cost              1,75,000.00
    Service tax 10.3% -  18,025.00
    Total                        1,93.025.00
    But in credit note service tax is calculated at 16% even though we are using same tax code as per original invoice.
    Kindly help.
    With Best Regards,
    Rajkumar

    Dear Rajkumr,
    This may be caused due to configuration change after the original invoice and before the credit note posting. Please check the configuration (specially tax rate) in FTXP transaction.
    Thanks!!!
    Murlidhar Khatri

  • Block return sales orders or credit notes?

    Hi,
    Could someone please explain how I block return sales orders or credit notes?
    Also is there a way of searching which sales order documet types have been used for credit notes?
    Thanks

    Hi Friend,
    The billing block is comming from the tx. VOV8 -> choose the Order type  -> billing
    block -> you could set billing block here.
    In Shipping column, there is also a field Delivery block where you could set delivery
    block for the order type.
    Or you could also set delivery block and billing block manually when you create the order.
    You could check order type which is used as return or credit memo request by following way:
    SE16 -> TVAK -> use selection criteria VBTYP = H and K
    H  Returns
    K  Credit memo request
    Then excecute, you could get the order type you want.
    Best regards,
    Alex

  • I have problem sending a email ..spool not created using custom FM

    Hi experts,
    i have problem sending a email ..spool not created using custom FM...this the custom FM
    * Send email notification
          lv_subject = text-037.
          lv_attachment = text-038.
          CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
            EXPORTING
              email1            = lv_email1
              email2            = lv_email2
              email3            = lv_email3
              subject           = lv_subject
              attachment_name   = lv_attachment
            EXCEPTIONS
              spool_not_created = 1
              OTHERS            = 2.
    Source code
    this is the source code for this FM
    IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
        PERFORM convert_spool_to_pdf.
        IF sy-subrc IS NOT INITIAL.
          MESSAGE e040(zhrcd) RAISING spool_not_created.
        ENDIF.
        PERFORM process_email USING email1
                                    email2
                                    email3
                                    subject
                                    attachment_name.
        WAIT UP TO 5 SECONDS.
        SUBMIT rsconn01 WITH mode   = 'INT'
                        WITH output = 'X'
                        AND RETURN.
      ENDIF.....
    Please let me know
    Edited by: Thomas Zloch on Nov 16, 2010 5:53 PM - please use code tags

    Hi srinivas ,
    Could you please Check
    FORM summary_report .
      DATA: lv_success TYPE i,
              lv_error TYPE i,
              lv_total TYPE i.
      DESCRIBE TABLE gt_data LINES lv_success.
    DESCRIBE TABLE gt_error LINES lv_error.
      DESCRIBE TABLE gt_message LINES lv_error.
    lv_total = lv_success + lv_error.
      lv_total = lv_success.
      gwa_summary-record = text-008."Number of Successful records.
      gwa_summary-number = lv_success.
      APPEND gwa_summary TO gt_summary.
      gwa_summary-record = text-009."Number of error records'.
      gwa_summary-number = lv_error.
      APPEND gwa_summary TO gt_summary.
      gwa_summary-record = text-010."Total number of records processed.
      gwa_summary-number =  lv_total.
      APPEND gwa_summary TO gt_summary.
    CLEAR gt_fieldcat.
      gwa_fieldcat_summ-col_pos = 1 .
      gwa_fieldcat_summ-fieldname  = 'RECORD'.
      gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
      gwa_fieldcat_summ-seltext_l  = text-011."Records
      gwa_fieldcat_summ-outputlen = '70'.
      APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
      gwa_fieldcat_summ-col_pos = 2 .
      gwa_fieldcat_summ-fieldname  = 'NUMBER'.
      gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
      gwa_fieldcat_summ-seltext_l  = text-012."Number
      gwa_fieldcat_summ-outputlen = '10'.
      APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
    ENDFORM.                    " SUMMARY_REPORT
    *&      Form  ERROR_REPORT
    FORM error_report .
    gt_fieldcat_err[] = gt_fieldcat[].
      gv_fieldcat_err-col_pos = 1.
      gv_fieldcat_err-fieldname  = 'PERNR'.
      gv_fieldcat_err-tabname = 'GT_MESSAGE'.
      gv_fieldcat_err-seltext_l  = text-070."Employee Number
      gv_fieldcat_err-outputlen = '20'.
      APPEND gv_fieldcat_err TO gt_fieldcat_err.
      gv_fieldcat_err-col_pos = 2.
      gv_fieldcat_err-fieldname  = 'MESSAGE'.
      gv_fieldcat_err-tabname = 'GT_MESSAGE'.
      gv_fieldcat_err-seltext_l  = text-071."Error Message
      gv_fieldcat_err-outputlen = '80'.
      APPEND gv_fieldcat_err TO gt_fieldcat_err.
    ENDFORM.                    " ERROR_REPORT
    *&      Form  FINAL_REPORT
    FORM final_report .
      DATA:lv_layout TYPE slis_layout_alv,
             lt_events_summ TYPE slis_t_event,
             lv_events_summ LIKE LINE OF lt_events_summ,
             lt_events_det TYPE slis_t_event,
             lv_events_det LIKE LINE OF lt_events_det,
             lt_events_err TYPE slis_t_event,
             lv_events_err LIKE LINE OF lt_events_det,
             lt_events_msg TYPE slis_t_event,
             lv_events_msg LIKE LINE OF lt_events_det.
      lv_events_summ-name = 'TOP_OF_PAGE'.
      lv_events_summ-form = 'TOP_OF_PAGE1'.
      APPEND lv_events_summ TO lt_events_summ.
      lv_events_det-name = 'TOP_OF_PAGE'.
      lv_events_det-form = 'TOP_OF_PAGE2'.
      APPEND lv_events_det TO lt_events_det.
      lv_events_err-name = 'TOP_OF_PAGE'.
      lv_events_err-form = 'TOP_OF_PAGE3'.
      APPEND lv_events_err TO lt_events_err.
      lv_events_msg-name = 'TOP_OF_PAGE'.
      lv_events_msg-form = 'TOP_OF_PAGE4'.
      APPEND lv_events_msg TO lt_events_msg.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          i_callback_program = sy-repid.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                        = lv_layout
          it_fieldcat                      = gt_fieldcat_summ
          i_tabname                        = 'IT_SUMMARY'
          it_events                        = lt_events_summ
      IT_SORT                          =
      I_TEXT                           = ' '
        TABLES
          t_outtab                         = gt_summary
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 2
      OTHERS                           = 3
    IF CHK_DTL IS NOT INITIAL.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                        = lv_layout
          it_fieldcat                      = gt_fieldcat
          i_tabname                        = 'gt_data'
          it_events                        = lt_events_det
      IT_SORT                          =
      I_TEXT                           = ' '
        TABLES
          t_outtab                         = gt_data
    EXCEPTIONS
      PROGRAM_ERROR                    = 1
      MAXIMUM_OF_APPENDS_REACHED       = 2
      OTHERS                           = 3
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
         is_layout   = lv_layout
         it_fieldcat = gt_fieldcat_err
         i_tabname   = 'gt_error'
         it_events   = lt_events_err
       TABLES
         t_outtab    = gt_error.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
         is_layout   = lv_layout
         it_fieldcat = gt_fieldcat_msg
         i_tabname   = 'gt_message'
         it_events   = lt_events_msg
       TABLES
         t_outtab    = gt_error.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = lv_layout
          it_fieldcat = gt_fieldcat_err
          i_tabname   = 'gt_message'
          it_events   = lt_events_err
        TABLES
          t_outtab    = gt_message.
    IF GT_MESSAGE[] IS NOT INITIAL.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout   = lv_layout
          it_fieldcat = gt_fieldcat_msg
          i_tabname   = 'gt_message'
          it_events   = lt_events_msg
        TABLES
          t_outtab    = gt_message.
    ENDIF.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
       i_interface_check             = ' '
      IS_PRINT                      =
       i_screen_start_column         = 0
       i_screen_start_line           = 0
       i_screen_end_column           = 0
       i_screen_end_line             = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER       =
      ES_EXIT_CAUSED_BY_USER        =
    EXCEPTIONS
      PROGRAM_ERROR                 = 1
      OTHERS                        = 2
    ENDFORM.                    " FINAL_REPORT
    *&      Form  top_of_page
          text
    FORM top_of_page1.                                          "#EC CALLED
      WRITE text-013."SUMMARY REPORT.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page2
          text
    FORM top_of_page2.                                          "#EC CALLED
      WRITE text-014."DETAIL REPORT.
    ENDFORM.                    "top_of_page
    *&      Form  top_of_page3
          text
    FORM top_of_page3.                                          "#EC CALLED
      WRITE text-015."ERROR REPORT
    ENDFORM.                    "top_of_page
    *&      Form  EMAIL_NOTIFICATION
    FORM email_notification .
      DATA: lv_email1  TYPE somlreci1-receiver,
           lv_email2  TYPE somlreci1-receiver,
           lv_email3  TYPE somlreci1-receiver,
           lv_subject TYPE char200,
           c_flag     TYPE c           VALUE 'X',
           lv_attachment TYPE char50.
      CLEAR: lv_email1,
             lv_email2,
             lv_email3,
             lv_subject,
             lv_attachment.
      SELECT SINGLE email1
                    email2
                    email3
        FROM zhr_interface_pr
        INTO (lv_email1,lv_email2,lv_email3)
        WHERE zinterfaceid EQ gc_objectid.
      IF sy-subrc EQ 0.
        IF sy-batch EQ 'X'.
    Send email notification
          lv_subject = text-037.
          lv_attachment = text-038.
          CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
            EXPORTING
              email1            = lv_email1
              email2            = lv_email2
              email3            = lv_email3
              subject           = lv_subject
              attachment_name   = lv_attachment
            EXCEPTIONS
              spool_not_created = 1
              OTHERS            = 2.
          IF sy-subrc <> 0.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    "
    Edited by: katewinslate@SAP on Nov 17, 2010 12:50 PM

  • How to Created custom report for Ship not Billed (SD/FI)?

    Hi all,
    I am anticipating  to write some abap reports..Here is one of them..
    Anyone can help  me with writing a Report , how to do 'Custom Report for shipped not Billed(SD/FI)' ..But since I am new to Abap , if you wish to reply, please use a little more detail and simple explanation, step by step so I can understand what is the idea, how it can be acheived...what kind of report should be used , techniques, tables etc...:)
    Appreciate your help!
    Regards,
    Boby

    Hi Boby,
    You need to create custom transaction to achive these results.
    you will have selection-screen ,it would be :
    Date : Here date would be mandatory  - Ranges Option
    Customer  - Optional field - Ranges
    Order #  Sales Order (Optional) Ranges
    Invoice #  - Invoice # (Optional) Ranges
    You will get the data based on ur selection-screen criteria ...
    First you will have customer order details from diffrent table
    VBAK,
    VBAP,
    LIKP
    LIPS
    VBRK,
    VBRP
    KNA1,
    VBFA Tables ( See the my sample program )
    Output would be :
    Customer #   Custome Name    Order #   Delivery #   Invoice #   Netpr, Netquantity ,
    Check the condition  whether invoice table has VBRK-RFBSK  = ''.
    See the my sample program : This is sales report by monthly..
    REPORT ZFDSALES_REPORT no standard page heading
                           message-id zwave.
    Data Declaration Part
    TYPE-POOLS
    type-pools : slis.
    Tables
    tables : VBAK,
             VBAP.
    Internal table for VBAK Table
    data : begin of i_vbak occurs 0,
           vbeln like vbak-vbeln,
           bstnk like vbak-bstnk,
           vdatu like vbak-vdatu,
           end of i_vbak.
    Internal table for VBAP and MATNR
    data : begin of i_vbap occurs 0,
           vbeln like vbap-vbeln,
           matnr like vbap-matnr,
           kdmat like vbap-kdmat,
           kwmeng like vbap-kwmeng,
           netpr like vbap-netpr,
           maktx like makt-maktx,
           end of i_vbap.
    Internal tables
    data : begin of i_sales occurs 0,
           vdatu like vbak-vdatu,
           bstnk like vbak-bstnk,
           matnr like vbap-matnr,
           maktx like makt-maktx,
           kdmat like vbap-kdmat,
           kwmeng like vbap-kwmeng,
           netpr  like vbap-netpr,
           end of i_sales.
    Variable for ALV
    data : v_repid like sy-repid,
           gt_fieldcat    type slis_t_fieldcat_alv.
    Selection-screen
    selection-screen : begin of block blk with frame title text-001.
    select-options : s_vbeln for vbak-vbeln,
                     s_erdat for vbak-erdat,
                     s_ernam for vbak-ernam,
                     s_vdatu for vbak-vdatu obligatory,
                     s_BSTNK for vbak-BSTNK,
                     s_KUNNR for vbak-kunnr,
                     s_matnr for vbap-matnr,
                     s_KDMAT for vbap-KDMAT.
    selection-screen : end of block blk.
    Initilization
    initialization.
      v_repid = sy-repid.
    S T A R T  -  O F  -  S E L E C T I O N ****************
    start-of-selection.
    Get the data from VBAK and VBAP Tables
      perform get_vbak_vbap.
    E N D  -  O F  -  S E L E C T I O N *****************
    end-of-selection.
    Display the data
      perform dispolay_data.
    *&      Form  get_vbak_vbap
          Get the data from VBAK and VBAP Table
    FORM get_vbak_vbap.
    Get the data from VBAK Table
      select vbeln bstnk vdatu from vbak into table i_vbak
                         where vbeln in s_vbeln
                         and   bstnk in s_bstnk
                         and   vdatu in s_vdatu
                         and   kunnr in s_kunnr
                         and   erdat in s_erdat
                         and   ernam in s_ernam.
      if sy-subrc ne 0.
        message e000(zwave) with 'No data found for given selection'.
      endif.
    Get the data from VBAP Table
      select avbeln amatnr akdmat akwmeng a~netpr
             b~maktx into table i_vbap
             from vbap as a inner join makt as b on bmatnr = amatnr
             for all entries in i_vbak
             where a~vbeln in s_vbeln
             and   a~kdmat in s_kdmat
             and   a~abgru = space
             and   a~matnr in s_matnr
             and   a~matnr ne '000000000000009999'
             and   a~matnr ne '000000000000004444'
             and   a~matnr ne '000000000000008888'
             and   a~matnr ne '000000000000001111'
             and   a~werks = '1000'
             and   b~spras = 'E'
             and   a~vbeln = i_vbak-vbeln.
      if sy-subrc ne 0.
        message e000(zwave) with 'No data found for given selection'.
      endif.
      sort i_vbak by vbeln.
      sort i_vbap by vbeln matnr.
      loop at i_vbap.
        read table i_vbak with key vbeln = i_vbap-vbeln
                                binary search.
        if sy-subrc eq 0.
          i_sales-bstnk = i_vbak-bstnk.
          i_sales-vdatu = i_vbak-vdatu.
          i_sales-matnr = i_vbap-matnr.
          i_sales-kdmat = i_vbap-kdmat.
          i_sales-maktx = i_vbap-maktx.
          i_sales-netpr = i_vbap-netpr.
          i_sales-kwmeng = i_vbap-kwmeng.
          append i_sales.
        else.
          continue.
        endif.
        clear : i_sales,
                i_vbap,
                i_vbak.
      endloop.
      sort i_sales by vdatu bstnk matnr.
      refresh : i_vbap,
                i_vbak.
    ENDFORM.                    " get_vbak_vbap
    *&      Form  dispolay_data
          Display the data
    FORM dispolay_data.
    Fill the Fiedlcat
      PERFORM fieldcat_init  using gt_fieldcat[].
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                =
      I_BUFFER_ACTIVE                   = ' '
          I_CALLBACK_PROGRAM                = v_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
          IT_FIELDCAT                       = gt_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_ADD_FIELDCAT                   =
      IT_HYPERLINK                      =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
      IT_EXCEPT_QINFO                   =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          T_OUTTAB                          = i_sales
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    ENDFORM.                    " dispolay_data
    *&      Form  fieldcat_init
          text
         -->P_GT_FIELDCAT[]  text
    FORM fieldcat_init USING  e01_lt_fieldcat type slis_t_fieldcat_alv.
      DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    Delivery Date
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'VDATU'.
      LS_FIELDCAT-OUTPUTLEN    = 12.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Delivery Date'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Purchase Order #Material Description
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'BSTNK'.
      LS_FIELDCAT-OUTPUTLEN    = 25.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Purchase Order #'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Material
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-REF_FIELDNAME    = 'MATNR'.
      LS_FIELDCAT-REF_TABNAME    = 'MARA'.
      LS_FIELDCAT-FIELDNAME    = 'MATNR'.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Material #'.
      ls_fieldcat-seltext_M = 'Material #'.
      ls_fieldcat-seltext_S = 'Material #'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Material Description
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'MAKTX'.
      LS_FIELDCAT-OUTPUTLEN    = 40.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Material Description'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Customer Material #
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'KDMAT'.
      LS_FIELDCAT-OUTPUTLEN    = 35.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Customer material no.'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Quantity
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'KWMENG'.
      LS_FIELDCAT-OUTPUTLEN    = 15.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Quantity'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Net Price
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'NETPR'.
      LS_FIELDCAT-OUTPUTLEN    = 15.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Net Price'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    ENDFORM.                    " fieldcat_init
    Reward Points if it is helpful
    Thanks
    Seshu

Maybe you are looking for

  • How do you determine what shows are in free video on demand?

    How do you determine what to include in the free on-demand shows?  The Mentalist was always there before but is no longer.  This is especially important for shows like the Mentalist and The Good Wife which come on Sunday nights after sports events.  

  • Problem with Pages purchase

    I downloaded the free trial of iWork when I bought my MBP in Dec, then purchased separate Pages in January through the App Store. Pages loads documents fine, but won't save anything as it tells me my trial has expired, even thought I have now paid fo

  • Save before opening

    Hello, I would love to know how can i save a document before open it. I really need it. Thanks for your help Engin

  • Cant tell the time when reciving calls and iPhone is locked

    here is the setuation .. it was middle of the night .. my iPhone is next to me .. i am in bed .. iPhone locks it self and goes to black screen .. i go to sleep .. some times later in the night, i get a phone call .. iPhone rings .. i pick it up .. it

  • How can I view files in room as IVIEW (not as link)

    Hi I would like to be able documents which I attached in rooms to be displayed as iview ( not as link) can somebody tell me if this is possible? cheers Murat