Zreport for vendor customer details.

Hi ,
I have to create a report tto display a vendor and customer details. on screen i have customer code and vendor code with company code and fiscal year. when i select the cust. code plant and year it will show the doc.no ,post. and doc. date,doc type ,qty and amount as per customer details.
after that as per billing doc. of specific customer ,select excise invoice number and match it with reference number (xblnr) of vendor code. and once it is matched select tht vendor doc.no. post. and doc. date amount and qty and display it in report.so how to right a coding for thesame
let me know as its urgent.
Rgrs
Suchita

please find below coding for your reference.
*& Report  ZFI_VEND_CUST_DETAILS
REPORT  ZFI_VEND_CUST_DETAILS
  NO STANDARD PAGE HEADING
          LINE-COUNT 65
          MESSAGE-ID 00.
TABLES: BSID,BSIK.
DATA: IT_BSID LIKE BSID OCCURS 0 WITH HEADER LINE.
DATA: IT_BSIK LIKE BSIK OCCURS 0 WITH HEADER LINE.
DATA: IT_J_1IEXCHDR LIKE J_1IEXCHDR OCCURS 0 WITH HEADER LINE.
DATA: BEGIN  OF IT_OUT OCCURS 0,
        BELNR LIKE BSID-BELNR,        " added On 17.04.2007
        BLDAT LIKE BSID-BLDAT,
        BUDAT LIKE BSID-BUDAT,
        BLART LIKE BSID-BLART,
        NAME  LIKE KNA1-NAME1,                           "Name 1
        MATNR LIKE VBRP-MATNR,    "Material Number
        ARKTX LIKE VBRP-ARKTX,          "Material description
        FKIMG LIKE VBRP-FKIMG,          "Quantity mentioned in the excise invoice
        VBELN LIKE BSID-VBELN,          "Billing Document
        BUKRS LIKE BSID-BUKRS,
       NAME1 LIKE LFA1-NAME1,
        KUNNR LIKE BSID-KUNNR,
        WRBTR LIKE BSID-WRBTR,
        DMBTR LIKE BSID-DMBTR,
        ZUONR LIKE BSID-ZUONR,
       XBLNR LIKE BSID-XBLNR,
       MENGE LIKE VBRP-MENGE,
       LIFNR  LIKE BSIK-LIFNR,        "VENDOR CODE
        EXNUM LIKE J_1IEXCHDR-EXNUM,
        BELNR1 LIKE BSIK-BELNR,        " added On 17.04.2007
        BLDAT1 LIKE BSIK-BLDAT,
        BUDAT1 LIKE BSIK-BUDAT,
       BLART LIKE BSID-BLART,
       NAME  LIKE KNA1-NAME1,                           "Name 1
       MATNR LIKE VBRP-MATNR,    "Material Number
       ARKTX LIKE VBRP-ARKTX,          "Material description
       FKIMG1 LIKE VBRP-FKIMG,          "Quantity mentioned in the excise invoice
       VBELN LIKE BSID-VBELN,          "Billing Document
       BUKRS LIKE BSID-BUKRS,
        NAME1 LIKE LFA1-NAME1,
       KUNNR LIKE BSID-KUNNR,
       WRBTR LIKE BSID-WRBTR,
        DMBTR1 LIKE BSIK-DMBTR,
       ZUONR LIKE BSID-ZUONR,
        XBLNR LIKE BSIK-XBLNR,
       MENGE LIKE VBRP-MENGE,
        LIFNR  LIKE BSIK-LIFNR,
        END OF IT_OUT.
*DATA: IT_OUT1 LIKE IT_OUT OCCURS 0 WITH HEADER LINE.
*ALV VARIABLES AND INTERNAL TABLES
TYPE-POOLS: SLIS.
DATA: IS_LAYOUT     TYPE SLIS_LAYOUT_ALV,
      IT_FIELDCAT   TYPE SLIS_T_FIELDCAT_ALV,
      IT_LISTHEADER TYPE SLIS_T_LISTHEADER,
      IT_EVENTS     TYPE SLIS_T_EVENT,
      IT_PRINT      TYPE SLIS_PRINT_ALV OCCURS 1 WITH HEADER LINE.
*SELECTION SCREEN DEFINITIONS
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : SO_KUNNR FOR   BSID-KUNNR,
                 SO_LIFNR FOR   BSIK-LIFNR,
                 SO_BLART FOR   BSID-BLART.
PARAMETER      : P_BUKRS LIKE   BSID-BUKRS OBLIGATORY,
                 P_GJAHR LIKE   BSID-GJAHR OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B.
*START-OF-SELECTION
START-OF-SELECTION.
  PERFORM GET_DATA.
  PERFORM DISPLAY_DATA.
*&      Form  GET_DATA
      text
