Not getting output undr billing details and item details in printng invoice

In form interface under import tab i have declared 1 value i.e. IM_FS_KNA1 type KNA1 I have not declared anything except this in form interface.
In Global Definitions under Global Data tab:
IM_T_KNA1     TYPE TABLE OF     KNA1
IM_FS_VBRK     TYPE     VBRK
IM_FS_VBRP     TYPE     VBRP
W_TOTAL     TYPE     VBRP-NETWR
IM_T_VBRK     TYPE TABLE OF     VBRK
IM_T_VBRP     TYPE TABLE OF     VBRP
under Currency/ Quant Fields
IM_FS_VBRP-NETWR     IM_FS_VBRK-WAERK     C CURR
In Billin Window, there is a loop from IM_T_VBRK INTO IM_FS_VBRK where KUNAG = IM_FS_KUNNR
In main window, i've created a table for displaying item details
I'm only getting data of Customer in Customer Details window after using driver program. I've checked the entries in the table but for those inputs i'm not getting the desired output..
Following is the code that i'm using for driver program:
*& Report  ZPRINTINVOICE2
REPORT  ZPRINTINVOICE2.
TABLES:
  kna1,
  vbrk,
  vbrp.
PARAMETERS :
  p_kunnr LIKE vbrk-kunag,
  p_vbeln LIKE vbrk-vbeln.
DATA :
  /1BCDWB/SF00000214 TYPE rs38l_fnam.             " Name of the Function Module
DATA :  t_vbrk LIKE
STANDARD TABLE
      OF vbrk.
DATA:  t_vbrp LIKE
STANDARD TABLE
      OF vbrp.
DATA :
  fs_kna1 TYPE kna1,                           " Holds Customer Details
  fs_vbrk LIKE LINE OF t_vbrk,         " Holds BillingDoc Header Details
  fs_vbrp LIKE LINE OF t_vbrp.         " Holds BillingDoc Item Details
START-OF-SELECTION.
  SELECT SINGLE *
           FROM kna1
           INTO fs_kna1
          WHERE kunnr EQ p_kunnr.
   SELECT *
    FROM vbrk
    INTO TABLE t_vbrk
   WHERE kunag EQ p_kunnr
     AND vbeln EQ p_vbeln.
   SELECT *
    FROM vbrp
    INTO TABLE t_vbrp
     FOR ALL ENTRIES IN t_vbrk
   WHERE vbeln = t_vbrk-vbeln.
   CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname                   = 'ZTRYINVOICE2'
    IMPORTING
      fm_name                    = /1BCDWB/SF00000214
    EXCEPTIONS
      no_form                     = 1
      no_function_module = 2
      OTHERS                   = 3.
  IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
   CALL FUNCTION /1BCDWB/SF00000214
    EXPORTING
      im_fs_kna1       = fs_kna1
      im_t_vbrk        = t_vbrk
      im_t_vbrp        = t_vbrp
    EXCEPTIONS
      formatting_error = 1
      internal_error   = 2
      send_error       = 3
      user_canceled    = 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.
  ENDIF.
plz help......

Hi Neha,
Modify your CALL FUNCTION /1BCDWB/SF00000214 like below :
CALL FUNCTION /1BCDWB/SF00000214
    EXPORTING
      im_fs_kna1       =  im_fs_kna1
    TABLES
      im_t_vbrk        = im_t_vbrk
      im_t_vbrp        = im_t_vbrp 
    EXCEPTIONS
      formatting_error = 1
      internal_error   = 2
      send_error       = 3
      user_canceled    = 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.
  ENDIF.
At Smarforms > Form Interface > Import :
im_fs_kna1.
At Smarforms > Form Interface > Tables :
im_t_vbrk , im_t_vbrp
BR
Dep

