SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

RV_BILLING_PRINT_VIEW



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> SD
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Thu Sep 20, 2007 11:09 am    Post subject: RV_BILLING_PRINT_VIEW Reply with quote

RV_BILLING_PRINT_VIEW - Data Provision for Billing Document Print

Code:
*---------------------------------------------------------------------*
*       FORM GET_DATA                                                 *
*---------------------------------------------------------------------*
*       General provision of data for the form                        *
*---------------------------------------------------------------------*
form get_data.

 call function 'RV_PRICE_PRINT_REFRESH'
   tables
     tkomv = tkomv.
 clear komk.
 clear komp.
 clear nast_anzal.      "Clear aux. variable for number of outputs
 clear   sdaccdpc.
 refresh ixsdaccdpc.
 clear downpay_refresh.

 if nast-objky+10(6) ne space.
     vbco3-vbeln = nast-objky+16(10).
 else.
   vbco3-vbeln = nast-objky.
 endif.

 vbco3-mandt = sy-mandt.
 vbco3-spras = nast-spras.
 vbco3-kunde = nast-parnr.
 vbco3-parvw = nast-parvw.

 call function 'RV_BILLING_PRINT_VIEW'
   exporting
     comwa                        = vbco3
   importing
     kopf                         = vbdkr
   tables
     pos                          = tvbdpr
   exceptions
     terms_of_payment_not_in_t052 = 1
     error_message                = 5
     others                       = 4.
 if not sy-subrc is initial.
   if sy-subrc = 1.
     syst-msgty = 'I'.
     perform protocol_update.
   endif.
 endif.

* fill address key --> necessary for emails
 addr_key-addrnumber = vbdkr-adrnr.
 addr_key-persnumber = vbdkr-adrnp.
 addr_key-addr_type  = vbdkr-address_type.

 perform sender.
 perform check_repeat.
 perform get_header_prices.
* Calling customer subroutine dynamically for additional data transfer
 if not get_data_userexit is initial.
   perform (get_data_userexit) in program rvadin01 if found.
 endif.
endform.                    "GET_DATA
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> SD All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.