-->  p1        text
<--  p2        text
form GET_DATA .
SELECT * FROM BSID
INTO TABLE IT_BSID
WHERE KUNNR IN SO_KUNNR AND
BUKRS = P_BUKRS AND
GJAHR = P_GJAHR.
LOOP AT IT_BSID.
IT_OUT-BELNR = IT_BSID-BELNR.
IT_OUT-BUKRS = IT_BSID-BUKRS.
IT_OUT-KUNNR = IT_BSID-KUNNR.
IT_OUT-ZUONR = IT_BSID-ZUONR.
IT_OUT-DMBTR = IT_BSID-DMBTR.
IT_OUT-VBELN = IT_BSID-VBELN.
IT_OUT-XBLNR = IT_BSID-XBLNR.
IT_OUT-BLART = IT_BSID-BLART.
IT_OUT-BUDAT = IT_BSID-BUDAT.
IT_OUT-BLDAT = IT_BSID-BLDAT.
APPEND IT_OUT.
ENDLOOP.
*SELECT * FROM J_1IEXCHDR
*INTO IT_J_1IEXCHDR
*WHERE RDOC = IT_OUT-VBELN.
*LOOP AT IT_J_1IEXCHDR.
IT_OUT-EXNUM = IT_J_1IEXCHDR-EXNUM.
**ENDLOOP.
*SELECT * FROM BSIK
*INTO TABLE IT_BSIK
*WHERE XBLNR = IT_OUT-EXNUM AND
*LIFNR IN SO_LIFNR AND
*BUKRS = P_BUKRS AND
*GJAHR = P_GJAHR.
*LOOP AT IT_BSIK.
*IT_OUT-BELNR1 = IT_BSIK-BELNR.
**IT_OUT-BUKRS = IT_BSIK-BUKRS.
*IT_OUT-LIFNR = IT_BSIK-LIFNR.
**IT_OUT-ZUONR = IT_BSIK-ZUONR.
*IT_OUT-DMBTR1 = IT_BSIK-DMBTR.
*IT_OUT-XBLNR = IT_BSIK-XBLNR.
**IT_OUT-BLART = IT_BSIK-BLART.
*IT_OUT-BUDAT1 = IT_BSIK-BUDAT.
*IT_OUT-BLDAT1 = IT_BSIK-BLDAT.
*APPEND IT_OUT.
*ENDLOOP.
*ENDLOOP.
*ENDSELECT.
*SORT IT_OUT BY KUNNR.
LOOP AT IT_OUT.
SELECT SINGLE EXNUM FROM J_1IEXCHDR
INTO IT_OUT-EXNUM
WHERE RDOC = IT_OUT-VBELN.
SELECT BELNR LIFNR DMBTR XBLNR BUDAT BLDAT
FROM BSIK INTO (IT_OUT-BELNR1,IT_OUT-LIFNR,IT_OUT-DMBTR1,IT_OUT-XBLNR,IT_OUT-BUDAT1,IT_OUT-BLDAT1)
WHERE XBLNR = IT_OUT-EXNUM.
ENDSELECT.
SELECT SINGLE NAME1            "NAME OF CUSTOMER
           FROM KNA1
           INTO IT_OUT-NAME
           WHERE KUNNR = IT_OUT-KUNNR.
SELECT SINGLE NAME1            "NAME OF VENDOR
               FROM LFA1
               INTO IT_OUT-NAME1
               WHERE LIFNR = IT_OUT-LIFNR.
SELECT MATNR ARKTX FKIMG
           FROM VBRP
           INTO (IT_OUT-MATNR,IT_OUT-ARKTX,IT_OUT-FKIMG)
           WHERE VBELN = IT_OUT-VBELN AND
                 WERKS = P_BUKRS.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
  EXPORTING
    input         = IT_OUT-MATNR
IMPORTING
   OUTPUT        = IT_OUT-MATNR.
MODIFY IT_OUT.
CLEAR IT_OUT.
ENDSELECT.
ENDLOOP.
endform.                    " GET_DATA
*&      Form  DISPLAY_DATA
      text
-->  p1        text
<--  p2        text
form DISPLAY_DATA .
  PERFORM FILL_LAYOUT_STRUCTURE.
  PERFORM ALV_HEADER USING IT_LISTHEADER.
  PERFORM FILL_FIELDCAT USING :
      'BLDAT'    'DOC Date'             10  'IT_OUT'  SPACE SPACE,
      'BUDAT'    'Post.Date'            10  'IT_OUT'  SPACE SPACE,
      'KUNNR'    'Customer Code'        10  'IT_OUT'  SPACE SPACE,
      'NAME'     'Customer Name'        35  'IT_OUT'  SPACE SPACE,
      'LIFNR'    'VENDOR CODE'          10  'IT_OUT'  SPACE SPACE,
      'NAME1'    'VENDOR DESC'          35  'IT_OUT'  SPACE SPACE,
      'BLART'    'Doc. Type'             2  'IT_OUT'  SPACE SPACE,
      'VBELN'    'BILLING DOC NO.'      10  'IT_OUT'  SPACE SPACE,
      'BELNR'    'Account Doc. No.'     10  'IT_OUT'  SPACE SPACE,
      'DMBTR'    'AMOUNT IN LOCAL'      13  'IT_OUT'  SPACE SPACE,
      'MATNR'    'Material Code'        10  'IT_OUT'  SPACE SPACE,
      'ARKTX'    'Material DESC'        35  'IT_OUT'  SPACE SPACE,
      'FKIMG'    'QTY'                  12  'IT_OUT'  SPACE SPACE,
      'ZUONR'    'ASSIGNNMENT'          18  'IT_OUT'  SPACE SPACE,
      'EXNUM'    'Excise inv no.'       13  'IT_OUT'  SPACE SPACE,
      'BELNR1'   'Account Doc. No.'     10  'IT_OUT'  SPACE SPACE,
      'BLDAT1'   'DOC Date'             10  'IT_OUT'  SPACE SPACE,
      'BUDAT1'   'Post.Date'            10  'IT_OUT'  SPACE SPACE,
      'DMBTR1'   'AMOUNT IN LOCAL'      13  'IT_OUT'  SPACE SPACE,
      'XBLNR'    'REFERENCE DOC'        10  'IT_OUT'  SPACE SPACE.
