From which tables i would find the delivery and billing document field..??
I need to create an ALV report which displays the following details in the output.
Order No Item No Material Order Qty Item Category Plant Delivery Billing Document Sales Org Dist Channel Division Created By Created On Changed On
For(Order No Item No Material Order Qty Item Category Plant) i took the fields from vbap and
for(Sales Org Dist Channel Division Created By Created On Changed On)i took the fields from vbak..
From which tables i would find the delivery and billing document field related to sales document.??
need help...
Moderator message : Requirements dumping not allowed, thread locked.
Edited by: Vinod Kumar on Mar 6, 2012 2:53 PM
i am new to abap...so i dont have idea about sd table relationship.
so please reply how to add delivery and billing doc in my coding below..
*& Report ZINAA_SD
REPORT zinaa_sd.
TABLES: vbap, vbak, vbfa.
TYPE-POOLS: slis.
CONSTANTS: c_x TYPE char1 VALUE 'X'.
TYPES:
BEGIN OF st_vbap,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
pstyv TYPE vbap-pstyv,
kwmeng TYPE vbap-kwmeng,
werks TYPE vbap-werks,
END OF st_vbap,
BEGIN OF st_vbak,
vbeln TYPE vbak-vbeln,
erdat TYPE vbak-erdat,
ernam TYPE vbak-ernam,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
aedat TYPE vbak-aedat,
END OF st_vbak,
BEGIN OF st_final,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
pstyv TYPE vbap-pstyv,
kwmeng TYPE vbap-kwmeng,
werks TYPE vbap-werks,
erdat TYPE vbak-erdat,
ernam TYPE vbak-ernam,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
aedat TYPE vbak-aedat,
END OF st_final.
DATA:
lt_vbap TYPE TABLE OF st_vbap,
ls_vbap TYPE st_vbap,
lt_vbak TYPE TABLE OF st_vbak,
ls_vbak TYPE st_vbak,
lt_final TYPE TABLE OF st_final,
ls_final TYPE st_final,
lt_fieldcat TYPE slis_t_fieldcat_alv,
ls_fieldcat TYPE slis_fieldcat_alv,
layout TYPE slis_layout_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbap-vbeln,
s_erdat FOR vbap-erdat.
SELECTION-SCREEN END OF BLOCK b1.
PERFORM select_data.
PERFORM loop_final.
PERFORM sort.
PERFORM a USING:
'VBELN' TEXT-002,
'POSNR' TEXT-003,
'MATNR' TEXT-004,
'KWMENG' TEXT-005,
'PSTYV' TEXT-006,
'WERKS' TEXT-007,
'VKORG' TEXT-008,
'VTWEG' TEXT-009,
'SPART' TEXT-010,
'ERNAM' TEXT-011,
'ERDAT' TEXT-012,
'AEDAT' TEXT-013.
PERFORM display.
*& Form SELECT_DATA
text
FORM select_data.
SELECT
vbeln
vkorg
vtweg
spart
ernam
erdat
aedat
INTO CORRESPONDING FIELDS OF TABLE lt_vbak
FROM vbak
WHERE vbeln IN s_vbeln AND erdat IN s_erdat.
IF sy-subrc = 0.
SORT lt_vbak by vbeln.
ENDIF.
SELECT
vbeln
posnr
matnr
kwmeng
pstyv
werks
INTO CORRESPONDING FIELDS OF TABLE lt_vbap
FROM vbap
FOR ALL ENTRIES IN lt_vbak
WHERE vbeln = lt_vbak-vbeln.
IF sy-subrc = 0.
SORT lt_vbap by vbeln.
ENDIF.
ENDFORM. "SELECT_DATA
*& Form LOOP_FINAL
text
FORM loop_final.
LOOP AT lt_vbap INTO ls_vbap.
ls_final-vbeln = ls_vbap-vbeln.
ls_final-posnr = ls_vbap-posnr.
ls_final-matnr = ls_vbap-matnr.
ls_final-kwmeng = ls_vbap-kwmeng.
ls_final-pstyv = ls_vbap-pstyv.
ls_final-werks = ls_vbap-werks.
READ TABLE lt_vbak INTO ls_vbak WITH KEY vbeln = ls_vbap-vbeln BINARY SEARCH.
ls_final-vkorg = ls_vbak-vkorg.
ls_final-vtweg = ls_vbak-vtweg.
ls_final-spart = ls_vbak-spart.
ls_final-ernam = ls_vbak-ernam.
ls_final-erdat = ls_vbak-erdat.
ls_final-aedat = ls_vbak-aedat.
APPEND ls_final TO lt_final.
CLEAR ls_final.
ENDLOOP.
ENDFORM. "LOOP_FINAL
*& Form SORT
text
FORM sort.
ls_sort-spos = '01' .
ls_sort-fieldname = 'VBELN'.
ls_sort-tabname = 'LT_FINAL'.
ls_sort-up = c_x.
ls_sort-subtot = c_x.
APPEND ls_sort TO lt_sort .
ENDFORM. "SORT
*& Form A
text
-->FNAME text
-->SELTEXT text
-->EMPHA text
FORM a USING fname TYPE string seltext TYPE string.
IF fname = 'KWMENG'.
ls_fieldcat-do_sum = c_x.
ENDIF.
ls_fieldcat-fieldname = fname.
ls_fieldcat-seltext_m = seltext.
APPEND ls_fieldcat TO lt_fieldcat.
CLEAR ls_fieldcat.
ENDFORM. "A
*& Form ALV
text
FORM display.
layout-zebra = c_x.
layout-colwidth_optimize = c_x.
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 = ' '
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 = layout
it_fieldcat = lt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = lt_sort
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = C_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
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 = lt_final
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
Similar Messages
-
From which table we can find the stuck process in workflow from background
Hi There,
from which table we can find the stuck process
in workflow from background.
i mean the table which store information about going on process.
It's Urgent
Thank's
Bachan
Message was edited by:
BachanYou can also run "bde_wf_item.sql" script.
Note: 187071.1 - bde_wf_item.sql - Runtime Data of a Single Workflow Item
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=187071.1
"Oracle Workflow Cartridge (WF): Workflow Item Details Data Collection Test" should be also helpful.
Note: 369576.1 - Oracle Workflow Cartridge Workflow Item Details Data Collection Test
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369576.1 -
From which table I can find the "Class type" and "Class" of the material?
From which table I can find the "Class type" and "Class" of the material?
Thanks in advance for the answers....Hi,
try following table
KSSK Material number to class
KLAS Class description
KSML Characteristic name
CABN/CABNT Characteristic name description
CAWN/CAWNT Characteristic name
[http://www.sap-img.com/materials/classification-view-of-material-master.htm]
[http://wiki.sdn.sap.com/wiki/display/ERPLO/FrequentlyUsedTables]
Regards
kailas Ugale -
In which table can I find the name and surname for a username ?
Hello,
I search the table with the master data of users. Specially I search the table where I can find the
name, surname for a user.
In which table can I find the name and surname for a username ?
Thanx in AdvanceHello everybody,
thank you for the helpful informations.
thank you very much
with kind regards
cetoman -
From which table i can get the details of cancled documents
Hi All,
here is an quarry,
Iam haveing an Z report on purchase tax which has all tax report.
but now the user want to same details for cancled document
also.So can any help me from which table i can fetch the data
urgent ! pls help me out!
Regards,
RajashekarCancelled documents will not be stored in Diff tables..
It will be stored in the Same tables..
For PO
EKKO header level
EKPO Item Level
EKBE Po History
Material Doc
MKPF Header
MSEG Item
Invoice
RBKP Header
RSEG Item -
Which Table, can I find the class and characteristic assigned to equipment.
Hi all,
I have assigned a characteristc to a class.
And assigned this class to an equipment.
Now in which table can i find the class assigned to this equipment.
What is the logic to find the class and characteristic.
Thanks in advance.
PiyushHi,
As per above post, you can find classes. To find characteristics, Give EQUNR value in OBJEK field in AUSP table & get the ATINN value.
Give ATINN value in ATINN field in CABN table & get ATNAM field value.
In AUSP table, you can get the values against each characteristics as well.
Regards,
Maheswaran.
Edited by: Maheswaran.K on Apr 19, 2011 9:28 AM -
I need below fields at my selection screen.From which table we can find the
Sales Org > only one selection field
Division > only one selection field
Channel > from u2013 to fields
Sales Office Channel > from u2013 to fields
Sales Rep Channel > from u2013 to fields
User ID of the CSR Channel > from u2013 to fields
Customer Channel > from u2013 to fields
Material Channel > from u2013 to fields
Date: Channel > from u2013 to fields
I need these fields at my selection screen.From which tables I find these things.I need this logic also.I need help
-
In which table cound i find the info on EDI standard Message type??
Example
EDI standard Message type Business process
EDIFACT ORDERS Purchase order
INVOIC Invoice
ANSI X12 850 Purchase order
810 Invoice
Like those 850..810..etc info, i dont know from which table could i find the related info?
Thanks.Hi Hoo,
Electronic Data Interchange (or EDI) refers to the use of computers in formatting and exchanging business information using internationally recognized standards and formats. Standards organizations throughout the world have defined hundreds of document types to create a universal language for companies to conduct business while using dissimilar systems and processes. Common business documents, such as the invoice, purchase order, production planning schedule, ship manifest, and customs declaration, have been standardized and are sent and received electronically over private secure networks (Value-Added Networks - VANs) and the Internet.
So EDI is not an SAP product, It is a method to exchange the data over internet.
You dont get any information in any table in SAP. SAP supports EDI to exchange the data over internet. There are no. of third party EDI tools to connect to SAP.
following is link to know more about EDI message types.
http://www.edifactory.de/messages.php?s=D96A -
How to create Automatic Delivery and Billing documents immediate
Hello,
I want to create Automatic delivery and billing documnets immediate once I create a sales order.
E.g I need to see in the Status Bar the delivery and billing document was created.
Thank you in advance
Your help is highly appreciated
AlfaidPlease search in sales forum. Many times this was discussed there.
thanks
G. Lakshmipathi -
In which table may I find the settled values from the WO's settlement
Hello Expert,
Can anyone be so kind an let me know In which table may I find the value of settled costs from Work Order broken donwn into Settlement Receivers?
I have found the table COBRB where I'm able to see the settlement rules for the WO but where the values from settlement are stored?
Thank you in advance for valubale answers.
Regards:
Lukasz KurlitHello Kolla,
I was too quick with my last answer, still I have the problem with this relation between COBRB and COEP, let me clarify it again.
In WO I have manually modified the settlement rule that way that I settled costs split into two Cost Centers.
Both lines regarding settlement rules are visible in table COBRB.
Then I have found in COEP table that there are stored exact values regarding settlement for both Cost Centers, one value for one Cost Center but without any key shows which one refers to which Cost Center (I recognized it after values which were settled in different time and after modification of settlement rule)
What I need now is to find the relationship between COBRB and COEP that way that I will be able to know clearly (for reporting purpose) which line from COEP refers to which Cost Center recorded in COBRB.
Link via OBJNR gives me only both lines in COEP without knowledge which one is from which Cost Center, there is no such field which will indicate which Cost center is hidden behind the value.
I will be very appreciated for any hints how to find it.
Regards:
Lukasz Kurlit -
From which table we can find account details?
Hi,
I'm working on Inventory reports.
I have a scenario where I need to display the account details based on "REFERENCE_ACCOUNT" column in table MTL_TRANSACTION_ACCOUNTS.
From which table we can find account details?
Tahnkyou
BalaKrishnaHi Bala
You can user tab table which have the information of every table exist in your schema.
you can use select from tab where tname like '%ACCOUNTS%'*
i think it will help u. -
FROM WHICH TABLE I CAN FIND GL ACCOUNT NUMBER AND COMPANY CODE OF A PARTI
FROM WHICH TABLE I CAN FIND GL ACCOUNT NUMBER AND COMPANY CODE OF A PARTICULAR CUSTOMER?..I AM TRYING TO POST AN IDOC ..SO DATA HAS TO BE PROPER.JUST TELL THE SOLUTION
Hi rendeep,
1. LFB1
this is the required table.
2. field is AKONT
3. The account number can be different
for different companies.,
hence it depnds upon combination of
LIFNR
BUKRS
regards,
amit m. -
In which table we can find the relationship between Role id and Task id
Hi Experts,
In which table we can find the relationship between Role id and Task id in Cprojects.
Thanks
SubhaskarHi Subhaskar,
Apart from DPR_ENTITY_LINK , you can also get it from table DPR_PART.
Please go through the below link
http://wiki.sdn.sap.com/wiki/display/PLM/cProjectstablesin+SAP
I hope this will help you.
Regards,
Rahul -
In which table can I find the tcode, username and data of login ?
Hello,
I would like to know which tcode and when specific users use.
And therefore I have question:
In which table can I find the the tcode, username and data and time of login ?
Rgds StenwaDepending on the version of SAP you are using, you can trace this via:
1. STAD.
2. SM20. But proper config should be maintained via SM19.
Please read this documentation by SAP for details: [http://help.sap.com/saphelp_nw70/helpdata/EN/8a/a8b5386f64b555e10000009b38f8cf/content.htm]
BR,
Suhas
Edited by: Suhas Saha on Apr 22, 2010 6:45 PM -
In which tables can I find the sd texts in the material register?
Hi,
In which tables can I find the sd texts in the material register?
Thanks.Hi,
The texts are stored in tables STXH , STXL etc. But it is not possible to fetch the details directly from the tables. You have to use the function module READ_TEXT where you have pass the parameters Text ID, Language, object as material number etc to fetch the text.
You can take the help of an ABAPer to create a program for this.
Maybe you are looking for
-
Podcast feed not updating since Nov 10
Since Nov 10 I have posted 7 new podcasts. They are showing up here: www.nlmnorth.com/podcasts/podcast.php But not in the iTunes store or Podcast app. https://itunes.apple.com/us/podcast/newlife-ministries/id288969603 Not sure what I'm doing wrong. I
-
IPad mini using too much power
My iPad mini rapidly using battery charge. From fully charged I start browsing and within 15 minutes the battery has gone down by 20 percent. This has only been happening in the last week. Prior to this it would be several days before the battery wen
-
how to inprove speed internet
-
I am a new user to the Photoshop CC 2014. I am unable to save images post processing. Error given is "Unable to save image Write access not granted". Can some one please help me with this. I am using Mac OS Yosemite Version 10.10.2 Regds Shashi
-
Hello Friends I have installed ODI recently and wanted to learn it. It seems I have installed a demo version as I need to start 'Start Demo environment'. It works fine. Is it possible for me to create my own Master Repository and then Working Reposit