This website is not affiliated with, sponsored by, or approved by SAP AG.

LE_SHP_TAB_CUST_OVER Implementation question

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: thx4allthefish, Snowy, Gothmog, YuriT

LE_SHP_TAB_CUST_OVER Implementation question

Postby Somani » Tue Mar 20, 2012 8:10 am

Hey

I have a question about the implementation of the badi le_shp_tab_cust_over. I created successfully a new Tab using the activate_tab_page method
Code: Select all
    ef_caption = 'ProcessLine'.
    ef_position = 3.
    ef_program = 'ZSD_SHP_TAB'.
    ef_dynpro = 2000.


I also created the related program (ZSD_SHP_TAB) and the dynpro. I successfully added a table control to the dynpro.

Now my problem ist how to fill the table control with data..

There is a method called 'transfer_data_to_subscreen' but the only way i see to do so is using a memory id for the needed data or exporting the vbeln as a set/get parameter...

How du you do this?

Thanks a lot ;)

p.s. sry if my english isn't the best :x

Somani
 
Posts: 5
Joined: Tue Mar 20, 2012 6:37 am

Re: LE_SHP_TAB_CUST_OVER Implementation question

Postby Gothmog » Tue Mar 20, 2012 8:18 am

TRANSFER_DATA_TO_SUBSCREEN has a huge list of import parameters...
Can't you find vbeln in IS_LIKP ?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1465
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: LE_SHP_TAB_CUST_OVER Implementation question

Postby Somani » Tue Mar 20, 2012 8:20 am

Yeah but i need to transport the data FROM the method to 'ZSD_SHP_TAB'.
Otherwise i have no idea how i am able to fill the table control.
Somani
 
Posts: 5
Joined: Tue Mar 20, 2012 6:37 am

Re: LE_SHP_TAB_CUST_OVER Implementation question

Postby Gothmog » Tue Mar 20, 2012 8:34 am

Have a look a the BAdi documentation, especially Step 2: Supplying Data from Delivery Processing.
But in your case, as your ZSD_SHP_TAB program is not a function group, I'd use a form in ZSD_SHP_TAB with the required import parameters, and use it to set the global data. You can then call it in the method using PERFORM ... IN PROGRAM ...
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1465
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: LE_SHP_TAB_CUST_OVER Implementation question

Postby Somani » Tue Mar 20, 2012 12:16 pm

Gothmog wrote:... as your ZSD_SHP_TAB program is not a function group. ...

Hey Gothmog

Thank u, this was the hint needed ;) I'm able to sucessfully create my own tab and display the data..
Now i'm fighting with step 3: TRANSFER_DATA_FROM_SUBSCREEN
Therer is only the LIKP changable.. but i have changed some data in the _xlips .. i'm a bit confused :x

may i ask for another hint ;)
Somani
 
Posts: 5
Joined: Tue Mar 20, 2012 6:37 am

Re: LE_SHP_TAB_CUST_OVER Implementation question

Postby Gothmog » Wed Mar 21, 2012 4:22 am

This BAdi is for the delivery overview, i.e. at header level.
If you want to change the item data, you could use LE_SHP_TAB_CUST_ITEM.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1465
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: LE_SHP_TAB_CUST_OVER Implementation question

Postby Somani » Thu Mar 22, 2012 2:25 am

Hi

Withe the _CUIST_ITEM I'm not able to Change the Items in the Overview Tab.
But i found the following workaround:
Exporting my Appended Fields with TRANSFER_DATA_FROM_SUBSCREEN into a sap memory id

import the table within IF_EX_LE_SHP_DELIVERY_PROC~SAVE_DOCUMENT_PREPARE and change the z-fields.
Somani
 
Posts: 5
Joined: Tue Mar 20, 2012 6:37 am


Return to ABAP

Who is online

Users browsing this forum: No registered users and 9 guests




This website is not affiliated with, sponsored by, or approved by SAP AG.