How to give the details of delivery and billing on the same row in alv

i want delivery and billing no i.e vbeln and quantity for billing and delivery for category 'J' and 'M'   for corresponding sale order
Nothing is displayed while executing only the heading is displayed but in the debugger got the values for all how to solve this issue
Moderator message - Welcome to SCN
Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Edited by: Rob Burbank on Sep 9, 2010 12:13 PM

FORM FINALDATA.
  LOOP AT ITAB1.
    ITABFINAL-VBELN   = ITAB1-VBELN.
    ITABFINAL-AUDAT   = ITAB1-AUDAT.
    ITABFINAL-BSTNK   = ITAB1-BSTNK.
    ITABFINAL-POSNR   = ITAB1-POSNR.
    ITABFINAL-MATNR   = ITAB1-MATNR.
    ITABFINAL-KWMENG  = ITAB1-KWMENG.
   IF ITAB1-VBTYP_N = 'J'.
      ITABFINAL-VBELN4 = ITAB1-VBELN2.
      ITABFINAL-RFMNG1  = ITAB1-RFMNG.
    ENDIF.
    IF ITAB1-VBTYP_N = 'M'.
      ITABFINAL-VBELN3 =  ITAB1-VBELN2.
      ITABFINAL-RFMNG2 =  ITAB1-RFMNG .
    ENDIF.
FORM FILL_FIELDCATALOG.
  REFRESH: I_FIELDCAT_ALV[].
  PERFORM BUILD_FC USING
                          '1' 'VBELN'    'ITABFINAL' 'SALES ORDER NO'  'C100'.
  PERFORM BUILD_FC USING
                          '2' 'AUDAT'    'ITABFINAL' 'DATE'            'C200'.
  PERFORM BUILD_FC USING
                          '3' 'BSTNK'    'ITABFINAL' 'Region'          'C300'.
  PERFORM BUILD_FC USING
                          '4' 'POSNR'    'ITABFINAL' 'Site'            'C400'.
  PERFORM BUILD_FC USING
                          '5' 'MATNR'    'ITABFINAL' 'MATERIALNO'      'C500'.
  PERFORM BUILD_FC USING
                          '6' 'KWMENG'   'ITABFINAL' 'ORDER QUANTITY'  'C100'.
  PERFORM BUILD_FC USING
                          '7' 'VBELN2'   'ITABFINAL' 'DELIVERY'        'C200'.
  PERFORM BUILD_FC USING
                         '8'  'RFMNG'    'ITABFINAL' 'ORDERQUAN'       'C400'.
  PERFORM BUILD_FC USING
                          '9' 'VBELN3'   'ITABFINAL'  'BILLING'        'C300'.
  PERFORM BUILD_FC USING
                         '10' 'RFMNG2'   'ITABFINAL' 'DELIVERED QUAN'  'C500'.
ENDFORM.                    "fill_fieldcatalog