PERFORM ALV_EVENTS USING IT_EVENTS.
PERFORM ALV_PRINT.
  PERFORM ALV_DISPLAY.
endform.                    " DISPLAY_DATA
*&      Form  FILL_LAYOUT_STRUCTURE
      text
-->  p1        text
<--  p2        text
form FILL_LAYOUT_STRUCTURE .
DATA: WA_EVENT       TYPE SLIS_ALV_EVENT,
        WA_LISTHEADER  TYPE SLIS_T_LISTHEADER.
  CLEAR IS_LAYOUT.
  IS_LAYOUT-ZEBRA = 'X'.
     is_layout-F2CODE = '&ETA'.
     is_layout-detail_popup = 'X'.
  IS_LAYOUT-INFO_FIELDNAME = 'COL_LINE'.
endform.                    " FILL_LAYOUT_STRUCTURE
*&      Form  FILL_FIELDCAT
      text
     -->P_0606   text
     -->P_0607   text
     -->P_10     text
     -->P_0609   text
     -->P_SPACE  text
     -->P_SPACE  text
form FILL_FIELDCAT  using    F D O T TO P.
  DATA WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
  STATICS POS LIKE SY-INDEX VALUE 1.
  POS = POS + 1.
  CLEAR WA_FIELDCAT.
  MOVE : 1     TO   WA_FIELDCAT-ROW_POS,
         POS   TO   WA_FIELDCAT-COL_POS,
         F     TO   WA_FIELDCAT-FIELDNAME,
         D     TO   WA_FIELDCAT-SELTEXT_L,
         O     TO   WA_FIELDCAT-OUTPUTLEN,
         T     TO   WA_FIELDCAT-TABNAME,
         TO    TO   WA_FIELDCAT-DO_SUM,
         P     TO   WA_FIELDCAT-FIX_COLUMN.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
endform.                    " FILL_FIELDCAT
FORM ALV_EVENTS USING EVENTS TYPE SLIS_T_EVENT.
  DATA : WA_EVENTS TYPE SLIS_ALV_EVENT.
  CLEAR WA_EVENTS.
  WA_EVENTS-NAME = 'TOP_OF_PAGE'(001).
  WA_EVENTS-FORM = 'TOP_OF_PAGE'.
  APPEND WA_EVENTS TO IT_EVENTS.
ENDFORM.                    "alv_events
*&      Form  ALV_DISPLAY
      text
-->  p1        text
<--  p2        text
form ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
  I_INTERFACE_CHECK                 = ' '
  I_BYPASSING_BUFFER                = ' '
  I_BUFFER_ACTIVE                   = ' '
     I_CALLBACK_PROGRAM                = SY-REPID
  I_CALLBACK_PF_STATUS_SET          = ' '
     I_CALLBACK_USER_COMMAND           = 'CALL_TCODE'
     I_CALLBACK_TOP_OF_PAGE            = '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                         = IS_LAYOUT
     IT_FIELDCAT                       = IT_FIELDCAT
  IT_EXCLUDING                      =
  IT_SPECIAL_GROUPS                 =
   IT_SORT                           = i_sort[]
  IT_FILTER                         =
  IS_SEL_HIDE                       =
     I_DEFAULT                         = 'X'
     I_SAVE                            = 'A'
  IS_VARIANT                        =
     IT_EVENTS                         = IT_EVENTS
  IT_EVENT_EXIT                     =
     IS_PRINT                          = IT_PRINT
  IS_REPREP_ID                      =
  I_SCREEN_START_COLUMN             = 0
  I_SCREEN_START_LINE               = 0
  I_SCREEN_END_COLUMN               = 0
  I_SCREEN_END_LINE                 = 0
  I_HTML_HEIGHT_TOP                 = 0
  I_HTML_HEIGHT_END                 = 0
  IT_ALV_GRAPHICS                   =
  IT_HYPERLINK                      =
  IT_ADD_FIELDCAT                   =
  IT_EXCEPT_QINFO                   =
  IR_SALV_FULLSCREEN_ADAPTER        =