Similar Messages

  • Route is not getting updated in billing

    Hi all,
    I have a freight condition type which is having the key combination of plant & Route (werks/route). we give route manually in the delivery document header but it is not getting updated in billing item and because of that billing item is not picking the condition records.
    My copy controls from LF > F8 Header 009 and item 010 maintained.
    Please give your valuable inputs to resolve this
    Regards

    As I know there is no field for Route or for transportation in Invoice.
    I suggest you to consider trying routine based pricing for the same.
    Also,for understanding refer following link:
    - how to redetermine pricing value in invoice?
    - SD / Pricing Condition / Route Based
    Thanks & Regards
    JP

  • Iam not getting output for inner join where condition

    the condition i have give
    TYPES:BEGIN OF TY_TAB,
          WERKS TYPE WERKS_D,
          LGORT TYPE LGORT_D,
          LGOBE TYPE LGOBE,
          NAME1 TYPE NAME1,
          END OF TY_TAB.
    DATA WA_TAB TYPE TY_TAB.
    DATA IT_TAB TYPE TABLE OF TY_TAB.
    SELECT  T001L~WERKS
            T001L~LGORT
            T001L~LGOBE
            T001W~NAME1
            INTO TABLE IT_TAB FROM T001L INNER JOIN T001W ON T001LWERKS = T001WWERKS
           WHERE  T001L~WERKS = 'amjt' and
               T001L~WERKS = 'bimi' and
               T001L~WERKS = 'biml'.
    LOOP AT IT_TAB INTO WA_TAB.
      WRITE: / WA_TAB-WERKS,WA_TAB-LGORT,WA_TAB-LGOBE,WA_TAB-NAME1.
      ENDLOOP.
    iam not getting output for this

    Well, re-read carefully your code
    WHERE T001L~WERKS = 'amjt' and
    T001L~WERKS = 'bimi' and
    T001L~WERKS = 'biml'
    - WERKS cannot be simultaneously equal to three different values, replace AND with OR ([Boolean algebra|http://en.wikipedia.org/wiki/Boolean_algebra])
    - WERKS domain does not allow lowercase, so use uppercase ([Creating Domains|http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21edf2446011d189700000e8322d00/frameset.htm])
    Regards,
    Raymond

  • After moving from my home country (Poland) to the Middle East (UAE) with the same computer I can not get connected to Apple Store and iTunes Store.

    After moving from my home country (Poland) to the Middle East (UAE) with the same computer I can not get connected to Apple Store and iTunes Store. Any clue why?
    Regards,
    Maciek

    Click the round flag icon bottom right corner of the App Store window.

  • TS5185 Hi After I have report a junk message I coudl not get Imessge from other iphone. and could not send any message in blue color but green which need to pay for.

    Hi After I have report a junk message to 7726, I coudl not get Imessge from other iphones. and could not send any message in blue color but green which need to pay for. Does Apple blocked my imessage ? I have checked the setting. imessage is on.
    Thanks,
    J

    Make sure that your date and time settings and time zone are accurate (Settings - General - Date and Time). Reset your phone to 'Set Automatically' and then try signing in again - this worked for me.  My date/time settings were not automatic (candy crush cheats!!).

  • Urgent!! PL/SQL web service can not get output param in BPEL

    OC4J 10.1.2 generate PL/SQL web service can not get output param can not get output param in BPEL when call a pl/sql webservice.
    wsdl as follow:
    <types>
    <schema targetNamespace="http://db.func.getqf/COMMON.xsd" xmlns:tns="http://db.func.getqf/COMMON.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <complexType name="db_func_getqf_COMMONUser_getqf_Out">
    <all>
    <element name="pnqfysOut" type="xsd:decimal"/>
    <element name="pnzqfOut" type="xsd:decimal"/>
    </all>
    </complexType>
    </schema>
    </types>
    <message name="getqfOutput">
    <part name="return" type="xsd1:db_func_getqf_COMMONUser_getqf_Out"/>
    </message>

    the wsdl which generate by OC4J is as follows:
    <?xml version="1.0" ?>
    - <definitions name="COMMON" targetNamespace="http://db.func.getqf/COMMON.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://db.func.getqf/COMMON.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd1="http://db.func.getqf/COMMON.xsd">
    <documentation>WSDL for Service: COMMON, generated by Oracle WSDL toolkit (version: 1.1)</documentation>
    - <types>
    - <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://db.func.getqf/COMMON.xsd" xmlns:tns="http://db.func.getqf/COMMON.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <complexType name="db_func_getqf_COMMONUser_getqf_Out">
    - <all>
    <element name="pnqfysOut" type="xsd:decimal" />
    <element name="pnzqfOut" type="xsd:decimal" />
    </all>
    </complexType>
    </schema>
    </types>
    - <message name="getqfOutput">
    <part name="return" type="xsd1:db_func_getqf_COMMONUser_getqf_Out" />
    </message>
    - <message name="getqfInput">
    <part name="param0" type="xsd:string" />
    </message>
    - <portType name="COMMONPortType">
    - <operation name="getqf">
    <input message="tns:getqfInput" />
    <output message="tns:getqfOutput" />
    </operation>
    </portType>
    - <binding name="COMMONBinding" type="tns:COMMONPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
    - <operation name="getqf">
    <soap:operation soapAction="urn:db-func-getqf-COMMON/getqf" />
    - <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:db-func-getqf-COMMON" />
    </input>
    - <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:db-func-getqf-COMMON" />
    </output>
    </operation>
    </binding>
    - <service name="COMMON">
    - <port name="COMMONPort" binding="tns:COMMONBinding">
    <soap:address location="http://localhost:9700/plsqlgetqf/getqf" />
    </port>
    </service>
    </definitions>

  • Not getting com.ibm.mq.jar and com.ibm.mqjms.jar files

    Hi Sudhir,
    Thank you very much for your guidance.
    But I am not getting com.ibm.mq.jar, and com.ibm.mqjms.jar files. what do I have to do to get this file?
    And do I require both these files in getting initial context for JNDI.
    Thanks in advance.
    Have a nice day

    Hay,
    theres also a zip file from IBM titled MA88 that contain the jar files needed for supporting JMS programs in a Java env (these files are included there) and they're also included in WBI v5.2 and higher.

  • HT4623 I can not get past the license agreement and term and conditions page after updating my i5 IOS

    I can not get past the license agreement and term and conditions page after updating my i5 IOS

    Restart your phone and if that doesn't help, reboot the device.
    Restart the iPhone by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reboot the iPhone by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the phone start up.

  • I have 2 movies that i need by tonight i sent a request to apple and i might not get that back till tomarrow and i  need these  now?  please help!!

    I have 2 movies that i need downloaded tonight, i sent a request to apple and i might not get that back till tomarrow and i need these tonight!!  Help!

    Huh?
    Why are they no on your computer?
    You purchased them?  They downloaded?
    What is the issue?

  • I bought a second hand Macbook Pro and colorful stud Only after a few months I decided to reformat it Bad movie started here I did not get it with a disc and I come to install the operating system And he asks the name of Apple's user ID financed had been

    I bought a second hand Macbook Pro and colorful stud
    Only after a few months I decided to reformat it
    Bad movie started here I did not get it with a disc and I come to install the operating system
    And he asks the name of Apple's user ID financed had been bought Lion OS Now
       And who sold me does not answer then I found the phone number of his mother
    She said he lived in USA and paid him more than the lion version of the MacBook and now I can not install Lion
    And I'm not from USA

    Unless you go back to the original owner, yes you need to pay for it again.
    You're entitled to the OS that shipped with the device from Apple, but if you don't have that media there's nothing you can really do.  If the system originally shipped with 10.7 or 10.8 then when you boot it to Internet Recovery, it will automatically offer you that OS version (as the serial # is registered with Apple).  If it shipped with an older OS, then you need to enter the Apple ID that purchased 10.7 or 10.8.  You didn't purchase it so that's not you.
    The options you have are to buy Lion for $29 US (I don't know the price in Palestine), or Mountain Lion for $19 US (don't know the price in Palestine either), and install from scratch.
    And it's a good idea to know you have restore media before you reformat your machine.

  • Mail not getting all messages from server and other strange behavior

    Hello All,
    Mail has been doing some odd things for me of late (at least the last week) and I'm lost for a solution to my problem. As far as I can tell, perhaps my Prefs. have become corrupted, or at least something in relation to Mail has become corrupted. Perhaps someone has a solution to this issue before I have to back it all up and NUKE the whole **** app to get back up and running properly.
    The main issue I appear to be having is that Mail is not getting all of my Mail messages from my server. I can log into my web-mail interface provided by my domain host and can see there that there are many e-mails that don't appear to be coming down the pipe to the Mail.app client. I'm getting some e-mail's but not all....
    *Here are all the things that I've checked:*
    • The missing e-mails are not being picked up as Junk and are not in the Junk folder
    • I have done a search within Mail for the missing e-mail's and nothing turns up anywhere.
    • I have checked on the server end that I'm not maxing out my InBox or that there are any other service issues from my domain host provider.
    • I have been into Prefs and checked my account settings - most (see below) of which appear to be as normal and are fine.
    *Here are the weird things that I've noticed:*
    • When I went into the Prefs. for the account in question, I noticed that my login had changed. For example - it usually it is "[email protected]", however it had seemed to have changed to just "johndoe" - I know this wasn't me as my domain host will not allow me to access any mail unless the login is the full mail address.
    • In RULES, every rule I double click to check on seems mostly fine, apart from the fact that every "Account is:" the pull down menu just appears as blank. Usually it says "Account is: ([email protected])"
    It's there last 2 items that make me think something is corrupted - so I guess my question is, what pref or file has corrupted and how can I fix it without having to give Mail.app a digital enema?
    Any assistance would be most helpful - missing some but not all your incoming e-mail messages is quite annoying, as you can guess...!
    Thanks,
    Boz

    Hello Boz.
    This appears to be a rules issue. Mail is almost certainly downloading those messages, but they’re probably being processed by your rules in an unexpected way — given the information you’ve provided, maybe because there is something wrong with the file where the account settings are stored.
    Do you have any Mail plug-ins? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/InputManagers/
    /Library/Mail/Bundles/
    ~/Library/InputManagers/
    ~/Library/Mail/Bundles/
    To make accurately reporting this information easier, you may open /Applications/Utilities/Terminal, type the following command (you can just copy it here and paste it in Terminal), and press <Return>. You can then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/InputManagers /Library/Mail/Bundles ~/Library/InputManagers ~/Library/Mail/Bundles
    <hr>
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, and ensuring that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Write down your Mail > Preferences > Accounts settings or take screen shots of them.
    2. If you have a .Mac account and .Mac synchronization of Mail data is enabled either in Mail > Preferences > General or in System Preferences > .Mac, disable it before proceeding.
    3. Quit Mail.
    4. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the Mail folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    5. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this solves the problem). If you have a backup of your data that includes a working copy of this file, you may try restoring it from the backup to avoid steps 6-8.
    6. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    7. You’ll have to re-configure some of your Mail > Preferences settings. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    8. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    9. If the problem is fixed now and .Mac synchronization of Mail data was enabled at the beginning, enable it again, go to System Preferences > .Mac > Advanced, click Reset Sync Data, and choose the appropriate options to reset the Mail data stored on the .Mac server with the data locally stored on the computer, i.e. sync data must flow from the computer to the .Mac server.
    <hr>
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • IPod with dock connector is not getting charged with car charger and iTrip

    My iPod from 2003 with dock connector is not getting charged in my car by using the griffin iTrip with USB car charger. iTrip works, but not the charger. Maybe there´s not enough power output from the car charger? Only 5.0V with 400mA are coming out. iPod needs more? 12V with 1.0A?
    Does somebody have information about that problem for me?

    Has Apple dropped support for older model iPods?
    Nope. Support is still there, even back to the original 1G iPod with the wheel that actually turns. I have a 3G iPod, and it syncs just fine. There have not been any software updates for years, but the old software still works fine with the latest iTunes.
    You have to use FireWire, which you seem to be doing.
    Try putting it into Disk Mode first, then connect it.
    http://support.apple.com/kb/HT1363
    Does the iPod currently play music as it should?
    Do you have another docking cable (FireWire) that you can try? FireWire connectors often get worn and they no longer work, although the power connection can continue to work.
    Did you try the other FireWire port in the iMac?

  • GL Account is not getting picked by billing document

    Hi Gurus,
    one new GL account is set up by our FI team for a accrual condition type.
    case 1:
    Now when i have cancelled the previous created billing doc and trying to create again then the new GL account is not getting picked.
    case 2:
    Whereas when am doing the complete process flow like sales order creation, delivery and billing then the new GL account is getting picked.
    Could you please let me know what would be the reason for this, why its not getting picked in first case.
    Thanks,
    Ashi

    Hello Preety,
    Unless you see the Revenue Account Determination Analysis for the Billing document, it is very difficult to understand the reason. Please click on the Environment >> Acc.Determination Analysis >> Revenue account in the VF03 screen and find the missing assignment.
    Thanks,
    Suman$

  • I need to get rid of billing info and I really need to get apps but I need some billing info in order to get apps but I don't have a credit card

    I need help with a billing  adress  and I don't. Have a credit card and I need to get rid of it

    Are you creating a new account?
    Why not purchase and redeem an iTunes gift card?

  • I do not get my apple bill

    i buy my mac Pro notebook from apple store in george town. and i still do not recieve my apple bill. they told me that they will send me through mail ?
    so how can i get my macro pro bill ??

    since we're all users in this forum and do not work for Apple - why not call customer service.
    1-800-MY-APPLE

Maybe you are looking for