How to get sales Representative info

hi all ,
i want to get the telephone nr & fax nr & email of the sales Representative when i print a invoice or a delivery note.
so could someone guide me how to do this please?
best regards
Kevin

hi,
tables use : VBPA, PA0001,PA006
refer this code.
SELECT * from vbrp INTO TABLE it_vbrp .
READ TABLE it_vbrp INTO WA_VBRP INDEX 1.
  SELECT * FROM VBPA INTO TABLE IT_VBPA WHERE VBELN = WA_VBRP-AUBEL.
READ TABLE IT_VBPA INTO WA_VBPA WITH KEY parvw = 'Z4' .
if sy-subrc = 0.
*Sales Person Name.
  SELECT SINGLE SNAME FROM PA0001
INTO S_PNAME
WHERE PERNR EQ WA_VBPA-PERNR.
endif.
AND USE PA0006 FORTELEPHONE NO.
confirm with ur functional consultant  for PARTNER FUNCTION (PARVW) I.E WHICH U WANT OT USE

Similar Messages

  • How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)

    Hi
      Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).
    the Field i need to get are : SALES TEXT, PO TEXT.
    Sunil.

    Hi Sunil,
    For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.
    Below are examples of PO text and Sales Text:
    1. PO text:
        CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = 'F03'
           LANGUAGE = SY-LANGU
           NAME = '450000011200010' conacte PO number and line item number
           OBJECT = 'EKPO'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    2. Sales order text:
            CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = '0001'
           LANGUAGE = SY-LANGU
           NAME = '0000000036000010' conacte SO number and line item number
           OBJECT = 'VBBP'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    ref: STXH and STXL tables.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    Hi,
    Thanks for the suggestion. I've been playing around with some of the classes of the java.net package and java.io
    Using the URL class i can get the content of the data from a STATIC page and output that response to file so that is does not display to the client broswer.
    But this only works if the URL i give points to a static html page.
    So the problem i'm getting is if i'm righting in arguments in the URL, this means that server needs to process the arguments i give and its sends back a dynamic result. Because its dynamic the URL class can not handle this and throws me an exception everytime :(
    Have u ever tried to do some things like this?
    Rahul

  • How to get sales order number before saving in VA01 by using parameter

    Hi,
    Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
    I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
    can you please suggest how to do it?
    Thanks & Regards.
    Rahul Verulkar

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

  • How to get sales order data in substitution of fi-docu from GM posting ?

    How to get sales order data in substitution of FI documents from goods movement posting?
    When I posting a material document with movement type "501E", the system will creating a FI document automatically. And I need to get the sales order data in the substitution of FI document.
    I tried to export the data of the material document in user-exit "MB_CF001 Updating of material document data upon posting", but this user-exit does not triggered in the posting process at all. what's the problem?
    Do you have better solution or idea for this? Please help me. Thank you!

    Hello Harish,
    Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
    Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
    Regards
    Kaushal

  • How to get  sales area text data ( line1) from XD02

    hi sap gurus,
    how to get table name for sales area text xd02 (like marking, remarks , tag ) or we have to use function module to fetch it in the report.
    thanks ,
    Amit Ranjan .

    Table names for all texts are STXH,STXL but from table u cannot fetch them as in the table these texts are stored in RAW format. To fetch this text in human readable format use the FM READ_TEXT. To use this Fm u have to pass text name, text id and object name..u can get all data by double clicking the editor for each text..it will goto the sapscript editor(line editor) then from menu path Goto->Header..u will get all the info....
    Regards,
    JOy.

  • In BI SD how to get Sales Document wise Order Delivery and balance Quantity

    We are on the verge of SAP BI implementation. We are facing a problem as in BI we have to
    show Sales Order wise - Order Quantity then associated all the deliveries and the Quantity delivered
    and finally Billed Quantity
    Format Required is
    Order No         Order Qty      Delivery Qty     Billed Qty
    We are using 0sd_c03 cube here Order , delivery and Billing come as separate Line items
    Now bringing them to one line item is a chellange for us
    can any body help us
    Thanks
    Shivani

    Hi,
    Merging of Order, delivery and billing information is not so easy.
    In ECC we have a new datasource for Open order quntity against delivery available check those datasources once may be useful.
    [Extraction SD Sales: Order Delivery|http://help.sap.com/saphelp_nw04/helpdata/en/21/ca6d07d5b807459ec8957dad97c179/frameset.htm]
    --> This datasouce provides information regarding order qty, delivered qty and status. But no billing related information available.
    --> Pull billing information into a separate datasource and merge using sales doc no (with reference doc no in billing). to get billing related info.
    --> Multiple orders can be billed together, so distribution may not be correct. check ...
    Hope it helps
    Srini

  • How to get Participant's info in a global creation ?

    I want to get current Participant's info in a global creation.
    And so, I use to call Fuego.Lib.Participant.
    But, this componet is described follows within online document.
    This component is commonly used as the variable participant , which is predefined in every process.
    In a global creation, participant is not predefined.
    How to get participant's information in current global creation ?
    Note.
    I found a message in a thread that using Participant instead of participant.
    <Re: User of an interactive global activity
    But, I can't undestand to use Participant in a global creation by online document.
    Edited by: yoshiy on 2010/02/24 14:31

    In Re: User of an interactive global activity I mentioned that you should use "Participant" instead of the predefined variable "participant". This is true only inside of a Screenflow's automatic task. This is valid for any Screenflow (both Globals and Interactive activities).
    To see what information you can get about the current participant, open the catalog's Fuego.Lib.Participant component. Here you'll see that you can retrieve the current participant's email, firstName, id, lastName, and their roles. Here's how to do this using logic inside an Automatic task in a Screenflow:
    currentParticipantName as String
    currentParticipantName  = Participant.firstName + " " + Participant.lastNameDan

  • How to get  sales order data in R/3. Any FM?

    Hi ,
    Is there any FM in R/3 to get sales order data.
    In CRM we use CRM_ORDER_READ to get the Header and Item details. Like wise FM in R/3 is required.
    Actually I have to test 'Usage' in sales tab of VA01/VA02/VA03.
    How to get the order details? what is the user exit for ORDER save?
    If any body knows please do let me know.
    Thanks and Regards
    Harish

    Hello Harish,
    Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
    Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
    Regards
    Kaushal

  • How to get the "Document Info" in illustrator

    In illustrator using "Document Info" we can get the file information. Like that how to get the document information using script. Anyone please help me.
    Regards,
    Prabudass

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

  • How to get the system info in a network

    Hi to all.
    can any one tell me how to get the system related,like system name and logged user ,info in a network using java...
    thnx in advance,
    ashok

    There is quite a bit of data that is stored in the System Properties. Run this little test app and it'll display all of the System Properties, what you are looking for may be contained in there:
    public class Test {
        public static void main(String[] args) {
            System.getProperties().list(System.out);
    }

  • How to get each frame Info in SWF ?

    Hi,all.
    I met a problem with SWF decomplie.
    If you have edited the fla files, store lots of frames which contains some shape information like pixels color, position and ect
    When you want to get that information in SWF, or rather, each frame information(like colors, pixels position), how to get that by AS3?
    Are there some ideas get frame info by AS3?

    Hi,all.
    I met a problem with SWF decomplie.
    If you have edited the fla files, store lots of frames which contains some shape information like pixels color, position and ect
    When you want to get that information in SWF, or rather, each frame information(like colors, pixels position), how to get that by AS3?
    Are there some ideas get frame info by AS3?

  • How to get the channel info of the image

    I insert an image into the view. I want to get the channel info of it, how to get it?

    I'm not an image expert but I'm pretty sure what you want can be found in the AIRasterSuite (AIRaster.h). I'd check there, if you understand image channels & whatnot, you're more likely to know than I if that's what you need.

  • How to get the cell info?

    You all know that, on our mobile we used to get the cell info ( Tower Name ). How to access that in our J2ME application?
    John

    Hello txflwr48! I regret the difficulties you've been having while activating your new phone. I'd love to help, but I recommend that we take our conversation to direct message instead of here in the public forum. If you have not yet gotten your device activated, please follow these steps to follow my handle (DionM_VZW) send me a direct message: http://vz.to/1gBiqkv
    DionM_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • How to get the "Document info" in illustrator cs?

    Hai all,
    I need to know how to get the counting of RGB objects, CMYK Objects and Grayscale Objects information for illustrator vector(editable) file.
    In illustrator raster image file, i need to know how to get the Embedded image information(Resolution, Mode).
    I collect these infomation manually from "Windows->Document info". I saved the "Document Info" details in illustrator manually using "Document Info Pannel". I dont know how to save that information through "illustrator sdk" or through any other way without manual interaction. Could you please advice me. This is for windows operating system.
    Thanks,
    Prabudass

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

Maybe you are looking for

  • Strange behavior when pressing ENTER in a form page

    Hi there Please go to the address: http://apex.oracle.com/pls/otn/f?p=20104:4 If you click the Create button, enter anything in the Name field and press ENTER while in the field, you will be taken back to the main page, the message Action Processed w

  • Counting rows with multiple criteria

    I know this is a silly beginner question, but is there an easy way to count the number of rows in a table which match criteria based on different columns (sort of a countif with multiple criteria). For example, if Column A in a table has "All, Some,

  • Application Support Folder

    Is it all right to delete items from the Application Support Folder if I've already deleted the application?

  • Flash Workflow with 3rd Parties

    I have created a .flv with the intention of making it available for progressive download from a standard web server. I publish my .fla and create the default .html and .swf files and they work just fine on my website and local machine while testing t

  • Can we increase the RAM that is allocated to the graphics chip??

    i bought a macbook a few weeks ago and mine has like 2gb of ram so that plenty to go around while my graphics chip (the intel 950 one...) is only allowed to access about 64 so i was wondering if there is anyway to increase the amount allocated to the