IMPORTING
  E_EXIT_CAUSED_BY_CALLER           =
  ES_EXIT_CAUSED_BY_USER            =
   TABLES
      T_OUTTAB                          = IT_OUT
   EXCEPTIONS
     PROGRAM_ERROR                     = 1
     OTHERS                            = 2
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
endform.                    " ALV_DISPLAY
*FORM FOR TOP OF PAGE
FORM TOP_OF_PAGE.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      IT_LIST_COMMENTARY = IT_LISTHEADER.
ENDFORM.                    "top_of_page
*&      Form  alv_header
FORM alv_header  USING    P_IT_LISTHEADER.
  data : wa_listheader  type slis_listheader.
  data : v_date1(10).
  data : v_date2(10).
  data : v_kunnr1 LIKE bsid-kunnr.
  data : v_kunnr2 LIKE bsid-kunnr.
  data : v_name1 like t001w-name1.
  clear wa_listheader.
  wa_listheader-typ = 'H'.
  move  'DETAILED CUSTOMER VENDOR DETAILS'
  to  wa_listheader-info.
  append wa_listheader to it_listheader.
select single name1
     from t001w
     into v_name1
     where werks = p_bukrs.
clear wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Plant'.
move v_name1
to wa_listheader-info.
append wa_listheader to it_listheader.
write so_budat-low  to v_date1  dd/mm/yyyy no-gap.
write so_budat-high to v_date2  dd/mm/yyyy no-gap.
if so_budat-low is not initial and so_budat-high is not initial.
   clear wa_listheader.
   wa_listheader-typ = 'S'.
   wa_listheader-key = 'Date '.
   concatenate v_date1 ' To ' v_date2 into
                       wa_listheader-info separated by space.
   wa_listheader-info = wa_listheader-info.
   append wa_listheader to it_listheader.
elseif  so_budat-low is initial and so_budat-high is initial.
   clear wa_listheader.
   wa_listheader-typ = 'S'.
   wa_listheader-key = 'Date '.
   wa_listheader-info = '*'.
   append wa_listheader to it_listheader.
elseif so_budat-high is initial.
   clear wa_listheader.
   wa_listheader-typ = 'S'.
   wa_listheader-key = 'Date '.
   wa_listheader-info = v_date1.
   append wa_listheader to it_listheader.
endif.
v_kunnr1 = so_kunnr-low.
v_kunnr2 = so_kunnr-high.
if so_kunnr-low is not initial and so_kunnr-high is not initial.
   clear wa_listheader.
   wa_listheader-typ = 'S'.
   wa_listheader-key = 'Customer '.
   concatenate v_kunnr1 ' To ' v_kunnr2 into
                       wa_listheader-info separated by space.
   wa_listheader-info = wa_listheader-info.
   append wa_listheader to it_listheader.
elseif  so_kunnr-low is initial and so_kunnr-high is initial.
   clear wa_listheader.
   wa_listheader-typ = 'S'.
   wa_listheader-key = 'Customer '.
   wa_listheader-info = '*'.
   append wa_listheader to it_listheader.
elseif so_kunnr-high is initial.
   clear wa_listheader.
   wa_listheader-typ = 'S'.
   wa_listheader-key = 'Customer '.
   wa_listheader-info = v_kunnr1.
   append wa_listheader to it_listheader.
endif.
ENDFORM.                    " alv_header.
waiting for ur reply.
Thanx
Suchita

