Skip to Content
author's profile photo Former Member
Former Member

How to get Shopping Cart Name from PO number in EBP ?

Hi,

If I have the PO number how I can get the shopping cart name related to this PO? I need technical fields and table relations.

Regards,

Achirangshu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:01 PM

    From R/3 or the EBP side?

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:30 PM

    From EBP side.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:55 PM

    I'm not sure if this will work. I posted an answer to a similar question a while ago, but it didn't work well in the posters system. So maybe we can try this in steps. See if you get results from this:

    REPORT ztest   MESSAGE-ID 00 LINE-SIZE 80.
    
    TABLES srrelroles.
    
    PARAMETERS: po_no(10) DEFAULT '3000001977'.
    
    DATA: xobjkey  LIKE srrelroles-objkey,
          roleid(22).
    
    CONCATENATE po_no 'X' INTO xobjkey.
    
    * use PO to obtain the role id
    SELECT * FROM srrelroles
      UP TO 1 ROWS
      WHERE objtype EQ 'BUS2012'
        AND roletype EQ 'BBP_TARGET'
        AND ( objkey >= po_no
        AND   objkey <= xobjkey ).
      roleid = srrelroles-roleid.
      EXIT.
    ENDSELECT.
    

    You'll have to use a PO that you know exist in your system.

    If you get no results, try removing the WHERE on objtype and/or roletype and see what values are returned for these fields.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.