Similar Messages

  • Cannot view the detailed Email date and time about the meeting request

    Hi,I am unable to view the detailed message and Date and time of a meeting request in the default Email app in my Sony Xperia P mobile. Even when i select the calender it does not defaultly go to the meeting date. I need to manually select the date to see the meeting. I cannot see the meeting details without accepting it.I have seen the better behaviors on HTC One V and Galaxy Nexus where full meeting details including message, Date, time, venue appears in the meeting request message.Is there any setting which needs to be changes or is it the limitation of the phone app.Regards,Pratik Ranjan

    Hi Johan,Im also seeing this on my xperia s, ICS.  Here's some additional info i have after some testing:Work have Exchange 2010, I have sent calendar invites from outlook 2007 and 2010 clients and it works for the 2007 clients as it automatically adds the meeting details into the body of the request, something it doesn’t do in 2010, so it may be the way the calendar form has changed in 2010.   It also works fine when i get an invite from an external person.This however is just adding the text into the body, I too have tested with the HTC One S and Samsung Galxay S3, bith use the stock email and both display the time as part ofthe invite no tin the body of the invite,
    In doing the testing I have also found another issue. I have found that it doesn’t inform you of a calendar conflict.ThanksMike

  • Automatic delivery and billing

    Dear Experts,
    could any one light me how to create an automatic delivery and billing from the sales order?
    i want to create the sales order , delivery and billing at the same time when creating the sales order

    Hi Ahmed,
    Follow the steps given below,
    1st you have to create a variant
    IN VF06 --> Give your required inputs like your sales org --> click at save --> On next screen --> in the billing date from --> in selection variable --> Choose option Dynamic date --> save it
    Now you can see your variant
    VF06 --> GOTO (Menu) --> Varian --> Display
    Then go to SM36 --> give the required inputs like Job name, priority --> status should be sheduled --> Enter --> give the program name (You can find the program name through VF06 --> click at system(Menu) --> status) --copy that program name and paaste in the pop screen ---> then enter your variant --> your batch job has been created  --> come back and click at "start conditions" --> save and test it
    Hope this helps.
    Regards,
    MT

  • Reverse/Cancel Outbound Delivery and Billing documents

    Hi all,
    My question is...How do you reverse/ Cancel Outbound delivery and billing documents and what will be the reversals in  Accounting document and how are they updated.
    Regards

    Hi,
    If billed delivery is to be reversed,  Then
    1. First cancel the billing with transaction code vf11
    2.Then reverse the PGI with the transaction code VL09
    3.Cancel or delete the Delivery in vl02n
    4.Delete the sales order.
    Accounting entries will be reversed by cancellation of the invoice and material movement will get reversed after doing VL09.
    Reward points if it is helpful

  • The install wizard stops and "rolls Back" the install and just gives the attached notice of the install error...how can this be corrected?

    The install wizard stops and "rolls Back" the install and just gives the attached notice of the install error...how can this be corrected?
    The notice is inserted first and the stopping point is second.

    Da ich gar kein Englisch kann kann ich auch nicht sagen was sie mir
    geschrieben haben ich kann nur Vermuten was das sein soll es tut mir leid
    aber ich kann ihnen keine Konkreter Antwort geben alle Sprechen Englisch
    nur ich nicht mehr kann ich dazu nicht sagen
    Constantin Preda
    2015-02-12 21:45 GMT+01:00 Claudio González <[email protected]>:
        The install wizard stops and "rolls Back" the install and just gives
    the attached notice of the install error...how can this be corrected?
    created by Claudio González
    <https://forums.adobe.com/people/Claudio+Gonz%C3%A1lez> in Adobe Reader
    - View the full discussion
    <https://forums.adobe.com/message/7189357#7189357>

  • 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

  • Query to get the details of Blocking and deadlock occurred for the Day

    Hi,
       I need a query to get the details of blocking and deadlock occurred for the day.

    You havent specified which version of SQL you are using which makes it difficult to give a solution. Assuming its latest versions , by default SQL Server (in any versions) doesnt track blocking information.
    You need to run some kind of queries/traces to capture blocking. The same goes with Deadlocks where majority of the DBA's enable trace flag 1222/1205 when they suspect deadlocks happening.
    Check this link -
    http://dba.stackexchange.com/questions/10644/deadlock-error-isnt-returning-the-deadlock-sql/10646#10646
    This link gives code to get historic deadlock information. I havent used it , I just googled to get that.
    That being said if you are looking for something to capture for the future check the below links.
    Check these links on how to setup extended events to capture deadlock and blocking.
    http://sqlblog.com/blogs/jonathan_kehayias/archive/2010/12/21/an-xevent-a-day-21-of-31-the-future-tracking-blocking-in-denali.aspx
    http://blogs.msdn.com/b/sqlserverfaq/archive/2013/04/27/an-in-depth-look-at-sql-server-memory-part-2.aspx
    http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
    HTH
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • How send an  outbound delivery and billing document by FAX

    How send an  outbound delivery and billing document by FAX

    Hi,
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    You have to create an RFC user for the RFC interface, so that you can receive messages in your SAP system. For each external communications system, create an RFC destination and a Node.
    You can add more systems, that is, create new nodes, even during operation. Since new Customizing settings may be necessary, you can branch directly from SAPconnect administration to Customizing (for example, to maintain the rules for recipient number adjustment).
    Outgoing messages are first stored in a queue. You have to schedule send processes so that the messages are sent from the queue to the external communications system. You can distribute incoming messages with inbound distribution using the recipient addresses.
    You can also change the default settings for confirmations of receipt in the Internet. You can specify a default domain to enable messages to be sent externally to users or objects to which no Internet address is assigned.
    The tools for monitoring and error analysis are available for monitoring sending. You can check the operating status of the external communication components in the SAP System and evaluate the send status of the documents. If errors occur, you can configure a trace that logs the processing of messages.
    An overview of the settings that you have to make in the SAP System in order to enable sending can be found in the documentation on External Sending in the SAP System.
    Hope this will help.
    Regards,
    Naveen.

  • I cannot receive email properly now. When I open mail, it says that is downloading about 1,700 emails. At the very end, it gives me my newest ones. But this takes a long time. I've contacted the Internet service provider and verified all the right setting

    I cannot receive email properly on either my IPad or my IPhone. I have had them for over a year and they have always worked fine. Until three days ago, when they both started acting up. On the IPad, when I open mail, it says it is downloading about 1,700 emails. At the very end, which takes quite a while to get to, I finally get the most recent ones. The IPad is sending emails just fine.
    On my IPhone, when I open mail, it says it is downloading 100 emails, but it doesn't do that. And it gives me no new emails at all. The IPhone is sending email just fine.
    I have already deleted the email accounts on both devices and reinstalled them. I've contacted the Internet service provider and verified all the right settings. The Outlook email on my desktop is working perfectly.

    WMV is a heavily-compressed format/CODEC, and the processing time will depend on several factors:
    Your CPU, which is not that powerful in your case
    Your I/O sub-system, which is likely a single HDD on your laptop
    The source footage. What is your source footage?
    Any Effects added to that footage. Do you have any Effects?
    Each of those will have an impact on the time required.
    The trial has only one main limitation - the watermark. Now, there are some components, that have to be activated, but are not with the trial, but they would be evident with Import of your source footage, if it's an issue.
    Good luck,
    Hunt

  • HT3887 my bluetooth says 'Not Available' how do i get it to work again. I have restarted the computer several times and have replaced the batteries in both the keyboard and mouse and yet it still is not working! please help

    my bluetooth says 'Not Available' how do i get it to work again. I have restarted the computer several times and have replaced the batteries in both the keyboard and mouse and yet it still is not working! please help

    I have had the same problem. It was cured by turning computer off and/or restarting it. I am not sure  if once was enough. I think shutting down must cut out whatever it is that blocks bluetooth. Good luck

  • When I have the downloads window open and I close the browser window, how can I get the browser to open the homepage the next time I start it while the download window is still open?

    When I have the downloads window open and I close the browser window, the next time I reopen the browser while the downloads are still going, it returns me to the last page I was on. All previous versions of Firefox would return me to my homepage which I would prefer. Please let me know if this is possible.

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • HT201269 Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account

    Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account please?

    Yes.
    On their iOS devices, under Settings>iTunes & App Store, they should use your Apple ID. When they log into iCloud, iMessage and Facetime, they should use their personal Apple IDs.

  • I have an icloud account that i am trying to delete or change the email on it and i lost the password.  How can i delete the account if i lost the password?

    I have an icloud account that i am trying to delete or change the email on it and i lost the password.  How can i delete the account if i lost the password?

    You can't and shouldn't.  This is what you should do:
    http://support.apple.com/kb/HT2204
    http://support.apple.com/kb/HT1920?viewlocale=en_US&locale=en_US
    http://support.apple.com/kb/HT5621
    http://support.apple.com/kb/HT5312

  • I am unable to create a new event on my iPhone with IOS 7.0.4. I tap the plus sign, fill in the details, tape Done and ... nothing. Repeatedly. No problem on my iMac or iPad, just with the phone. Help.

    I am unable to create a new event on my iPhone with IOS 7.0.4. I tap the plus sign, fill in the details, tape Done and ... nothing. Repeatedly. No problem on my iMac or iPad, just with the phone. Help.

    Assuming you're creating this event to place in your calendar, and assuming this calendar is shared with your iMac and iPad using iCloud, might the calendar be restricted on your iPhone?
    Check Settings > General > Restrictions

  • Hello i hav an ipad mini and i was in the middle of the ios 8 update and i held the sleep and home button at the same time to cancel the update and now it wants me to connect to itunes i dont no how to do that can someone pleaze help me

    hello i hav an ipad mini and i was in the middle of the ios 8 update and i held the sleep and home button at the same time to cancel the update and now it wants me to connect to itunes i dont no how to do that can someone pleaze help me?

    RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

Maybe you are looking for

  • Problem with Adobe AIR Installation

    I cannot install the Adobe AIR on windows xp Here the log: [2012-10-08:00:33:14] Runtime Installer begin with version 3.4.0.2540 on Windows XP x86 [2012-10-08:00:33:14] Commandline is: [2012-10-08:00:33:14] No installed runtime detected [2012-10-08:0

  • JRE 1.4.2_05 installed BUT no Java logo in the Control Panel

    Hi, I have just installed JRE 1.4.2_05 on my computer using a manual download. However, I still cannot run applets after the installation finished. I checked Add/Remove in Control Panel to make sure that it was in fact installed, and it was. When I t

  • How to find material recieved with excise duty or without excise duty

    HI how to find material recieved with or without excise duty , and which table  these data store . Because we need to develope one new report. Regards Ganesh

  • Safari icon on the Dock

    Weird one: it happens that I cannot launch Safari from the Dock. I just get a beep/error sound. Dragging out the icon, then placing a new one, fixes the issue.

  • How do I create labels for printing

    In which app can I create and then print labels such as address labels, name tags and the like?