Similar Messages

  • Few queries about foreign revaluation for vendor/customer open items

    I am trying the transaction F.05 for the first time for vendor & customer open items in foreign currency. I have a few queries:-
    1. The ouput contains 2 exchange rates. One is picked from the transaction header. My query is from where is the other rate being picked up. In my current system, I could make out that exch rate in transaction header is being picked automatically from table OB08....however I am unable to deduce the source of the 2nd exch rate.
    2. What is the significance of "balance sheet preparation valuation". Earlier in test runs, only "new difference" was getting populated. However the user wanted to see "old diff" also. So while doing some trial run in test client, I checked the "bal sheet prep valu" and posted.....after this run, I am getting values in "old diffe" and "new diff" also. And the posted amount is the difference of the two. What is the significance and ideal way?
    3. Should the entry be reversed if I am revaluating at year end? Why I am asking is because in some threads I read that revaluation at year is not to be reversed....
    Thanks,
    SM

    1. To find out difference latest date(Key Date for OI Overview) will be taken by comparing with document posted dated. Based on that system shows diffrences
    2.   The items are valued using the exchange rate valid at the key date. The
          difference determined in local currency is output and posted. The
          valuation can also be done for parallel local currencies and according to
          different valuation approaches (HGB, GAAP).
          The result of the valuation is required for the creation of the financial
          statements. You should therefore carry out the valuation before the
          grouping of receivables and payables with program SAPF101. The valuation
          difference is then noted in the document. Use the valuation areas to
          calculate a different valuation method, or to save the result for further
          processing activities.
    3.   we need to reverse entries .

  • Dual Control for Vendor/Customer Master Data

    We can set Dual Control for Vendor/Customer Master Data. I have set it. According to the cycle, I have customized sensitive field, and make changes in Vendor/Customer A/c. Here the changes will be confirmed by other user who is authorised to confirm the changes. In this scenario, I would like to know, can we avoid this confirmation once we have actived? If, no than how could we confirm the changes and where can we set authorisation?

    Dear,
    No, You cannot avoid the dual check if You activate it. Another user by FK08 has to confirm the changes.
    Then You can delete the field for the dual control into the table T055F and no check will be done in the future.
    I hope this helps.
    Mauri

  • Wht r the standard tables for vendor customer and sales order report/

    Hi wht r the standard tables for vendor and customer reports and is how in normal we cannot use them for vendor reporting and etc ?

    Hi
    Customer is related to Sales Module
    So for a customer we fetch the reports of Sales orders , Deliveries and Billing doc's
    CUstomer and Vendor related tables with important fields:
    KNA1: Customer Master-General(KUNNR,NAME1,LAND1)
    KNB1: Customer Master(Company Code)(KUNNR,BUKRS,PERNR)
    KNC1: Customer Master Data (Transaction Figures)(KUNNR,BUKRS,GJAHR)
    KNVK: Customer Master Contact Partner(PARNR,KUNNR,NAME1)
    KNVV: Customer Master sales data(KUNNR,VKORG,VTWEG,KDGRP)
    KNBK: Customer Bank Details(KUNNR,BANKS,BANKL,BANKN)
    KNVH: Customer Hierarchy (HITYP,KUNNR,VKORG,VTWEG,SPART)
    KNVP: Customer Master Partner Functions(KUNNR,PARVW,KUNN2)
    KNVS: Customer Shipment data(KUNNR,VSTEL,TRANS)
    KNVI: Customer Tax data(KUNNR,ALAND,TATYP)
    LFA1: Vendor Master-General (LIFNR,NAME1,ORT01)
    LFB1: Vendor Master(Company Code)(LIFNR,BUKRS,PERNR)
    LFC1: Vendor Master (Transaction Figures)(LIFNR,BUKRS,GJAHR)
    Sales related Tables for a customer
    VBAK: Sales Document(Header Data) (VBELN, KUNNR)
    VBAP: Sales Document(Item Data) (VBELN,POSNR,MATNR,ARKTX,CHARG)
          Enquiry, Quotation, Sales Order are differentiated based on Doc.
          Type(VBTYP field) in VBAK,VBAP Tables( for Enquiry VBTYP = A,
          for Quotation 'B' & for Order it is 'C'.)
    LIKP: Delivery Table (Header Data)(VBELN,LFART,KUNNR,WADAT,INCO1)
    LIPS: Delivery Table (Item Data)(VBELN,POSNR,WERKS,LGORT,MATNR,VGBEL)
          (LIPS-VGBEL = VBAK-VBELN, LIPS-VGPOS = VBAP-POSNR)
    VTTK: Shipment Table (Header Data)(TKNUM)
    VTTP: Shipment Table (Item Data)( TKNUM,TPNUM,VBELN)
          (VTTP-VBELN = LIKP-VBELN)
    VTFA: Shipping Document Flow(TKNUM,VBELV,VBELN)
    VTPA: Shipping Partners data(VBELN,PARVW,KUNNR,PERNR)
    VTTS: Stages in Shipment(TKNUM,TSNUM,TSTYP)
    VTSP: Transport Stage/Shipment Item Allocation(TKNUM,TSNUM,TPNUM)
    VEKP: Handling Unit: Header(Packing)(VENUM,VSTEL)
    VEPO: Handling Unit: Item (Packing)(VENUM,VEPOS,VBELN)
    VBRK: Billing Table(Header Data)(VBELN,FKART,BELNR)
    VBRP: Billing Table(Item Data)(VBELN,POSNR,FKIMG,NETWR,VGBEL,VGPOS)
          (VBRP-AUBEL = VBAK-VBELN, VBRP-VGBEL = LIKP-VBELN)
          Apart from these tables there are lot of other tables which starts with
          ‘V’, but we use the following tables frequently.
    VBUK: All Sales Documents status & Admn. Data(Header)(VBELN,VBTYP)
          VBTYP= ‘C’(Sales Order) VBTYP=’J’(Delivery) VBTYP=’M’(Invoice) 
    VBUP: Sales Documents status & Admn. Data(Item)(VBELN,POSNR)
    VBEP: Sales Doc. Schedule Lines Data(VBELN,POSNR,EDATU,WMENG)
    VBKD: To get sales related Business data like Payment terms etc.(VBELN,ZTERM)
    VBFA: sales document flow data(VBELV,VBELN,POSNV,VBTYP)
    VBPA: Partner functions Data(VBELN,PARVW,KUNNR,LIFNR)
    VEDA: Contract Data(VBELN,VPOSN)
    VEDAPO: Contract Data(VBELN,VPOSN)
    Vendor related MM tables
    EBAN-- Pur.Reqn. Data (BANFN,BNFPO,BADAT,MATNR)
    EBKN-- Purchase Requisition Account Assignment(BANFN,BNFPO,VBELN)
    EINA—- Purchase Info.Record (General Data)(INFNR,MATNR,LIFNR)
    EINE-- Purchase Info.Record (Pur.Orgn Data )(INFNR,EKORG)
    ELBK-- Vendor Evaluation Header Data(LIFNR,EKORG,KLASS)
    EKKO-- Purchase Order Data (Header)(EBELN,BSTYP,BSART)
    EKPO-- Purchase Order Data (Item)(EBELN,EBELP,MATNR)
           RFQ and PO are differentiated by Doc Type(BSTYP)in EKKO table.
           For RFQ it is ‘A’ and for PO it is ‘F’.
    MKPF-- GRN Data (Header) (EBELN,BLDAT,BUDAT,XBLNR,BKTXT)
    MSEG-- GRN Data (Item)(MBLNR,BWART,LIFNR,MATNR,EBELN)
           Apart from this there are lot of tables which begin with 'M'& 'E', but we
           use the following very often.
    EKBE--PO History Data (EBELN,EBELP,BELNR,BLDAT,MATNR,VGABE)
    EKBZ--PO History with delivery Costs(EBELN,BELNR,LIFNR,XBLNR)
    EKET--Schedule lines data of a PO (EBELN,EINDT,SLFDT)
    EKES--Vendor Confirmations Data(EBELN,EBTYP,EINDT,XBLNR)
    Reward points if useful
    Regards
    Anji

  • Iview for Vendors - bank details

    Hello,
    we have implemented the repository for vendors and the standard iview in portal. But when we try to update the values for bank details there are no way to do it in portal, it happens same with email,fax.. tables so i don´t understand how to make these updates as there is any active button to insert records in those tables.
    Regards,
    Antonio

    Hi Antonio,
    Even we were facing the same problem. Seems SAP hasn't provided this facility so far. So, we need to do custom development with MDM Java APIs.
    Thanks and Regards,
    Mausam

  • SQVI - Report for vendor bank details.

    Hi all,
    I am using SQVI -- Quick viewer reporting tool to get the vendor bank details. for that i am using tables
    LFA1
    LFBK
    BNKA
    TIBAN
    I joined the above mentioned tables by using table joins. I cross checked the vendors in Tcode: FK03.
    But i found that the vendor is not having IBAN number in the transaction, where as list is showing the IBAN number.
    So please clarify me why it is happending.
    Regards,
    Chinnna

    Hi shiva,
    I tried with the join conditions provided by you. But the problem is ...
    If a vendor is having 2 IBAN numbers, then the first IBAN number is fetching not the two iban numbers.
    Why it is not taking the first entry in FK03 tcode.
    please give me some help.
    Regards,
    chinna

  • How to make the cost center or WBS field optional for Vendor/customer line?

    Dear experts:
    Does anyone has the experience of releasing WBS or cost center fields to be optional for the customer or vendor line item?
    I've tested in system, neither the field status control in GL account master data nor the FSG in posting key worked, I can't let the WBS field to display in the screen and ready for input.
    So my conclusion is that the FSG control in  not completely effective for customer/vendor line, it there any other method to let WBS to be optional in custer/vendor line items?
    Our purpose for changing that is that we're using joint venture accounting, we need to let users to input a cost object for system to derive joint venture information. please do not suggest deriving JV information using other methods, because we're dealing with a special case, i.g.  in a cross-company document, only a customer/vendor line in our company, so it's impossible to split JV information from offset lines, anyway, please help me out directly with my issue.

    Hi, Lu:
    If I understand your question correctly, you want to modify the FSG of recociliation account of Vendor/Customer to make sure Cost Center/WBS field display in transaction F-22/F-43 for example, right?
    I am not sure whether it is possible, I also tried in ECC6.0 but failed to show these two fields. And I think that doesn't make sense to assign CO object to AP/AR reconciliation account, but assign it to Revenue/Expense account in following line items.
    And You can use New General Ledger functionality Document Splitting to derive corresponding CO object information to Reconciliation Account line item, but it is enabled only in General Ledger level, not in subledger level.
    If you find any other meaningful solution, please also share with us.
    Thanks & BR, Lawrence

  • Who knows a Std. global data type for vendor bank details (ESR modelling) ?

    Hi,
    we are going to design some simple partner in ESR to be implemented in different backends using SAp global data types.
    What i cannot find anywhere in there is a structure containing the standard fields of customer / vendor bank details. As this is a baisc to partner master - i hope anyone of you has done this and knows it.
    The funny thing thing is, there exists a type called "BusinessPartnerBankDetailsID",
    which is only used  as reference in payment transactions but nowhere in bank details
    Does anybody know a GDT to maintain BusinessPartnerBankDetails?
    Thanks in advance & br,

    No solution -closed

  • Change pointers triggering problem for vendor bank details

    Hi,
    I have configured change pointers for vendor master  data. IF I change already existing bank account then that account is coming with deletion indicator and it is picking all other bank details with resend indicator. But if only new account added then idoc is not creating. At the same time entry in table BDCPV also not creating.
    Is there any solution to create idoc if new accounts created.
    Note: I am not changing any other information except bank details.
    Thanks in advance.
    Rgds,
    Sudhakar

    hi ,
    How are you changing the information either via direct table update or Bdc, change pointers will be created only if you do transcation it means Bdc
    i guess.
    regards
    sarath

  • Populating Profit Centre Field while doing Transaction for Vendor/Customer

    Dear Experts,
    I have cheked in FSG of GL Code of Vendors/Customers where "Profit Centre " is a optional field.
    I have cheked in OB41 also for posting key relating to vendors/customers "Profit Centre" field is set as optional field.
    We need to make entry in the Profit Centre Field for both Vendors and Customers whicle doing manual posting.
    How can we bring that field which is not populated while doing transaction with posting keys of vedors and customers.
    Regards,
    Alok

    Dear Sayeed,
    I am agree with u, but since in SAP Vendor /Customer Line Item takes automatically profit centre from the other line items.
    Here is an example:-
    We have different profit centre for plant(104001) and coprorate office(106001)
    Customer billing is done at plant then the entry will be:-
    Customer A/c Debit    (by default it will take 104001 profit centre)
    Sales A/c Credit  with Profit Centre 104001
    In Corporate Office We Receive the sales proceeds:-
    In Coming Bank a/c Corporate   Debit  with Profit Centre 106001
    Customer A/c Credit (It will take by default profit centre 106001)
    By this If we genrate Profit Centre Wise Trial Balance then all Customers Debit will lying with Plant Trial
    and Customer Credit Balance will lying in Corporate Treial Balance  giving a mis information to the auditors.
    For solving this we need to populate the Profit Centre field in Customer line item so that while doing the received entry we can selct the Plant Profit Centre (104001) in Customer line item so that the Customer balance become Nil in Plant Trial.
    Hopw you understand our requirement.
    Regards,
    Alok

  • Profit Center for Vendor/Customer line item in F-02

    hi all,
    We have implemented SAP ECC 6.
    At the time of vendor line item posting, there is no input field for profit center.
    Can anyone please tell the way out for Profit Center field pop up in case of t-code like f-02 for vendors & customers
    Abhishek

    Please note the following:
    - On FBL5N and alike customer/vendor line item reports you won't find
    the field profit center filled; hence you can't directly input it during document entry (as pre-mentioned)
    and the profit center for customer/vendor gets inherited (as of document splitting functionality) from the document other line item(s) (according to the defined document splitting rules...)
    - Yet you can use the below reports (with New G/L.) to get the customer/vendor line items wise reporting over a profit center (i.e. unlike FBL5N & showing the inherited customer/vendor profit center in the G/L. view)
    S_AC0_52000887 - Line Items->Open Items->Receivables: Profit Center
    S_AC0_52000888- Line Items->Open Items->Payables: Profit Center
    In both reports you can use:
    "Custom Selections" -Dynamic Selections Icon- enabling you to filter the output according to
    a. Customer line items specific data entered within the posted document(s)
    b. General ledger items of the G/L. view of the posted document(s)
    & the "Output type" includes like most of the New G/L. Reports:
    - Graphical report output
    - Classical drill-down report
    - Object list (more than one lead column)

  • Cutom T-Code for seding customer details thru IDoc Debmas

    Hi Experts,
    I have a requirment where in.. I need to send customer details thru IDoc from a custom screen which has cutomer text box and a submit button. After entering cutomer and clicking on submit debmas06 Idoc has to be triggered.
    I am not an ABAP expert... please help me with process on devloping the above reqirment.
    This is a critical requirment please help ASAP.
    Thanks,
    Suma

    Hi,
    u have to use standalone program..iam giving one sample code..aong with u have define the RFC (SM59,WE21(Create port),WE20(create partner profile,BD64 distribute model view)...u have to do..
    when u press on submit button,,,
    *& Report ZZ_Program_To_Create_Idoc
    report zz_program_to_create_idoc .
    tables: ekko,ekpo.
    selection-screen skip 3.
    selection-screen begin of block b1 with frame title titl.
    selection-screen skip.
    select-options s_ebeln for ekko-ebeln.
    selection-screen skip.
    selection-screen end of block b1.
    data: header_segment_name like edidd-segnam value 'Z1EKKO',
    item_segment_name like edidd-segnam value 'Z1EKPO',
    idoc_name like edidc-idoctp value 'Z19838IDOC1'.
    data: header_segment_data like z1ekko,
    item_segment_data like z1ekpo.
    data: control_record like edidc.
    data: messagetyp like edmsg-msgtyp value 'ZZ9838MESG1'.
    data: i_communication like edidc occurs 0 with header line,
    i_data like edidd occurs 0 with header line.
    data: begin of i_ekko occurs 0,
    ebeln like ekko-ebeln,
    aedat like ekko-aedat,
    bukrs like ekko-bukrs,
    bsart like ekko-bsart,
    lifnr like ekko-lifnr,
    end of i_ekko.
    data: begin of i_ekpo occurs 0,
    ebelp like ekpo-ebelp,
    matnr like ekpo-matnr,
    menge like ekpo-menge,
    meins like ekpo-meins,
    netpr like ekpo-netpr,
    end of i_ekpo.
    start-of-selection.
    select ebeln aedat bukrs bsart lifnr from ekko
    into table i_ekko where ebeln in s_ebeln.
    select ebelp
    matnr
    menge
    meins
    netpr
    from ekpo
    into table i_ekpo
    where ebeln in s_ebeln.
    control_record-mestyp = messagetyp.
    control_record-rcvprt = 'LS'.
    control_record-idoctp = idoc_name.
    control_record-rcvprn = '0MART800'.
    loop at i_ekko.
    header_segment_data-ebeln = i_ekko-ebeln.
    header_segment_data-aedat = i_ekko-aedat.
    header_segment_data-bukrs = i_ekko-bukrs.
    header_segment_data-bsart = i_ekko-bsart.
    header_segment_data-lifnr = i_ekko-lifnr.
    i_data-segnam = header_segment_name.
    i_data-sdata = header_segment_data.
    append i_data.
    select ebelp
    matnr
    menge
    meins
    netpr
    from ekpo
    into table i_ekpo
    where ebeln = i_ekko-ebeln.
    loop at i_ekpo.
    item_segment_data-ebelp = i_ekpo-ebelp.
    item_segment_data-matnr = i_ekpo-matnr.
    item_segment_data-menge = i_ekpo-menge.
    item_segment_data-meins = i_ekpo-meins.
    item_segment_data-netpr = i_ekpo-netpr.
    i_data-segnam = item_segment_name.
    i_data-sdata = item_segment_data.
    append i_data.
    endloop.
    clear i_ekpo.
    refresh i_ekpo.
    endloop.
    call function 'MASTER_IDOC_DISTRIBUTE'
    exporting
    master_idoc_control = control_record
    OBJ_TYPE = ''
    CHNUM = ''
    tables
    communication_idoc_control = i_communication
    master_idoc_data = i_data
    exceptions
    error_in_idoc_control = 1
    error_writing_idoc_status = 2
    error_in_idoc_data = 3
    sending_logical_system_unknown = 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.
    else.
    loop at i_communication.
    write: 'IDOC GENERATED', i_communication-docnum.
    endloop.
    commit work.
    endif.
    initialization.
    titl = 'ENTER THE PURCHASE ORDER NUMBER'.
    Regards,
    Nagaraj

  • Printing balance confirmation for vendor & customer

    Hi Sapient
    I had defined a vendor & linked a customer in the vendor master & vice versa.
    I want to print the balance confirmation form for the vendor.
    My requirement is as follows
    1. When i print the confirmation form for the particular vendor & if had linked a customer to the vendor, then I wnat the open line item in the cusotmer account shoudl be included in my vendor balance confirmation form.
    Is the above said scenario is possible through SAP standard. If not can you provide me with alternate solution.
    Regards
    R.Karthigayan

    I presume you are using program SAPF130K  or F.18 for vendor balance confirmation. You cannot run statement of vendor balance including customer if they are vendor and customer.

  • BUSINESS RULES FOR Vendor, Customer & PRODUCT

    Hi,
    Can any one help me to provide Business Rules(Validation Rules) of Vendor, Customer & Product domain to be considered in integrating with other technologies.
    Thanks & Best Regards,
    Giri

    Hi Joseph,
    First tell me how you want to maintain Inventory size wise?? If it is your A is Length, B is Width and C is your Height and you are not maintaining size wise stock then use Length,Width and Height which is in Item master here you can set fix values and activate same columns in document and you can change it in document. But in this case you cannot maintain size wise stock
    If you are maintaining stock size wise then you have to create new item code every time.
    You cannot use BP catalog number for this.
    Thanks
    Sachin

  • SAP standard FM or BAPI for getting customer details from condition record

    Can someone suggest some SAP standard BAPI or FM with the help of which we can get the customer details of all it's pricing conditions maintained in condition tables provided we have the condition record number with us.

    Hi,
    look at the below BAPI's
    BAPI_CUSTOMER_DISPLAY
    BAPI_CUSTOMER_GETDETAIL2
    Regards
    Sudheer

Maybe you are looking for

  • PSE 8 printing problem with HP 8750 Printer

    When trying to print oversized (10 x 11) images in PSE 8 with my HP 8750 printer the printed image looks like a postage stamp.  I've done everything the same as I did with PSE7 and the same printer with no problem.  What could the solution to this? 

  • Anyone have list of issues fixed in 8.01?  thanx...

    Hi all (happy holidays) Anyone have list of issues fixed in 8.01? thanx... ps: I'm on a G5 and was hoping that 8.01 runs noticeably better now.... SvK Message was edited by: S v K

  • Want to access RFC in new server instead of old server

    we got a request to move RFC function module from  P12 to other system, now the RFC is moved and need to understand what should be done to access  new system RFC instead of old RFC. Thanks & Regards Ramkumar Amgoth

  • Are there compatibility problems with PS CC and Windows 8?

    Brand new computer - just installed PS CC and Bridge - opened a project with many layers - highlighted one layer - worked on it - went to work on another layer, and the first one remained highlighted??  Now there are two layers highlighted - waited a

  • Expanding the "open in" list on ipad is it possible?

    This is a big problem in my workflow and I think it has probably affected quite a few peoples experience with the ipad and possibly other IOS devices. When a file is open and you need to transfer it to another app using the "open in" function pulls u